com.cc.framework.common
Class DirtyMarkerImp

java.lang.Object
  extended bycom.cc.framework.common.DirtyMarkerImp
All Implemented Interfaces:
DirtyMarker

public class DirtyMarkerImp
extends java.lang.Object
implements DirtyMarker

Simple Implementation of the DirtyMarker interface

Version:
$Revision: 1.3 $
Author:
Harald Schulz

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

flags

private int flags
State of the object

Constructor Detail

DirtyMarkerImp

public DirtyMarkerImp()
Constructor

Method Detail

isDeleted

public final boolean isDeleted()
Description copied from interface: DirtyMarker
Returns if the object is deleted

Specified by:
isDeleted in interface DirtyMarker
Returns:
true if the object is deleted; false otherwise.
See Also:
DirtyMarker.isDeleted()

isDirty

public final boolean isDirty()
Description copied from interface: DirtyMarker
Returns if an object is dirty and has unsaved changes.

Specified by:
isDirty in interface DirtyMarker
Returns:
true if the object is dirty; false otherwise.
See Also:
DirtyMarker.isDirty()

isNew

public final boolean isNew()
Description copied from interface: DirtyMarker
Returns if the object is new

Specified by:
isNew in interface DirtyMarker
Returns:
true if the object is new; false otherwise.
See Also:
DirtyMarker.isNew()

setDeleted

public final void setDeleted()
Description copied from interface: DirtyMarker
Sets the deleted flag

Specified by:
setDeleted in interface DirtyMarker
See Also:
DirtyMarker.setDeleted()

setDirty

public final void setDirty()
Description copied from interface: DirtyMarker
Sets the dirty flag

Specified by:
setDirty in interface DirtyMarker
See Also:
DirtyMarker.setDirty()

setNew

public final void setNew()
Description copied from interface: DirtyMarker
Sets the new flag

Specified by:
setNew in interface DirtyMarker
See Also:
DirtyMarker.setNew()

resetDirty

public final void resetDirty()
Description copied from interface: DirtyMarker
Clears the dirty flag

Specified by:
resetDirty in interface DirtyMarker
See Also:
DirtyMarker.resetDirty()

resetNew

public final void resetNew()
Description copied from interface: DirtyMarker
Clears the new flag

Specified by:
resetNew in interface DirtyMarker
See Also:
DirtyMarker.resetNew()

resetDeleted

public final void resetDeleted()
Description copied from interface: DirtyMarker
Clears the deleted flag

Specified by:
resetDeleted in interface DirtyMarker
See Also:
DirtyMarker.resetDeleted()

toString

public java.lang.String toString()
See Also:
Object.toString()


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