|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BrokerFactory
Factory for Broker
instances.
Method Summary | |
---|---|
void |
addLifecycleListener(java.lang.Object listener,
java.lang.Class[] classes)
Register a listener for lifecycle-related events on the specified classes. |
void |
close()
Close the factory. |
OpenJPAConfiguration |
getConfiguration()
Return the configuration for this factory. |
java.util.Properties |
getProperties()
Return properties describing this runtime. |
java.lang.Object |
getUserObject(java.lang.Object key)
Get the value for the specified key from the map of user objects. |
boolean |
isClosed()
Returns true if this broker factory is closed. |
void |
lock()
Synchronizes on an internal lock. |
Broker |
newBroker()
Return a broker with default settings. |
Broker |
newBroker(java.lang.String user,
java.lang.String pass,
boolean managed,
int connRetainMode,
boolean findExisting)
Return a broker using the given credentials and in the given transaction and connection retain mode, optionally finding existing broker in the global transaction. |
java.lang.Object |
putUserObject(java.lang.Object key,
java.lang.Object val)
Put the specified key-value pair into the map of user objects. |
void |
removeLifecycleListener(java.lang.Object listener)
Remove a listener for lifecycle-related events. |
void |
unlock()
Release the internal lock. |
Method Detail |
---|
OpenJPAConfiguration getConfiguration()
java.util.Properties getProperties()
java.lang.Object putUserObject(java.lang.Object key, java.lang.Object val)
java.lang.Object getUserObject(java.lang.Object key)
Broker newBroker()
Broker newBroker(java.lang.String user, java.lang.String pass, boolean managed, int connRetainMode, boolean findExisting)
void addLifecycleListener(java.lang.Object listener, java.lang.Class[] classes)
void removeLifecycleListener(java.lang.Object listener)
void close()
close
in interface org.apache.openjpa.lib.util.Closeable
boolean isClosed()
void lock()
void unlock()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |