|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.data.DataObject
org.opensubsystems.core.data.BasicDataObject
org.opensubsystems.core.data.ModifiableDataObject
public abstract class ModifiableDataObject
Base class for all data objects, which can be modified and therefore want to track when they were last modified.
| Field Summary | |
|---|---|
protected java.sql.Timestamp |
m_modificationTimestamp
Modification timestamp when the data object was last time modified. |
| Fields inherited from class org.opensubsystems.core.data.BasicDataObject |
|---|
m_creationTimestamp, m_iDomainId |
| Fields inherited from class org.opensubsystems.core.data.DataObject |
|---|
NEW_ID, NEW_ID_OBJ, NEW_ID_STR |
| Constructor Summary | |
|---|---|
ModifiableDataObject()
Default constructor. |
|
ModifiableDataObject(int iDomainId)
Simple constructor creating new data object in particular domain. |
|
ModifiableDataObject(int iId,
int iDomainId,
java.sql.Timestamp creationTimestamp,
java.sql.Timestamp modificationTimestamp)
Full constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object oObject)
|
java.sql.Timestamp |
getModificationTimestamp()
Get modification timestamp when the data object was last time modified. |
int |
hashCode()
|
protected void |
restore(int iId,
int iDomainId,
java.sql.Timestamp creationTimestamp,
java.sql.Timestamp modificationTimestamp)
Restore all values from specified values. |
void |
setModificationTimestamp(java.sql.Timestamp modificationTimestamp)
Set modification timestamp when the data object was last time modified. |
| Methods inherited from class org.opensubsystems.core.data.BasicDataObject |
|---|
getCreationTimestamp, getDomainId, getId, getIdAsObject, restore, setCreationTimestamp, setId |
| Methods inherited from class org.opensubsystems.core.data.DataObject |
|---|
isFromPersistenceStore, isSame, setFromPersistenceStore |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.sql.Timestamp m_modificationTimestamp
| Constructor Detail |
|---|
public ModifiableDataObject()
public ModifiableDataObject(int iDomainId)
iDomainId - - domain this data object belongs to
public ModifiableDataObject(int iId,
int iDomainId,
java.sql.Timestamp creationTimestamp,
java.sql.Timestamp modificationTimestamp)
iId - - id of this data objectiDomainId - - domain this data object belongs tocreationTimestamp - - timestamp when the data object was created.modificationTimestamp - - timestamp when the data object was last
time modified.| Method Detail |
|---|
public java.sql.Timestamp getModificationTimestamp()
public void setModificationTimestamp(java.sql.Timestamp modificationTimestamp)
modificationTimestamp - - new modification timestamppublic boolean equals(java.lang.Object oObject)
equals in class BasicDataObjectpublic int hashCode()
hashCode in class BasicDataObject
protected void restore(int iId,
int iDomainId,
java.sql.Timestamp creationTimestamp,
java.sql.Timestamp modificationTimestamp)
iId - - id of this data objectiDomainId - - domain this data object belongs tocreationTimestamp - - timestamp when the data object was created.modificationTimestamp - - timestamp when the data object was last
time modified.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||