com.cc.framework.common
Interface DirtyMarker

All Known Implementing Classes:
DirtyMarkerImp

public interface DirtyMarker

Interface for objects to manage a dirty state

Since:
1.0
Version:
$Revision: 1.11 $
Author:
Harald Schulz

Field Summary
static int FLAG_DELETED
          indicates that the business object was deleted
static int FLAG_DIRTY
          indicates that the business object is dirty and has unsaved changes
static int FLAG_NEW
          indicates that the business object is new
 
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
 

Field Detail

FLAG_NEW

public static final int FLAG_NEW
indicates that the business object is new

See Also:
Constant Field Values

FLAG_DELETED

public static final int FLAG_DELETED
indicates that the business object was deleted

See Also:
Constant Field Values

FLAG_DIRTY

public static final int FLAG_DIRTY
indicates that the business object is dirty and has unsaved changes

See Also:
Constant Field Values
Method Detail

isDirty

public boolean isDirty()
Returns if an object is dirty and has unsaved changes.

Returns:
true if the object is dirty; false otherwise.

setDirty

public void setDirty()
Sets the dirty flag


resetDirty

public void resetDirty()
Clears the dirty flag


isNew

public boolean isNew()
Returns if the object is new

Returns:
true if the object is new; false otherwise.

setNew

public void setNew()
Sets the new flag


resetNew

public void resetNew()
Clears the new flag


isDeleted

public boolean isDeleted()
Returns if the object is deleted

Returns:
true if the object is deleted; false otherwise.

setDeleted

public void setDeleted()
Sets the deleted flag


resetDeleted

public void resetDeleted()
Clears the deleted flag



Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.