tiger
Class PersistState

java.lang.Object
  |
  +--tiger.PersistState
All Implemented Interfaces:
java.io.Serializable

public class PersistState
extends java.lang.Object
implements java.io.Serializable

Represents the state of a persistent object.

Author:
Fredrik Bertilsson
See Also:
Serialized Form

Field Summary
static PersistState CLEAN
          State where object has not changed since fetch from persistent storage
static PersistState DELETED
          State where object should be deleted from persisten storage
static PersistState DIRTY
          State where object has changed since fetch from persistent storage
static PersistState NEW
          State where object is not in persistent storage
 
Constructor Summary
PersistState(int aState)
           
 
Method Summary
 boolean equals(java.lang.Object anOther)
           
protected  int getState()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NEW

public static PersistState NEW
State where object is not in persistent storage


CLEAN

public static PersistState CLEAN
State where object has not changed since fetch from persistent storage


DIRTY

public static PersistState DIRTY
State where object has changed since fetch from persistent storage


DELETED

public static PersistState DELETED
State where object should be deleted from persisten storage

Constructor Detail

PersistState

public PersistState(int aState)
Method Detail

getState

protected int getState()

equals

public boolean equals(java.lang.Object anOther)
Overrides:
equals in class java.lang.Object