|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.persistence.EntityManagerFactoryImpl
public class EntityManagerFactoryImpl
Implementation of EntityManagerFactory that acts as a
facade to a BrokerFactory.
| Constructor Summary | |
|---|---|
EntityManagerFactoryImpl()
Default constructor provided for auto-instantiation. |
|
EntityManagerFactoryImpl(BrokerFactory factory)
Supply delegate on construction. |
|
| Method Summary | |
|---|---|
void |
addLifecycleListener(Object listener,
Class... classes)
Register a listener for lifecycle-related events on the specified classes. |
void |
addTransactionListener(Object listener)
Register a listener for transaction-related events on the specified classes. |
void |
close()
|
OpenJPAEntityManagerSPI |
createEntityManager()
|
OpenJPAEntityManagerSPI |
createEntityManager(Map props)
Return an entity manager with the provided additional configuration settings. |
boolean |
equals(Object other)
|
BrokerFactory |
getBrokerFactory()
Delegate. |
OpenJPAConfiguration |
getConfiguration()
Return the configuration for this factory. |
Properties |
getProperties()
Return properties describing this runtime. |
QueryResultCache |
getQueryResultCache()
Access query result cache. |
StoreCache |
getStoreCache()
Access the level 2 store cache. |
StoreCache |
getStoreCache(String cacheName)
Access a named level 2 store cache. |
Object |
getUserObject(Object key)
Get the value for the specified key from the map of user objects. |
int |
hashCode()
|
boolean |
isOpen()
|
protected EntityManagerImpl |
newEntityManagerImpl(Broker broker)
Create a new entity manager around the given broker. |
Object |
putUserObject(Object key,
Object val)
Put the specified key-value pair into the map of user objects. |
void |
removeLifecycleListener(Object listener)
Remove a listener for lifecycle-related events. |
void |
removeTransactionListener(Object listener)
Remove a listener for transaction-related events. |
void |
setBrokerFactory(BrokerFactory factory)
Delegate must be provided before use. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EntityManagerFactoryImpl()
public EntityManagerFactoryImpl(BrokerFactory factory)
| Method Detail |
|---|
public BrokerFactory getBrokerFactory()
public void setBrokerFactory(BrokerFactory factory)
public OpenJPAConfiguration getConfiguration()
OpenJPAEntityManagerFactorySPI
getConfiguration in interface OpenJPAEntityManagerFactorygetConfiguration in interface OpenJPAEntityManagerFactorySPIpublic Properties getProperties()
OpenJPAEntityManagerFactory
getProperties in interface OpenJPAEntityManagerFactory
public Object putUserObject(Object key,
Object val)
OpenJPAEntityManagerFactory
putUserObject in interface OpenJPAEntityManagerFactorypublic Object getUserObject(Object key)
OpenJPAEntityManagerFactory
getUserObject in interface OpenJPAEntityManagerFactorypublic StoreCache getStoreCache()
OpenJPAEntityManagerFactory
getStoreCache in interface OpenJPAEntityManagerFactorypublic StoreCache getStoreCache(String cacheName)
OpenJPAEntityManagerFactory
getStoreCache in interface OpenJPAEntityManagerFactorypublic QueryResultCache getQueryResultCache()
OpenJPAEntityManagerFactory
getQueryResultCache in interface OpenJPAEntityManagerFactorypublic OpenJPAEntityManagerSPI createEntityManager()
createEntityManager in interface EntityManagerFactorycreateEntityManager in interface OpenJPAEntityManagerFactorycreateEntityManager in interface OpenJPAEntityManagerFactorySPIpublic OpenJPAEntityManagerSPI createEntityManager(Map props)
OpenJPAEntityManagerFactory
createEntityManager in interface EntityManagerFactorycreateEntityManager in interface OpenJPAEntityManagerFactorycreateEntityManager in interface OpenJPAEntityManagerFactorySPIprotected EntityManagerImpl newEntityManagerImpl(Broker broker)
public void addLifecycleListener(Object listener,
Class... classes)
OpenJPAEntityManagerFactorySPIorg.apache.openjpa.event package for
listener types.
addLifecycleListener in interface OpenJPAEntityManagerFactoryaddLifecycleListener in interface OpenJPAEntityManagerFactorySPIpublic void removeLifecycleListener(Object listener)
OpenJPAEntityManagerFactorySPI
removeLifecycleListener in interface OpenJPAEntityManagerFactoryremoveLifecycleListener in interface OpenJPAEntityManagerFactorySPIpublic void addTransactionListener(Object listener)
OpenJPAEntityManagerFactorySPIorg.apache.openjpa.event package for
listener types.
addTransactionListener in interface OpenJPAEntityManagerFactoryaddTransactionListener in interface OpenJPAEntityManagerFactorySPIpublic void removeTransactionListener(Object listener)
OpenJPAEntityManagerFactorySPI
removeTransactionListener in interface OpenJPAEntityManagerFactoryremoveTransactionListener in interface OpenJPAEntityManagerFactorySPIpublic void close()
close in interface EntityManagerFactoryclose in interface Closeablepublic boolean isOpen()
isOpen in interface EntityManagerFactorypublic int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||