org.arch4j.persistence
Class PersistenceProvider
java.lang.Object
|
+--org.arch4j.persistence.PersistenceProvider
- public class PersistenceProvider
- extends Object
- Author:
- alwick
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PersistenceProvider
protected PersistenceProvider()
- Creates a new instance of Persistence
getManager
public static PersistenceManager getManager()
- Get the persistence manager for the given object.
getManagerFor
public static PersistenceManager getManagerFor(String logicalName)
- Create a
PersistenceManager
for persistence. Map the
given logical name for the database to the physical connection
specification by looking in the persistence.properties file.
Note: The property keys used for the connection specification are
summarized below. For example, if the logical name is myDatabase,
the property keys used are:
myDatabase.filename
myDatabase.name
- Parameters:
logicalName
- The name to use for the connection mapping.
- Returns:
- A
PersistenceManager
instance to use for persistence.
Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.