org.orange.kicsa.business
Class Editable.Status


public class Editable.Status
implements Cloneable, Editable

Status of an editable persistent object, which can be :

TO_CREATE : The object is in memory but has not been persisted/commited yet
TO_UPDATE (dirty) : The object has been modified in memory but its changed state has not been persisted/commited yet
TO_REMOVE : The object that is in memory has been marked for deletion, which has not occured yet at the persistence layer
NO_CHANGE : The object in memory is sync with its persistent state

These states are useful when you want to remind what to do on a set of Editable objects to get them sync.


Field Summary
 final static Editable.StatusDELETED
           
 final static Editable.StatusDIRTY
           
 final static Editable.StatusNEW
           
 final static Editable.StatusSYNC
           

Method Summary
 Objectclone()
           
 booleanequals(Object someObject)
           
 booleanisDeleted()
           
 booleanisDirty()
           
 booleanisNew()
           
 booleanisSync()
           
 voidsetDeleted(boolean someDeletedState)
           
 voidsetDirty(boolean someDirtyState)
           
 voidsetNew(boolean someNewState)
           
 voidsetSync(boolean sync)
           
 StringtoString()
           

Field Detail

DELETED

public final static Editable.Status DELETED

DIRTY

public final static Editable.Status DIRTY

NEW

public final static Editable.Status NEW

SYNC

public final static Editable.Status SYNC
Method Detail

clone

public Object clone()

equals

public boolean equals(Object someObject)

isDeleted

public boolean isDeleted()

isDirty

public boolean isDirty()

isNew

public boolean isNew()

isSync

public boolean isSync()

setDeleted

public void setDeleted(boolean someDeletedState)

setDirty

public void setDirty(boolean someDirtyState)

setNew

public void setNew(boolean someNewState)

setSync

public void setSync(boolean sync)

toString

public String toString()

Association Links

to Class org.orange.kicsa.business.Editable.Status

to Class org.orange.kicsa.business.Editable.Status

to Class org.orange.kicsa.business.Editable.Status

to Class org.orange.kicsa.business.Editable.Status

Dependency Links

to Class org.orange.kicsa.business.Editable

to Class java.lang.Cloneable

to Class java.lang.Object

to Class java.lang.String

to Class java.lang.RuntimeException

to Class java.lang.CloneNotSupportedException

to Class Diagram org.orange.kicsa.business

to Class Diagram org.orange.kicsa

to Class Diagram org.orange

to Class Diagram org

to Class Diagram <default>