|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xorm.XORM
XORM helper class to instantiate objects and access XORM-specific features.
Field Summary | |
static String |
XORM_PROPERTIES
The System property that the no-argument newPersistenceManagerFactory() method reads. |
Fields inherited from interface org.xorm.I15d |
I18N |
Constructor Summary | |
XORM()
|
Method Summary | |
static void |
clearCache(PersistenceManagerFactory factory)
Clears all data from the factory-wide cache. |
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. |
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. |
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. |
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. |
static DataSource |
getDataSource(PersistenceManagerFactory factory)
Returns the data source in use by the PersistenceManagerFactory. |
static FetchGroupManager |
getFetchGroupManager(PersistenceManager mgr)
Returns the FetchGroupManager associated with the given persistence manager. |
static ModelMapping |
getModelMapping(PersistenceManager mgr)
Returns the ModelMapping associated with the given manager's factory. |
static ModelMapping |
getModelMapping(PersistenceManagerFactory factory)
Returns the ModelMapping associated with the given factory. |
static String |
getVersion()
|
static void |
main(String[] argv)
|
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. |
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. |
static ObjectId |
newObjectId(Class mappedClass,
int id)
Creates an instance of a datastore identity that can be used in PersistenceManager.getObjectById(). |
static ObjectId |
newObjectId(Class mappedClass,
long id)
Creates an instance of a datastore identity that can be used in PersistenceManager.getObjectById(). |
static ObjectId |
newObjectId(Class mappedClass,
Object id)
Creates an instance of a datastore identity that can be used in PersistenceManager.getObjectById(). |
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. |
static PersistenceManagerFactory |
newPersistenceManagerFactory(ClassLoader loader)
Construct a factory using the Java system property "xorm.properties" to find a properties file. |
static PersistenceManagerFactory |
newPersistenceManagerFactory(InputStream propertiesInputStream)
Creates a PersistenceManagerFactory using the standard JDO properties. |
static PersistenceManagerFactory |
newPersistenceManagerFactory(InputStream propertiesInputStream,
ClassLoader loader)
Creates a PersistenceManagerFactory using the standard JDO properties and the specified ClassLoader. |
static PersistenceManagerFactory |
newPersistenceManagerFactory(Properties properties)
Creates a PersistenceManagerFactory using a passed in Properties object. |
static PersistenceManagerFactory |
newPersistenceManagerFactory(Properties properties,
ClassLoader loader)
Creates a PersistenceManagerFactory using a passed in Properties object and the specified ClassLoader. |
static PersistenceManagerFactory |
newPersistenceManagerFactory(String propertiesFilename)
Creates a PersistenceManagerFactory using the standard JDO properties. |
static PersistenceManagerFactory |
newPersistenceManagerFactory(String propertiesFilename,
ClassLoader loader)
Creates a PersistenceManagerFactory using the standard JDO properties and the specified ClassLoader. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String XORM_PROPERTIES
Constructor Detail |
public XORM()
Method Detail |
public static PersistenceManagerFactory newPersistenceManagerFactory()
public static PersistenceManagerFactory newPersistenceManagerFactory(ClassLoader loader)
public static PersistenceManagerFactory newPersistenceManagerFactory(String propertiesFilename)
public static PersistenceManagerFactory newPersistenceManagerFactory(String propertiesFilename, ClassLoader loader)
public static PersistenceManagerFactory newPersistenceManagerFactory(InputStream propertiesInputStream)
public static PersistenceManagerFactory newPersistenceManagerFactory(InputStream propertiesInputStream, ClassLoader loader)
public static PersistenceManagerFactory newPersistenceManagerFactory(Properties properties)
public static PersistenceManagerFactory newPersistenceManagerFactory(Properties properties, ClassLoader loader)
public static Object newInstance(PersistenceManager mgr, Class mappedClass)
public static Object newInstance(PersistenceManagerFactory factory, Class mappedClass)
public static ObjectId newObjectId(Class mappedClass, int id)
public static ObjectId newObjectId(Class mappedClass, long id)
public static ObjectId newObjectId(Class mappedClass, Object id)
public static Object extractPrimaryKey(Object objectId)
public static int extractPrimaryKeyAsInt(Object objectId)
public static long extractPrimaryKeyAsLong(Object objectId)
public static Class extractClass(Object objectId)
public static ModelMapping getModelMapping(PersistenceManager mgr)
public static ModelMapping getModelMapping(PersistenceManagerFactory factory)
public static FetchGroupManager getFetchGroupManager(PersistenceManager mgr)
public static void clearCache(PersistenceManagerFactory factory)
public static DataSource getDataSource(PersistenceManagerFactory factory)
public static String getVersion()
public static void main(String[] argv)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |