Arch4J 1.1

org.arch4j.persistence
Class PersistenceProvider

java.lang.Object
  |
  +--org.arch4j.persistence.PersistenceProvider

public class PersistenceProvider
extends Object

Author:
alwick

Constructor Summary
protected PersistenceProvider()
          Creates a new instance of Persistence
 
Method Summary
static PersistenceManager getManager()
          Get the persistence manager for the given object.
static PersistenceManager getManagerFor(String logicalName)
          Create a PersistenceManager for persistence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistenceProvider

protected PersistenceProvider()
Creates a new instance of Persistence

Method Detail

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.

Arch4J 1.1

Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.