|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.common.DirtyMarkerImp
Simple Implementation of the DirtyMarker interface
Field Summary | |
private int |
flags
State of the object |
Fields inherited from interface com.cc.framework.common.DirtyMarker |
FLAG_DELETED, FLAG_DIRTY, FLAG_NEW |
Constructor Summary | |
DirtyMarkerImp()
Constructor |
Method Summary | |
boolean |
isDeleted()
Returns if the object is deleted |
boolean |
isDirty()
Returns if an object is dirty and has unsaved changes. |
boolean |
isNew()
Returns if the object is new |
void |
resetDeleted()
Clears the deleted flag |
void |
resetDirty()
Clears the dirty flag |
void |
resetNew()
Clears the new flag |
void |
setDeleted()
Sets the deleted flag |
void |
setDirty()
Sets the dirty flag |
void |
setNew()
Sets the new flag |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private int flags
Constructor Detail |
public DirtyMarkerImp()
Method Detail |
public final boolean isDeleted()
DirtyMarker
isDeleted
in interface DirtyMarker
true
if the object is deleted;
false
otherwise.DirtyMarker.isDeleted()
public final boolean isDirty()
DirtyMarker
isDirty
in interface DirtyMarker
true
if the object is dirty;
false
otherwise.DirtyMarker.isDirty()
public final boolean isNew()
DirtyMarker
isNew
in interface DirtyMarker
true
if the object is new;
false
otherwise.DirtyMarker.isNew()
public final void setDeleted()
DirtyMarker
setDeleted
in interface DirtyMarker
DirtyMarker.setDeleted()
public final void setDirty()
DirtyMarker
setDirty
in interface DirtyMarker
DirtyMarker.setDirty()
public final void setNew()
DirtyMarker
setNew
in interface DirtyMarker
DirtyMarker.setNew()
public final void resetDirty()
DirtyMarker
resetDirty
in interface DirtyMarker
DirtyMarker.resetDirty()
public final void resetNew()
DirtyMarker
resetNew
in interface DirtyMarker
DirtyMarker.resetNew()
public final void resetDeleted()
DirtyMarker
resetDeleted
in interface DirtyMarker
DirtyMarker.resetDeleted()
public java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |