| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.archiviststoolkit.mydomain.DomainBasicObject
public abstract class DomainBasicObject
The DomainObject should be the base class of all data types which we wish to store in our hibernate based database. TODO: Integer should be a Long identifier within hibernate
| Field Summary | 
|---|
| Fields inherited from interface org.hibernate.classic.Lifecycle | 
|---|
| NO_VETO, VETO | 
| Constructor Summary | |
|---|---|
| DomainBasicObject() | |
| Method Summary | |
|---|---|
|  int | compareTo(java.lang.Object object)Compares this object to another. | 
|  boolean | equals(java.lang.Object object)Tests objects for equality. | 
|  java.lang.Long | getIdentifier() | 
|  java.lang.Long | getVersion() | 
|  int | hashCode()Returns the hashcode for this object. | 
|  boolean | onDelete(org.hibernate.Session session)Called when an entity is deleted. | 
|  void | onLoad(org.hibernate.Session session,
       java.io.Serializable serialid)Called after an entity is loaded. | 
|  boolean | onSave(org.hibernate.Session session)Called when an entity is saved. | 
|  boolean | onUpdate(org.hibernate.Session session)Called when an entity is updated. | 
|  void | setIdentifier(java.lang.Long identifier) | 
|  void | setVersion(java.lang.Long version) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public DomainBasicObject()
| Method Detail | 
|---|
public java.lang.Long getIdentifier()
public void setIdentifier(java.lang.Long identifier)
identifier - The identifier to set.public final java.lang.Long getVersion()
public final void setVersion(java.lang.Long version)
version - The version to set.public final boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - the object to test against
public final int hashCode()
hashCode in class java.lang.Objectpublic final boolean onDelete(org.hibernate.Session session)
onDelete in interface org.hibernate.classic.Lifecyclesession - the session to delete on
public void onLoad(org.hibernate.Session session,
                   java.io.Serializable serialid)
onLoad in interface org.hibernate.classic.Lifecyclesession - the session which loaded the entityserialid - the identifier of the entitypublic final boolean onSave(org.hibernate.Session session)
onSave in interface org.hibernate.classic.Lifecyclesession - the session to save on
public final boolean onUpdate(org.hibernate.Session session)
onUpdate in interface org.hibernate.classic.Lifecyclesession - the session to update on
public int compareTo(java.lang.Object object)
compareTo in interface java.lang.Comparableobject - the object to compare this to.
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||