Package wt.fc
Class PersistenceHelper
java.lang.Object
wt.fc.PersistenceHelper
- All Implemented Interfaces:
Serializable
The class contains utility methods associated with the PersistenceManager.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic NavigateSpecbuildForeignKeyNavigateSpec(Object source, String role, Class linkClass, boolean onlyOtherSide) This method builds a query specification for navigating a ForeignKey association.static NavigateSpecbuildNavigateSpec(Object source, String role, Class linkClass, boolean onlyOtherSide) This method builds a query specification for navigating an association.static TimestampRetrives the create timestamp for the given Persistable object.static TimestampRetrives the modify timestamp for the given Persistable object.static ObjectIdentifierRetrives the object identifier for the given Persistable object.static booleanisDeleted(Persistable obj) Returns true if the specified persistable object is marked as deleted.static booleanisEquivalent(Persistable obj1, Persistable obj2) Returns true if the two given objects are equivalent persistable object.static booleanisPersistent(Object obj) Returns true if the given object is Peristable and has already been saved in the database.static booleanisPersistent(Persistable obj) Returns true if the given Persistable object is saved in the datastore.static QueryResultRetrieves objects related to the specfied source object(s) role and link class.
-
Field Details
-
manager
Supported API: true
-
-
Method Details
-
getCreateStamp
Retrives the create timestamp for the given Persistable object.
Supported API: true- Parameters:
obj-- Returns:
- Timestamp
-
getModifyStamp
Retrives the modify timestamp for the given Persistable object.
Supported API: true- Parameters:
obj-- Returns:
- Timestamp
-
getObjectIdentifier
Retrives the object identifier for the given Persistable object.
Supported API: true- Parameters:
obj-- Returns:
- ObjectIdentifier
-
isDeleted
Returns true if the specified persistable object is marked as deleted.
Supported API: true- Parameters:
obj-- Returns:
- boolean
-
isEquivalent
Returns true if the two given objects are equivalent persistable object. Two objects are equivalent if they are Persistable and their ObjectIdentifiers are equal.
Supported API: true- Parameters:
obj1-obj2-- Returns:
- boolean
-
isPersistent
Returns true if the given Persistable object is saved in the datastore.
Supported API: true- Parameters:
obj-- Returns:
- boolean
-
isPersistent
Returns true if the given object is Peristable and has already been saved in the database.
Supported API: true- Parameters:
obj-- Returns:
- boolean
-