| org.jpox.jdo.JPOXJDOHelper
JPOXJDOHelper | public class JPOXJDOHelper extends JDOHelper (Code) | | Helper for persistence operations with JPOX.
Extends JDOHelper so that people can use JPOXHelper if they wish.
version: $Revision: 1.17 $ |
LOCALISER | final protected static Localiser LOCALISER(Code) | | Localisation utility for output messages
|
getClassesWithMetaData | public static String[] getClassesWithMetaData(PersistenceManagerFactory pmf)(Code) | | Accessor for the names of the classes that have MetaData for this PMF.
Parameters: pmf - The PMF The class names |
getDetachedObjectDirtyFields | public static String[] getDetachedObjectDirtyFields(Object obj, PersistenceManager pm)(Code) | | Method to return the names of all fields that are currently dirty in the
passed detached object.
TODO Try to remove the need for the PM. We currently use it to generate the temporary StateManager
Parameters: obj - The PersistenceCapable (detached) Parameters: pm - PersistenceManager to use Names of the fields that are dirty throws: JPOXUserException - Thrown if the object is not detached |
getDetachedObjectLoadedFields | public static String[] getDetachedObjectLoadedFields(Object obj, PersistenceManager pm)(Code) | | Method to return the names of all fields that are currently loaded in the
passed detached object.
TODO Try to remove the need for the PM. We currently use it to generate the temporary StateManager
Parameters: obj - The PersistenceCapable (detached) Parameters: pm - PersistenceManager to use Names of the fields that are loaded throws: JPOXUserException - Thrown if the object is not detached |
getJDOExceptionForJPOXException | public static JDOException getJDOExceptionForJPOXException(JPOXException jpe)(Code) | | Convenience method to convert a JPOX exception into a JDO exception.
If the incoming exception has a "failed object" then create the new exception with
a failed object. Otherwise if the incoming exception has nested exceptions then
create this exception with those nested exceptions. Else create this exception with
the incoming exception as its nested exception.
Parameters: jpe - JPOXException The JDOException |
getMetaDataForClass | public static ClassMetaData getMetaDataForClass(PersistenceManagerFactory pmf, Class cls)(Code) | | Accessor for the JPOX MetaData for the specified class
Parameters: pmf - PersistenceManager factory Parameters: cls - The class The MetaData for the class |
getObjectStateAsString | public static String getObjectStateAsString(Object obj)(Code) | | Convenience method to return a string of the state of an object.
Will return things like "detached-dirty", "persistent-clean", etc
TODO Remove this when JDOHelper has getObjectState() method returning ObjectState enum.
Parameters: obj - The object The state |
|
|