|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the public methods of Data Objects.
Field Summary | |
static String |
versionId
|
Method Summary | |
void |
addObserver(DataObserver observer)
Adds an observer. |
void |
delete()
Deletes this persistent object. |
void |
disconnect()
Disconnects this DataObject from the current transaction. |
Object |
get(String propertyName)
Returns the value of the specified property. |
ObjectType |
getObjectType()
Returns the type of this persistent object. |
OID |
getOID()
Returns the unique id of this persistent object. |
Session |
getSession()
Returns the Session object from which this object was created or retrieved. |
boolean |
isCommitted()
Returns true if the object exists in a committed state in the database. |
boolean |
isDeleted()
Returns true if this persistent object has been deleted from the database. |
boolean |
isDisconnected()
Returns true if this persistent object has been disconnected from the transaction context. |
boolean |
isModified()
Returns true if this persistent object has been modified since it was retrieved. |
boolean |
isNew()
Returns true if this persistent object is newly created. |
boolean |
isPropertyModified(String name)
Returns true of the property specified by name has been modified since this object was retrieved. |
boolean |
isValid()
Returns true if this persistent object is in a valid state. |
void |
save()
Persists any changes made to this persistent object. |
void |
set(String propertyName,
Object value)
Sets the specified property to value. |
void |
specialize(ObjectType subtype)
Specializes this persistent object by turning it into a subtype of this object's current type. |
void |
specialize(String subtypeName)
Specializes this persistent object by turning it into a subtype of this object's current type. |
Field Detail |
public static final String versionId
Method Detail |
public ObjectType getObjectType()
public OID getOID()
public Object get(String propertyName)
propertyName
- The property name.
public void set(String propertyName, Object value)
propertyName
- The property name.value
- The desired value.public Session getSession()
public boolean isNew()
public boolean isDeleted()
public boolean isCommitted()
public boolean isDisconnected()
public void disconnect()
isDisconnected()
public boolean isModified()
public boolean isPropertyModified(String name)
public boolean isValid()
public void delete()
public void specialize(ObjectType subtype)
subtype
- The subtype to which to specialize.public void specialize(String subtypeName)
subtypeName
- The name of the subtype to which to specialize.public void save()
public void addObserver(DataObserver observer)
observer
- The observer to add to this DataObject.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |