|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.base.object.spi.AbstractPersistenceManagerFactory
org.openmdx.base.accessor.jmi.spi.PersistenceManagerFactory_1
public class PersistenceManagerFactory_1
ManagerFactory
| Method Summary | |
|---|---|
void |
close()
Close this PersistenceManagerFactory. |
Object |
getNativeConnection()
Returns the native, datastore-specific connection that this connection wraps. |
static PersistenceManagerFactory |
getPersistenceManagerFactory(Map properties)
Get instance |
static String[] |
getPrincipalChain(String connectionUsername)
Convert the stringified principal chain into an array |
protected PersistenceManager |
newPersistenceManager(InstanceLifecycleNotifier notifier)
Create a new persistence manager |
protected PersistenceManager |
newPersistenceManager(InstanceLifecycleNotifier notifier,
String connectionUsername,
String connectionPassword)
Create a new persistence manager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static PersistenceManagerFactory getPersistenceManagerFactory(Map properties)
properties -
public void close()
PersistenceManagerFactoryIf the authorization check succeeds, check to see that all PersistenceManager instances obtained from this PersistenceManagerFactory have no active transactions. If any PersistenceManager instances have an active transaction, throw a JDOUserException, with one nested JDOUserException for each PersistenceManager with an active Transaction.
If there are no active transactions, then close all PersistenceManager instances obtained from this PersistenceManagerFactory, mark this PersistenceManagerFactory as closed, disallow getPersistenceManager methods, and allow all other get methods. If a set method or getPersistenceManager method is called after close, then JDOUserException is thrown.
close in interface JDOConnectionclose in interface PersistenceManagerFactoryclose in class AbstractPersistenceManagerFactorypublic Object getNativeConnection()
JDOConnectionPersistenceManager's
connection into an invalid state.
getNativeConnection in interface JDOConnectionprotected PersistenceManager newPersistenceManager(InstanceLifecycleNotifier notifier)
The parameters may be kept by the instance.
newPersistenceManager in class AbstractPersistenceManagerFactorynotifier - connectionUsername - connectionPassword -
protected PersistenceManager newPersistenceManager(InstanceLifecycleNotifier notifier,
String connectionUsername,
String connectionPassword)
The parameters may be kept by the instance.
newPersistenceManager in class AbstractPersistenceManagerFactorynotifier - connectionUsername - the procnipal chainconnectionPassword - the correlation id
public static String[] getPrincipalChain(String connectionUsername)
connectionUsername - a principal or the stringified principal list
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||