public interface OpenJPAEntityManagerFactorySPI extends OpenJPAEntityManagerFactory
CONN_RETAIN_ALWAYS, CONN_RETAIN_DEMAND, CONN_RETAIN_TRANS
Modifier and Type | Method and Description |
---|---|
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.
|
OpenJPAEntityManagerSPI |
createEntityManager() |
OpenJPAEntityManagerSPI |
createEntityManager(Map props)
Return an entity manager with the provided additional configuration
settings.
|
OpenJPAConfiguration |
getConfiguration()
Return the configuration for this factory.
|
void |
removeLifecycleListener(Object listener)
Remove a listener for lifecycle-related events.
|
void |
removeTransactionListener(Object listener)
Remove a listener for transaction-related events.
|
getCriteriaBuilder, getDynamicQueryBuilder, getProperties, getQueryResultCache, getStoreCache, getStoreCache, getSupportedProperties, getUserObject, putUserObject
void addLifecycleListener(Object listener, Class... classes)
org.apache.openjpa.event
package for
listener types.addLifecycleListener
in interface OpenJPAEntityManagerFactory
void removeLifecycleListener(Object listener)
removeLifecycleListener
in interface OpenJPAEntityManagerFactory
void addTransactionListener(Object listener)
org.apache.openjpa.event
package for
listener types.addTransactionListener
in interface OpenJPAEntityManagerFactory
void removeTransactionListener(Object listener)
removeTransactionListener
in interface OpenJPAEntityManagerFactory
OpenJPAConfiguration getConfiguration()
getConfiguration
in interface OpenJPAEntityManagerFactory
OpenJPAEntityManagerSPI createEntityManager()
createEntityManager
in interface javax.persistence.EntityManagerFactory
createEntityManager
in interface OpenJPAEntityManagerFactory
OpenJPAEntityManagerSPI createEntityManager(Map props)
OpenJPAEntityManagerFactory
createEntityManager
in interface javax.persistence.EntityManagerFactory
createEntityManager
in interface OpenJPAEntityManagerFactory
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.