public interface OpenJPAEntityManagerFactory
extends javax.persistence.EntityManagerFactory, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
CONN_RETAIN_ALWAYS
Deprecated.
use
ConnectionRetainMode enums instead. |
static int |
CONN_RETAIN_DEMAND
Deprecated.
use
ConnectionRetainMode enums instead. |
static int |
CONN_RETAIN_TRANS
Deprecated.
use
ConnectionRetainMode enums instead. |
| Modifier and Type | Method and Description |
|---|---|
void |
addLifecycleListener(java.lang.Object listener,
java.lang.Class... classes)
Deprecated.
cast to
OpenJPAEntityManagerFactorySPI instead. This
method pierces the published-API boundary, as does the SPI cast. |
void |
addTransactionListener(java.lang.Object listener)
Deprecated.
cast to
OpenJPAEntityManagerFactorySPI instead. This
method pierces the published-API boundary, as does the SPI cast. |
OpenJPAEntityManager |
createEntityManager() |
OpenJPAEntityManager |
createEntityManager(java.util.Map props)
Return an entity manager with the provided additional configuration
settings.
|
OpenJPAConfiguration |
getConfiguration()
Deprecated.
cast to
OpenJPAEntityManagerFactorySPI instead. This
method pierces the published-API boundary, as does the SPI cast. |
OpenJPACriteriaBuilder |
getCriteriaBuilder()
Gets the QueryBuilder with OpenJPA-extended capabilities.
|
QueryBuilder |
getDynamicQueryBuilder()
Gets a builder for dynamic queries.
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Return properties describing this runtime.
|
QueryResultCache |
getQueryResultCache()
Access query result cache.
|
StoreCache |
getStoreCache()
Access the level 2 store cache.
|
StoreCache |
getStoreCache(java.lang.String name)
Access a named level 2 store cache.
|
java.util.Set<java.lang.String> |
getSupportedProperties()
Get the properties supported by this runtime.
|
java.lang.Object |
getUserObject(java.lang.Object key)
Get the value for the specified key from the map of user objects.
|
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)
Deprecated.
cast to
OpenJPAEntityManagerFactorySPI instead. This
method pierces the published-API boundary, as does the SPI cast. |
void |
removeTransactionListener(java.lang.Object listener)
Deprecated.
cast to
OpenJPAEntityManagerFactorySPI instead. This
method pierces the published-API boundary, as does the SPI cast. |
static final int CONN_RETAIN_DEMAND
ConnectionRetainMode enums instead.static final int CONN_RETAIN_TRANS
ConnectionRetainMode enums instead.static final int CONN_RETAIN_ALWAYS
ConnectionRetainMode enums instead.java.util.Map<java.lang.String,java.lang.Object> getProperties()
getProperties in interface javax.persistence.EntityManagerFactoryjava.lang.Object putUserObject(java.lang.Object key,
java.lang.Object val)
java.lang.Object getUserObject(java.lang.Object key)
StoreCache getStoreCache()
StoreCache getStoreCache(java.lang.String name)
QueryResultCache getQueryResultCache()
OpenJPAEntityManager createEntityManager()
createEntityManager in interface javax.persistence.EntityManagerFactoryOpenJPAEntityManager createEntityManager(java.util.Map props)
createEntityManager in interface javax.persistence.EntityManagerFactoryOpenJPAConfiguration getConfiguration()
OpenJPAEntityManagerFactorySPI instead. This
method pierces the published-API boundary, as does the SPI cast.void addLifecycleListener(java.lang.Object listener,
java.lang.Class... classes)
OpenJPAEntityManagerFactorySPI instead. This
method pierces the published-API boundary, as does the SPI cast.void removeLifecycleListener(java.lang.Object listener)
OpenJPAEntityManagerFactorySPI instead. This
method pierces the published-API boundary, as does the SPI cast.void addTransactionListener(java.lang.Object listener)
OpenJPAEntityManagerFactorySPI instead. This
method pierces the published-API boundary, as does the SPI cast.void removeTransactionListener(java.lang.Object listener)
OpenJPAEntityManagerFactorySPI instead. This
method pierces the published-API boundary, as does the SPI cast.QueryBuilder getDynamicQueryBuilder()
OpenJPACriteriaBuilder getCriteriaBuilder()
getCriteriaBuilder in interface javax.persistence.EntityManagerFactoryjava.util.Set<java.lang.String> getSupportedProperties()
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.