|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ojb.broker.PersistenceBrokerFactory
public class PersistenceBrokerFactory
Convenience factory class that produces PersistenceBroker
instances.
PersistenceBrokerFactoryFactory
,
PersistenceBrokerFactoryIF
Constructor Summary | |
---|---|
PersistenceBrokerFactory()
|
Method Summary | |
---|---|
static PersistenceBroker |
createPersistenceBroker(PBKey key)
Creates a new broker instance for the given key. |
static PersistenceBroker |
createPersistenceBroker(String jcdAlias,
String user,
String password)
Creates a new broker instance. |
static PersistenceBroker |
defaultPersistenceBroker()
Creates a default broker instance for the default broker key. |
static Configurator |
getConfigurator()
Returns the Configurator
object. |
static PBKey |
getDefaultKey()
Returns the key that specifies the default persistence manager. |
static void |
releaseAllInstances()
Releases all broker instances pooled by this factory (if any). |
static void |
setDefaultKey(PBKey key)
Sets the key that specifies the default persistence manager. |
static void |
shutdown()
Shuts OJB down, i.e. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PersistenceBrokerFactory()
Method Detail |
---|
public static Configurator getConfigurator()
Configurator
object.
public static void setDefaultKey(PBKey key)
key
- The default broker keyPersistenceBrokerFactoryIF.setDefaultKey(org.apache.ojb.broker.PBKey)
public static PBKey getDefaultKey()
PersistenceBrokerFactoryIF.getDefaultKey()
public static PersistenceBroker defaultPersistenceBroker() throws PBFactoryException
PBFactoryException
PersistenceBrokerFactoryIF.defaultPersistenceBroker()
public static PersistenceBroker createPersistenceBroker(String jcdAlias, String user, String password) throws PBFactoryException
jcdAlias
- The jdbc connection descriptor name as defined in the repositoryuser
- The user name to be used for connecting to the databasepassword
- The password to be used for connecting to the database
PBFactoryException
PersistenceBrokerFactoryIF.createPersistenceBroker(java.lang.String, java.lang.String, java.lang.String)
public static PersistenceBroker createPersistenceBroker(PBKey key) throws PBFactoryException
key
- The broker key
PBFactoryException
PersistenceBrokerFactoryIF.createPersistenceBroker(org.apache.ojb.broker.PBKey)
public static void releaseAllInstances()
PersistenceBrokerFactoryIF.releaseAllInstances()
public static void shutdown()
PersistenceBrokerFactoryIF.shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |