org.homeunix.thecave.buddi.model
Interface ModelObject

All Superinterfaces:
java.lang.Comparable<ModelObject>
All Known Subinterfaces:
Account, AccountType, BudgetCategory, Document, ScheduledTransaction, Source, Transaction
All Known Implementing Classes:
AccountImpl, AccountTypeImpl, BudgetCategoryImpl, DocumentImpl, ModelObjectImpl, ScheduledTransactionImpl, SourceImpl, TransactionImpl

public interface ModelObject
extends java.lang.Comparable<ModelObject>


Method Summary
 int compareTo(ModelObject o)
           
 Document getDocument()
          Returns the document associated with this model object, or null if there is no document.
 java.util.Date 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.
 

Method Detail

compareTo

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

getDocument

Document getDocument()
Returns the document associated with this model object, or null if there is no document.

Returns:

getUid

java.lang.String getUid()
Returns the UID string for this object.

Returns:

setChanged

void setChanged()
Sets the object as modified. Optionally will fire a change event, if the change is major enough to warrant it.


getModified

java.util.Date getModified()
Gets the last modified date of the object

Returns:

setDocument

void setDocument(Document document)
                 throws InvalidValueException
Sets the document.

Parameters:
document -
Throws:
InvalidValueException