April 2003
Beginner to intermediate
380 pages
12h 25m
English
JDOHelper
This helper class provides applications with several utility methods. It provides methods to perform the following functions:
Construct a PersistenceManagerFactory instance via
a Properties object
Interrogate 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);
}Read now
Unlock full access