Method Summary |
|
public static void | clearCache(PersistenceManagerFactory factory) Clears all data from the factory-wide cache. |
static Object | create(InterfaceManagerFactory factory, Class clazz) Creates a new proxy object that implements the desired interface. |
public static Class | extractClass(Object objectId) Takes an object ID as returned by PersistenceManager.getObjectId()
or JDOHelper.getObjectId() and returns the portion that refers
to the class of the object. |
public static Object | extractPrimaryKey(Object objectId) Takes an object ID as returned by PersistenceManager.getObjectId()
or JDOHelper.getObjectId() and returns the portion that refers
to the datastore primary key. |
public static int | extractPrimaryKeyAsInt(Object objectId) Takes an object ID as returned by PersistenceManager.getObjectId()
or JDOHelper.getObjectId() and returns the portion that refers
to the datastore primary key. |
public static long | extractPrimaryKeyAsLong(Object objectId) Takes an object ID as returned by PersistenceManager.getObjectId()
or JDOHelper.getObjectId() and returns the portion that refers
to the datastore primary key. |
public static DataSource | getDataSource(PersistenceManagerFactory factory) Returns the data source in use by the PersistenceManagerFactory. |
public static FetchGroupManager | getFetchGroupManager(PersistenceManager mgr) Returns the FetchGroupManager associated with the given persistence
manager. |
public static ModelMapping | getModelMapping(PersistenceManager mgr) Returns the ModelMapping associated with the given manager's factory. |
public static ModelMapping | getModelMapping(PersistenceManagerFactory factory) Returns the ModelMapping associated with the given factory. |
public static String | getVersion() |
public static void | main(String[] argv) |
public static Object | newInstance(PersistenceManager mgr, Class mappedClass) Creates a new instance managed by the given PersistenceManager and implementing
the interface of the given interface class. |
public static Object | newInstance(PersistenceManagerFactory factory, Class mappedClass) Creates a new instance managed by the given PersistenceManager and implementing
the interface of the given interface class. |
public static ObjectId | newObjectId(Class mappedClass, int id) Creates an instance of a datastore identity that can be used in
PersistenceManager.getObjectById(). |
public static ObjectId | newObjectId(Class mappedClass, long id) Creates an instance of a datastore identity that can be used in
PersistenceManager.getObjectById(). |
public static ObjectId | newObjectId(Class mappedClass, Object id) Creates an instance of a datastore identity that can be used in
PersistenceManager.getObjectById(). |
public static PersistenceManagerFactory | newPersistenceManagerFactory() Construct a factory using the setting of the system property
"xorm.properties" (the constant defined here as XORM_PROPERTIES)
to reference a properties file. |
public static PersistenceManagerFactory | newPersistenceManagerFactory(ClassLoader loader) Construct a factory using the Java system property
"xorm.properties" to find a properties file. |
public static PersistenceManagerFactory | newPersistenceManagerFactory(String propertiesFilename) Creates a PersistenceManagerFactory using the standard JDO
properties. |
public static PersistenceManagerFactory | newPersistenceManagerFactory(String propertiesFilename, ClassLoader loader) Creates a PersistenceManagerFactory using the standard JDO
properties and the specified ClassLoader. |
public static PersistenceManagerFactory | newPersistenceManagerFactory(InputStream propertiesInputStream) Creates a PersistenceManagerFactory using the standard JDO properties. |
public static PersistenceManagerFactory | newPersistenceManagerFactory(InputStream propertiesInputStream, ClassLoader loader) Creates a PersistenceManagerFactory using the standard JDO
properties and the specified ClassLoader. |
public static PersistenceManagerFactory | newPersistenceManagerFactory(Properties properties) Creates a PersistenceManagerFactory using a passed in Properties object. |
public static PersistenceManagerFactory | newPersistenceManagerFactory(Properties properties, ClassLoader loader) Creates a PersistenceManagerFactory using a passed in
Properties object and the specified ClassLoader. |