org.homeunix.thecave.buddi.model.impl
Class ModelObjectImpl

java.lang.Object
  extended by org.homeunix.thecave.buddi.model.impl.ModelObjectImpl
All Implemented Interfaces:
java.lang.Comparable<ModelObject>, ModelObject
Direct Known Subclasses:
AccountTypeImpl, SourceImpl, TransactionImpl

public abstract class ModelObjectImpl
extends java.lang.Object
implements ModelObject

The class from which most other model objects descend from. You should not instantiate this class directly.

Author:
wyatt

Field Summary
protected  Document document
           
protected  Time modifiedTime
           
protected  java.lang.String uid
           
 
Constructor Summary
ModelObjectImpl()
           
 
Method Summary
 int compareTo(ModelObject o)
           
 boolean equals(java.lang.Object obj)
           
 Document getDocument()
          Returns the document associated with this model object, or null if there is no document.
 Time getModified()
          Gets the last modified date of the object
 java.lang.String getUid()
          Returns the UID string for this object.
 void setChanged()
          Sets the object as modified.
 void setDocument(Document document)
          Sets the document.
 void setModified(java.util.Date modifiedDate)
           
 void setModified(Time modifiedTime)
           
 void setUid(java.lang.String uid)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modifiedTime

protected Time modifiedTime

uid

protected java.lang.String uid

document

protected Document document
Constructor Detail

ModelObjectImpl

public ModelObjectImpl()
Method Detail

setChanged

public void setChanged()
Description copied from interface: ModelObject
Sets the object as modified. Optionally will fire a change event, if the change is major enough to warrant it.

Specified by:
setChanged in interface ModelObject

getModified

public Time getModified()
Description copied from interface: ModelObject
Gets the last modified date of the object

Specified by:
getModified in interface ModelObject
Returns:

setModified

public void setModified(Time modifiedTime)

setModified

public void setModified(java.util.Date modifiedDate)

getUid

public java.lang.String getUid()
Description copied from interface: ModelObject
Returns the UID string for this object.

Specified by:
getUid in interface ModelObject
Returns:

setUid

public void setUid(java.lang.String uid)

getDocument

public Document getDocument()
Description copied from interface: ModelObject
Returns the document associated with this model object, or null if there is no document.

Specified by:
getDocument in interface ModelObject
Returns:

setDocument

public void setDocument(Document document)
Description copied from interface: ModelObject
Sets the document.

Specified by:
setDocument in interface ModelObject

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(ModelObject o)
Specified by:
compareTo in interface java.lang.Comparable<ModelObject>
Specified by:
compareTo in interface ModelObject