Name
JDOHelper
Synopsis
This helper class provides applications with several utility methods. It provides methods to perform the following functions:
Construct a
PersistenceManagerFactory
instance via aProperties
objectInterrogate the lifecycle state of an instance
Get the object identifier of an instance
Mark a field of an instance as modified
public class JDOHelper { public JDOHelper( ); public static Object getObjectId(Object obj); public static PersistenceManager getPersistenceManager(Object obj); public static PersistenceManagerFactory getPersistenceManagerFactory(Properties props); public static PersistenceManagerFactory getPersistenceManagerFactory(Properties props, ClassLoader cl); public static Object getTransactionalObjectId(Object obj); public static boolean isDeleted(Object obj); public static boolean isDirty(Object obj); public static boolean isNew(Object obj); public static boolean isPersistent(Object obj); public static boolean isTransactional(Object obj); public static void makeDirty(Object obj, String fieldName); }
Get Java Data Objects now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.