|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.fc.PersistenceHelper
public class PersistenceHelper
The class contains utility methods associated with the PersistenceManager.
Supported API: true
Extendable: false
| Field Summary | |
|---|---|
static PersistenceManager |
manager
Supported API: true |
| Method Summary | |
|---|---|
static wt.query.NavigateSpec |
buildNavigateSpec(Object source,
String role,
Class linkClass,
boolean onlyOtherSide)
This method builds a query specification for navigating an association. |
static Timestamp |
getCreateStamp(Persistable obj)
Retrives the create timestamp for the given Persistable object. |
static Timestamp |
getModifyStamp(Persistable obj)
Retrives the modify timestamp for the given Persistable object. |
static ObjectIdentifier |
getObjectIdentifier(Persistable obj)
Retrives the object identifier for the given Persistable object. |
static boolean |
isDeleted(Persistable obj)
Returns true if the specified persistable object is marked as deleted. |
static boolean |
isEquivalent(Persistable obj1,
Persistable obj2)
Returns true if the two given objects are equivalent persistable object. |
static boolean |
isPersistent(Object obj)
Returns true if the given object is Peristable and has already been saved in the database. |
static boolean |
isPersistent(Persistable obj)
Returns true if the given Persistable object is saved in the datastore. |
static QueryResult |
navigate(Object source,
String role,
Class linkClass,
boolean onlyOtherSide)
Retrieves objects related to the specfied source object(s) role and link class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final PersistenceManager manager
| Method Detail |
|---|
public static Timestamp getCreateStamp(Persistable obj)
obj -
public static Timestamp getModifyStamp(Persistable obj)
obj -
public static ObjectIdentifier getObjectIdentifier(Persistable obj)
obj -
public static boolean isDeleted(Persistable obj)
obj -
public static boolean isEquivalent(Persistable obj1,
Persistable obj2)
obj1 - obj2 -
public static boolean isPersistent(Persistable obj)
obj -
public static boolean isPersistent(Object obj)
obj -
public static wt.query.NavigateSpec buildNavigateSpec(Object source,
String role,
Class linkClass,
boolean onlyOtherSide)
throws WTException
source - The source of the navigate operation. This argument can be a single Persistable object or a WTCollection of Persistable objects.role - The role to navigate to.linkClass - The association link class to navigate.onlyOtherSide - Indicates that only the other side objects of the association should be returned. If false, then the link objects are returned (the other side object can be obtained via the link object's getter method).
WTException
public static QueryResult navigate(Object source,
String role,
Class linkClass,
boolean onlyOtherSide)
throws WTException
source - The source of the navigate operation. This argument can be a single Persistable object or a WTCollection of Persistable objects.role - The role to navigate to.linkClass - The association link class to navigate.onlyOtherSide - Indicates that only the other side objects of the association should be returned. If false, then the link objects are returned (the other side object can be obtained via the link object's getter method).
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||