| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface for all persistent objects.
| Method Summary | |
|  int | getLocking()Returns the locking strategy for this persistent object. | 
|  UOW | getUOW()Returns the UOW to which this object is associated. | 
|  boolean | isDatabaseOccurence()Returns a true value if the object was loaded from the database. | 
|  boolean | isLocked()Returns a true value if the underlying database row is locked. | 
|  boolean | isModified()Returns a true value if the object had any of its fields updated. | 
|  boolean | isModified(String fieldName)Returns a true value if the field has been updated. | 
|  boolean | isQueued()Returns a true value if this object has been added/updated/deleted and not yet been committed. | 
|  void | postAdd()This method is triggered by the UOW, after adding this object to the Add-Store. | 
|  void | postDelete()This method is triggered by the UOW, after adding this object to the Delete-Store. | 
|  void | postLoad()This method is triggered by the UOW after a query loads this object. | 
|  void | postUpdate()This method is triggered by the UOW, after adding this object to the Update-Store. | 
|  void | preAdd()This method is triggered by the UOW, before adding this object to the Add-Store, but after a UOW has been associated to the object. | 
|  void | preDelete()This method is triggered by the UOW, before adding this object to the Delete-Store. | 
|  void | preUpdate()This method is triggered by the UOW, before adding this object to the Update-Store. | 
|  Object | returnInitialValue(String fieldName)Returns the initial value for a field; i.e. before it was modified. | 
|  void | setDatabaseOccurence(boolean databaseOccurence)Set the database status of this object. | 
|  void | setLocked(boolean locked)Set the locked status of this object. | 
|  void | setLocking(int locking)Set the locking strategy for this persistent object. | 
|  void | setModified(boolean modified)Set the modified status of this object. | 
|  void | setQueued(boolean queued)Set the queued status of this object. | 
|  void | setUOW(UOW uow)Associates this object to a UOW. | 
| Method Detail | 
public UOW getUOW()
public void setUOW(UOW uow)
uow - The UOW.public boolean isModified()
public void setModified(boolean modified)
modified - the modified status.public boolean isDatabaseOccurence()
public void setDatabaseOccurence(boolean databaseOccurence)
databaseOccurence - the database status.public int getLocking()
public void setLocking(int locking)
locking - the locking strategy.public boolean isLocked()
public void setLocked(boolean locked)
locked - the locked status.public boolean isQueued()
public void setQueued(boolean queued)
queued - the queued status.public boolean isModified(String fieldName)
fieldName - the field to check.
public Object returnInitialValue(String fieldName)
fieldName - the field.
public void preAdd()
            throws PreAddFailedException
PreAddFailedException - if any error occurs during the process.
public void postAdd()
             throws PostAddFailedException
PostAddFailedException - if any error occurs during the process.
public void preUpdate()
               throws PreUpdateFailedException
PreUpdateFailedException - if any error occurs during the process.
public void postUpdate()
                throws PostUpdateFailedException
PostUpdateFailedException - if any error occurs during the process.
public void preDelete()
               throws PreDeleteFailedException
PreDeleteFailedException - if any error occurs during the process.
public void postDelete()
                throws PostDeleteFailedException
PostDeleteFailedException - if any error occurs during the process.
public void postLoad()
              throws PostLoadFailedException
PostLoadFailedException - if any error occurs during the process.| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||