Method Summary |
|
public int | getLocking() Returns the locking strategy for this persistent object. |
public UOW | getUOW() Returns the UOW to which this object is associated. |
public boolean | isDatabaseOccurence() Returns a true value if the object was loaded from the database. |
public boolean | isLocked() Returns a true value if the underlying database row is locked. |
public boolean | isModified() Returns a true value if the object had any of its fields updated. |
public boolean | isModified(String fieldName) Returns a true value if the field has been updated.
Parameters: fieldName - the field to check. |
public boolean | isQueued() Returns a true value if this object has been added/updated/deleted and not yet been committed. |
public void | postAdd() This method is triggered by the UOW, after adding this object to the Add-Store. |
public void | postDelete() This method is triggered by the UOW, after adding this object to the Delete-Store. |
public void | postLoad() This method is triggered by the UOW after a query loads this object. |
public void | postUpdate() This method is triggered by the UOW, after adding this object to the Update-Store. |
public 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. |
public void | preDelete() This method is triggered by the UOW, before adding this object to the Delete-Store. |
public void | preUpdate() This method is triggered by the UOW, before adding this object to the Update-Store. |
public Object | returnInitialValue(String fieldName) Returns the initial value for a field; i.e. |
public void | setDatabaseOccurence(boolean databaseOccurence) Set the database status of this object. |
public void | setLocked(boolean locked) Set the locked status of this object. |
public void | setLocking(int locking) Set the locking strategy for this persistent object. |
public void | setModified(boolean modified) Set the modified status of this object. |
public void | setQueued(boolean queued) Set the queued status of this object.
The Persistence Engine will set the queued status to true on an Add/Update/Delete. |
public void | setUOW(UOW uow) Associates this object to a UOW. |