butler.sql.record
Class Record.State

java.lang.Object
  extended by butler.sql.record.Record.State
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Record

public static class Record.State
extends java.lang.Object
implements java.io.Serializable

The state for a record.

Author:
Fredrik Bertilsson
See Also:
Serialized Form

Field Summary
static Record.State CLEAN
          Record exists in database and is not changed after retrival from database.
static Record.State DELETED
          Record exists in database, but should be deleted.
static Record.State DIRTY
          Record exists in database but is changed after retrival.
static Record.State NEW
          Record does not yet exists in database.
static Record.State TEMP
          Record should not exist in database, only for temporary use.
 
Constructor Summary
Record.State(int state)
           
 
Method Summary
 boolean equals(Record.State state)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLEAN

public static final Record.State CLEAN
Record exists in database and is not changed after retrival from database.


DIRTY

public static final Record.State DIRTY
Record exists in database but is changed after retrival.


NEW

public static final Record.State NEW
Record does not yet exists in database.


DELETED

public static final Record.State DELETED
Record exists in database, but should be deleted.


TEMP

public static final Record.State TEMP
Record should not exist in database, only for temporary use.

Constructor Detail

Record.State

public Record.State(int state)
Method Detail

equals

public boolean equals(Record.State state)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object