|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--openfuture.bugbase.domain.DomainObject
Base class for domain objects. Handles the state of domain objects.
Created: Fri Jun 09 03:46:29 2000
Field Summary | |
static int |
STATE_CLEAN
|
static int |
STATE_DELETED
|
static int |
STATE_DIRTY
|
static int |
STATE_NEW
|
Constructor Summary | |
DomainObject()
|
Method Summary | |
protected int |
getState()
Get the value of state. |
boolean |
isDeleted()
Returns true, if the domain object is deleted. |
boolean |
isDirty()
Returns true, if the domain object is dirty. |
boolean |
isNew()
Returns true, if the domain object is new. |
void |
setClean()
Sets the state to 'clean'. |
void |
setDirty()
Sets the state to 'dirty'. |
void |
setModified()
State set to STATE_DIRTY except for STATE_NEW. |
protected void |
setState(int v)
Set the value of state. |
java.util.LinkedList |
validate()
Validate the domain object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int STATE_NEW
public static final int STATE_CLEAN
public static final int STATE_DIRTY
public static final int STATE_DELETED
Constructor Detail |
public DomainObject()
Method Detail |
public void setModified()
public void setDirty()
public void setClean()
public boolean isDirty()
public boolean isNew()
public boolean isDeleted()
protected int getState()
protected void setState(int v)
v
- Value to assign to state.public java.util.LinkedList validate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |