|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jtheque.core.managers.persistence.Entity
public abstract class Entity
Represents a persisted object of JTheque.
Field Summary | |
---|---|
static int |
HASHCODEPRIME
|
Constructor Summary | |
---|---|
Entity()
Construct a new Entity. |
Method Summary | |
---|---|
int |
compareTo(Entity object)
|
abstract boolean |
equals(java.lang.Object object)
|
abstract java.lang.String |
getAffichableText()
Return an affichable text of the Entity. |
int |
getId()
Return the id of this Entity. |
TemporaryContext |
getTemporaryContext()
Return the temporary context of the data. |
abstract int |
hashCode()
|
boolean |
isSaved()
Indicate if the entity is saved or not. |
void |
restoreMemento()
Restore the state of the data object from the memento. |
void |
saveToMemento()
Save the state of the data object to a memento. |
void |
setId(int id)
Set the id of this Entity. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int HASHCODEPRIME
Constructor Detail |
---|
public Entity()
Method Detail |
---|
public TemporaryContext getTemporaryContext()
public final int getId()
public final void setId(int id)
id
- The new id to setpublic abstract java.lang.String getAffichableText()
public final int compareTo(Entity object)
compareTo
in interface java.lang.Comparable<Entity>
public abstract boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public abstract int hashCode()
hashCode
in class java.lang.Object
public final boolean isSaved()
public void saveToMemento()
public void restoreMemento()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |