|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.infoglue.cms.entities.kernel.Persistent
This base class for persistent object makes it easy to define domain objects and have them implement the basic core services of an object that will allow them to treated properly by Lists, Sets, HashMaps, Comparators, etc. Once you have these services ironed out, it becomes much easier to deal with your domain objects and test the servies that use them
| Constructor Summary | |
Persistent()
|
|
| Method Summary | |
static void |
append(java.lang.StringBuffer buffer,
Persistent persistent)
Appends the given persistent to the given string buffer. |
int |
compareTo(java.lang.Object o)
Compares an object to this one for order. |
boolean |
equals(java.lang.Object o)
Compares an object to this one for equality. |
int |
hashCode()
Creates a hash code for this persistent. |
boolean |
isSaved()
Returns if this persisten object is saved (has generated id) |
boolean |
isUnsaved()
Returns if this persisten object is unsaved (no generated id) |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.infoglue.cms.entities.kernel.BaseEntityVO |
getId, validate |
| Constructor Detail |
public Persistent()
| Method Detail |
public boolean isUnsaved()
public boolean isSaved()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - the object to compare
java.lang.ClassCastException - if o is not an instance of Persistent
java.lang.NullPointerException - if o is nullhashCode()public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the object to compare
compareTo(java.lang.Object)public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object#toStringBuffer
public static void append(java.lang.StringBuffer buffer,
Persistent persistent)
buffer - the desired StringBufferpersistent - the desired Persistent#toStringBuffer
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||