|
|||||||||
| 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
public abstract class BasicDataObject
Base class for all data objects, which want to track when they were created and which belongs to some partition (called domain).
| Field Summary | |
|---|---|
protected java.sql.Timestamp |
m_creationTimestamp
Creation timestamp when the data object was created. |
protected int |
m_iDomainId
Id of the domain this data object belongs to. |
| Fields inherited from class org.opensubsystems.core.data.DataObject |
|---|
NEW_ID, NEW_ID_OBJ, NEW_ID_STR |
| Constructor Summary | |
|---|---|
BasicDataObject()
Default constructor. |
|
BasicDataObject(int iDomainId)
Simple constructor creating new data object in particular domain. |
|
BasicDataObject(int iId,
int iDomainId,
java.sql.Timestamp creationTimestamp)
Full constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object oObject)
|
java.sql.Timestamp |
getCreationTimestamp()
Creation timestamp is timestamp when the data object was created. |
int |
getDomainId()
|
int |
getId()
Get the id uniquely identifying the object. |
java.lang.Integer |
getIdAsObject()
Get the id as object uniquely identifying the object. |
int |
hashCode()
|
protected void |
restore(int iId,
int iDomainId,
java.sql.Timestamp creationTimestamp)
Restore all values from specified values. |
void |
setCreationTimestamp(java.sql.Timestamp creationTimestamp)
Creation timestamp is timestamp when the data object was created. |
void |
setId(int iNewId)
|
| 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 int m_iDomainId
protected java.sql.Timestamp m_creationTimestamp
| Constructor Detail |
|---|
public BasicDataObject()
public BasicDataObject(int iDomainId)
iDomainId - - domain this data object belongs to
public BasicDataObject(int iId,
int iDomainId,
java.sql.Timestamp creationTimestamp)
iId - - id of this data objectiDomainId - - domain this data object belongs tocreationTimestamp - - timestamp when the data object was created.| Method Detail |
|---|
public int getDomainId()
public int getId()
getId in class DataObjectpublic java.lang.Integer getIdAsObject()
getIdAsObject in class DataObjectpublic void setId(int iNewId)
iNewId - - new id of the data objectpublic java.sql.Timestamp getCreationTimestamp()
public void setCreationTimestamp(java.sql.Timestamp creationTimestamp)
creationTimestamp - - new creation timestamppublic boolean equals(java.lang.Object oObject)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
protected void restore(int iId,
int iDomainId,
java.sql.Timestamp creationTimestamp)
iId - - id of this data objectiDomainId - - domain this data object belongs tocreationTimestamp - - timestamp when the data object was created.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||