Method Summary |
|
public boolean | allowDeleteOfNonPersistentObject() Whether the API allows deletion of a non-persistent object. |
public boolean | allowPersistOfDeletedObject() Whether the API allows (re-)persistence of a deleted object. |
public boolean | allowReadFieldOfDeletedObject() Whether the API allows reading a field of a deleted object. |
public boolean | clearLoadedFlagsOnDeleteObject() Whether the API requires clearing of the fields of an object when it is deleted. |
public boolean | getDefaultCascadeDeleteForField() Returns the default cascade-delete setting. |
public boolean | getDefaultCascadePersistForField() Returns the default cascade-persist. |
public boolean | getDefaultCascadeRefreshForField() Returns the default cascade-refresh setting. |
public boolean | getDefaultCascadeUpdateForField() Returns the default cascade-update setting. |
public Map | getDefaultFactoryProperties() Method to return the default factory properties for this API. |
public Object | getIdForObject(Object obj) Method to return the object identity for the passed persistable object. |
public Class | getKeyTypeForSingleFieldIdentityType(Class idType) Accessor for the type of the single field application-identity key given the single field identity type. |
public LifeCycleState | getLifeCycleState(int stateType) Returns the LifeCycleState for the state constant. |
public Object | getNewApplicationIdentityObjectId(Object pc, AbstractClassMetaData cmd) Method to create a new object identity for the passed object with the supplied MetaData. |
public Object | getNewApplicationIdentityObjectId(Class cls, Object key) Method to return a new object identity for the specified class, and key (possibly toString() output). |
public Object | getNewSingleFieldIdentity(Class idType, Class pcType, Object value) Utility to create a new SingleFieldIdentity using reflection when you know the
type of the PersistenceCapable, and also which SingleFieldIdentity, and the value of the key.
Parameters: idType - Type of SingleFieldIdentity Parameters: pcType - Type of the PersistenceCapable Parameters: value - The value for the identity (the Long, or Int, or ... |
public Object | getObjectId(StateManager sm) Accessor for the object id from the StateManager for this object. |
public String | getObjectState(Object obj) Accessor for the object state. |
public Object | getPersistenceManager(Object obj) Accessor for the persistence manager for this object. |
public String | getSingleFieldIdentityClassNameForByte() Accessor for the class name to use for identities when there is a single Byte/byte field. |
public String | getSingleFieldIdentityClassNameForChar() Accessor for the class name to use for identities when there is a single Character/char field. |
public String | getSingleFieldIdentityClassNameForInt() Accessor for the class name to use for identities when there is a single Integer/int field. |
public String | getSingleFieldIdentityClassNameForLong() Accessor for the class name to use for identities when there is a single Long/long field. |
public String | getSingleFieldIdentityClassNameForObject() Accessor for the class name to use for identities when there is a single Object field. |
public String | getSingleFieldIdentityClassNameForShort() Accessor for the class name to use for identities when there is a single Short/short field. |
public String | getSingleFieldIdentityClassNameForString() Accessor for the class name to use for identities when there is a single String field. |
public Class | getTargetClassForSingleFieldIdentity(Object id) Accessor for the target class for the specified single field application-identity. |
public String | getTargetClassNameForSingleFieldIdentity(Object id) Accessor for the target class name for the specified single field identity. |
public Object | getTargetKeyForSingleFieldIdentity(Object id) Accessor for the key object for the specified single field application-identity. |
public Object | getVersion(StateManager sm) Accessor for the version from the StateManager for this object. |
public Object | getVersionForObject(Object obj) Method to return the object version for the passed persistable object. |
public boolean | isDeleted(Object obj) Accessor for whether the passed object is deleted. |
public boolean | isDetachable(Object obj) Method to return if the passed object is detachable using this API. |
public boolean | isDetached(Object obj) Accessor for whether the passed object is detached. |
public boolean | isDirty(Object obj) Accessor for whether the passed object is dirty. |
public boolean | isLoaded(StateManager sm, int fieldNumber) |
public boolean | isNew(Object obj) Accessor for whether the passed object is new. |
public boolean | isPersistable(Object obj) Method to return if the passed object is persistable using this API. |
public boolean | isPersistable(Class cls) Utility method to check if the specified class is of a type that can be persisted for this API. |
public boolean | isPersistent(Object obj) Accessor for whether the passed object is persistent. |
public boolean | isSingleFieldIdentity(Object id) Accessor for whether the passed identity is a valid single-field application-identity for this API. |
public boolean | isSingleFieldIdentityClass(String className) Checks whether the passed class name is valid for a single field application-identity for this API. |
public boolean | isTransactional(Object obj) Accessor for whether the passed object is transactional. |
public boolean | isValidPrimaryKeyClass(Class pkClass, AbstractClassMetaData cmd, ClassLoaderResolver clr, int noOfPkFields) Utility to check if a primary-key class is valid. |
public void | makeFieldDirty(Object obj, String fieldName) Method to make the field dirty in the object. |
public StateManager | newStateManager(ObjectManager om, AbstractClassMetaData acmd) Method to create a new StateManager for the ObjectManager and class. |