public class SessionDecorator extends Object implements org.hibernate.Session
Constructor and Description |
---|
SessionDecorator(org.hibernate.Session delegate) |
Modifier and Type | Method and Description |
---|---|
void |
addEventListeners(org.hibernate.SessionEventListener... listeners) |
org.hibernate.Transaction |
beginTransaction() |
org.hibernate.Session.LockRequest |
buildLockRequest(org.hibernate.LockOptions lockOptions) |
<T> org.hibernate.IdentifierLoadAccess<T> |
byId(Class<T> entityClass) |
org.hibernate.IdentifierLoadAccess |
byId(String entityName) |
<T> org.hibernate.MultiIdentifierLoadAccess<T> |
byMultipleIds(Class<T> entityClass) |
org.hibernate.MultiIdentifierLoadAccess |
byMultipleIds(String entityName) |
<T> org.hibernate.NaturalIdLoadAccess<T> |
byNaturalId(Class<T> entityClass) |
org.hibernate.NaturalIdLoadAccess |
byNaturalId(String entityName) |
<T> org.hibernate.SimpleNaturalIdLoadAccess<T> |
bySimpleNaturalId(Class<T> entityClass) |
org.hibernate.SimpleNaturalIdLoadAccess |
bySimpleNaturalId(String entityName) |
void |
cancelQuery() |
void |
clear() |
void |
close() |
boolean |
contains(Object entity) |
boolean |
contains(String entityName,
Object object) |
org.hibernate.Criteria |
createCriteria(Class persistentClass)
Deprecated.
|
org.hibernate.Criteria |
createCriteria(Class persistentClass,
String alias)
Deprecated.
|
org.hibernate.Criteria |
createCriteria(String entityName)
Deprecated.
|
org.hibernate.Criteria |
createCriteria(String entityName,
String alias)
Deprecated.
|
<T> javax.persistence.EntityGraph<T> |
createEntityGraph(Class<T> rootType) |
javax.persistence.EntityGraph<?> |
createEntityGraph(String graphName) |
org.hibernate.query.Query |
createFilter(Object collection,
String queryString) |
org.hibernate.query.Query |
createNamedQuery(String name) |
<T> org.hibernate.query.Query<T> |
createNamedQuery(String name,
Class<T> resultType) |
javax.persistence.StoredProcedureQuery |
createNamedStoredProcedureQuery(String name) |
org.hibernate.query.NativeQuery |
createNativeQuery(String sqlString) |
org.hibernate.query.spi.NativeQueryImplementor |
createNativeQuery(String sqlString,
Class resultClass) |
org.hibernate.query.NativeQuery |
createNativeQuery(String sqlString,
String resultSetMapping) |
org.hibernate.query.Query |
createQuery(javax.persistence.criteria.CriteriaDelete deleteQuery) |
<T> org.hibernate.query.Query<T> |
createQuery(javax.persistence.criteria.CriteriaQuery<T> criteriaQuery) |
org.hibernate.query.Query |
createQuery(javax.persistence.criteria.CriteriaUpdate updateQuery) |
org.hibernate.query.Query |
createQuery(String queryString) |
<T> org.hibernate.query.Query<T> |
createQuery(String queryString,
Class<T> resultType) |
org.hibernate.query.NativeQuery |
createSQLQuery(String queryString)
Deprecated.
|
org.hibernate.procedure.ProcedureCall |
createStoredProcedureCall(String procedureName) |
org.hibernate.procedure.ProcedureCall |
createStoredProcedureCall(String procedureName,
Class[] resultClasses) |
org.hibernate.procedure.ProcedureCall |
createStoredProcedureCall(String procedureName,
String... resultSetMappings) |
javax.persistence.StoredProcedureQuery |
createStoredProcedureQuery(String procedureName) |
javax.persistence.StoredProcedureQuery |
createStoredProcedureQuery(String procedureName,
Class[] resultClasses) |
javax.persistence.StoredProcedureQuery |
createStoredProcedureQuery(String procedureName,
String... resultSetMappings) |
void |
delete(Object object) |
void |
delete(String entityName,
Object object) |
void |
detach(Object entity) |
void |
disableFetchProfile(String name) |
void |
disableFilter(String filterName) |
Connection |
disconnect() |
<T> T |
doReturningWork(org.hibernate.jdbc.ReturningWork<T> work) |
void |
doWork(org.hibernate.jdbc.Work work) |
void |
enableFetchProfile(String name) |
org.hibernate.Filter |
enableFilter(String filterName) |
void |
evict(Object object) |
<T> T |
find(Class<T> entityClass,
Object primaryKey) |
<T> T |
find(Class<T> entityClass,
Object primaryKey,
javax.persistence.LockModeType lockMode) |
<T> T |
find(Class<T> entityClass,
Object primaryKey,
javax.persistence.LockModeType lockMode,
Map<String,Object> properties) |
<T> T |
find(Class<T> entityClass,
Object primaryKey,
Map<String,Object> properties) |
void |
flush() |
<T> T |
get(Class<T> entityType,
Serializable id) |
<T> T |
get(Class<T> entityType,
Serializable id,
org.hibernate.LockMode lockMode) |
<T> T |
get(Class<T> entityType,
Serializable id,
org.hibernate.LockOptions lockOptions) |
Object |
get(String entityName,
Serializable id) |
Object |
get(String entityName,
Serializable id,
org.hibernate.LockMode lockMode) |
Object |
get(String entityName,
Serializable id,
org.hibernate.LockOptions lockOptions) |
org.hibernate.CacheMode |
getCacheMode() |
javax.persistence.criteria.CriteriaBuilder |
getCriteriaBuilder() |
org.hibernate.LockMode |
getCurrentLockMode(Object object) |
Object |
getDelegate() |
org.hibernate.Filter |
getEnabledFilter(String filterName) |
javax.persistence.EntityGraph<?> |
getEntityGraph(String graphName) |
<T> List<javax.persistence.EntityGraph<? super T>> |
getEntityGraphs(Class<T> entityClass) |
javax.persistence.EntityManagerFactory |
getEntityManagerFactory() |
String |
getEntityName(Object object) |
javax.persistence.FlushModeType |
getFlushMode() |
org.hibernate.FlushMode |
getHibernateFlushMode() |
Serializable |
getIdentifier(Object object) |
Integer |
getJdbcBatchSize() |
org.hibernate.LobHelper |
getLobHelper() |
javax.persistence.LockModeType |
getLockMode(Object entity) |
javax.persistence.metamodel.Metamodel |
getMetamodel() |
org.hibernate.query.NativeQuery |
getNamedNativeQuery(String name) |
org.hibernate.procedure.ProcedureCall |
getNamedProcedureCall(String name) |
org.hibernate.query.Query |
getNamedQuery(String queryName) |
org.hibernate.query.NativeQuery |
getNamedSQLQuery(String name)
Deprecated.
|
Map<String,Object> |
getProperties() |
<T> T |
getReference(Class<T> entityClass,
Object primaryKey) |
org.hibernate.Session |
getSession() |
org.hibernate.SessionFactory |
getSessionFactory() |
org.hibernate.stat.SessionStatistics |
getStatistics() |
String |
getTenantIdentifier() |
org.hibernate.Transaction |
getTransaction() |
org.hibernate.TypeHelper |
getTypeHelper() |
boolean |
isConnected() |
boolean |
isDefaultReadOnly() |
boolean |
isDirty() |
boolean |
isFetchProfileEnabled(String name) |
boolean |
isJoinedToTransaction() |
boolean |
isOpen() |
boolean |
isReadOnly(Object entityOrProxy) |
void |
joinTransaction() |
<T> T |
load(Class<T> theClass,
Serializable id) |
<T> T |
load(Class<T> theClass,
Serializable id,
org.hibernate.LockMode lockMode) |
<T> T |
load(Class<T> theClass,
Serializable id,
org.hibernate.LockOptions lockOptions) |
void |
load(Object object,
Serializable id) |
Object |
load(String entityName,
Serializable id) |
Object |
load(String entityName,
Serializable id,
org.hibernate.LockMode lockMode) |
Object |
load(String entityName,
Serializable id,
org.hibernate.LockOptions lockOptions) |
void |
lock(Object object,
org.hibernate.LockMode lockMode) |
void |
lock(Object entity,
javax.persistence.LockModeType lockMode) |
void |
lock(Object entity,
javax.persistence.LockModeType lockMode,
Map<String,Object> properties) |
void |
lock(String entityName,
Object object,
org.hibernate.LockMode lockMode) |
Object |
merge(Object object) |
Object |
merge(String entityName,
Object object) |
void |
persist(Object object) |
void |
persist(String entityName,
Object object) |
void |
reconnect(Connection connection) |
void |
refresh(Object object) |
void |
refresh(Object object,
org.hibernate.LockMode lockMode) |
void |
refresh(Object entity,
javax.persistence.LockModeType lockMode) |
void |
refresh(Object entity,
javax.persistence.LockModeType lockMode,
Map<String,Object> properties) |
void |
refresh(Object object,
org.hibernate.LockOptions lockOptions) |
void |
refresh(Object entity,
Map<String,Object> properties) |
void |
refresh(String entityName,
Object object) |
void |
refresh(String entityName,
Object object,
org.hibernate.LockOptions lockOptions) |
void |
remove(Object entity) |
void |
replicate(Object object,
org.hibernate.ReplicationMode replicationMode) |
void |
replicate(String entityName,
Object object,
org.hibernate.ReplicationMode replicationMode) |
Serializable |
save(Object object) |
Serializable |
save(String entityName,
Object object) |
void |
saveOrUpdate(Object object) |
void |
saveOrUpdate(String entityName,
Object object) |
org.hibernate.SharedSessionBuilder |
sessionWithOptions() |
void |
setCacheMode(org.hibernate.CacheMode cacheMode) |
void |
setDefaultReadOnly(boolean readOnly) |
void |
setFlushMode(org.hibernate.FlushMode flushMode)
Deprecated.
|
void |
setFlushMode(javax.persistence.FlushModeType flushMode) |
void |
setHibernateFlushMode(org.hibernate.FlushMode flushMode) |
void |
setJdbcBatchSize(Integer jdbcBatchSize) |
void |
setProperty(String propertyName,
Object value) |
void |
setReadOnly(Object entityOrProxy,
boolean readOnly) |
<T> T |
unwrap(Class<T> cls) |
void |
update(Object object) |
void |
update(String entityName,
Object object) |
public SessionDecorator(@Nonnull org.hibernate.Session delegate)
public org.hibernate.SharedSessionBuilder sessionWithOptions()
sessionWithOptions
in interface org.hibernate.Session
public void flush() throws org.hibernate.HibernateException
flush
in interface javax.persistence.EntityManager
flush
in interface org.hibernate.Session
org.hibernate.HibernateException
@Deprecated public void setFlushMode(org.hibernate.FlushMode flushMode)
setFlushMode
in interface org.hibernate.Session
public javax.persistence.FlushModeType getFlushMode()
getFlushMode
in interface javax.persistence.EntityManager
getFlushMode
in interface org.hibernate.Session
public void setFlushMode(javax.persistence.FlushModeType flushMode)
setFlushMode
in interface javax.persistence.EntityManager
public org.hibernate.FlushMode getHibernateFlushMode()
getHibernateFlushMode
in interface org.hibernate.Session
public void setHibernateFlushMode(org.hibernate.FlushMode flushMode)
setHibernateFlushMode
in interface org.hibernate.Session
public org.hibernate.CacheMode getCacheMode()
getCacheMode
in interface org.hibernate.Session
public void setCacheMode(org.hibernate.CacheMode cacheMode)
setCacheMode
in interface org.hibernate.Session
public org.hibernate.SessionFactory getSessionFactory()
getSessionFactory
in interface org.hibernate.Session
public void cancelQuery() throws org.hibernate.HibernateException
cancelQuery
in interface org.hibernate.Session
org.hibernate.HibernateException
public boolean isDirty() throws org.hibernate.HibernateException
isDirty
in interface org.hibernate.Session
org.hibernate.HibernateException
public boolean isDefaultReadOnly()
isDefaultReadOnly
in interface org.hibernate.Session
public void setDefaultReadOnly(boolean readOnly)
setDefaultReadOnly
in interface org.hibernate.Session
public Serializable getIdentifier(Object object)
getIdentifier
in interface org.hibernate.Session
public boolean contains(String entityName, Object object)
contains
in interface org.hibernate.Session
public void evict(Object object)
evict
in interface org.hibernate.Session
public <T> T load(Class<T> theClass, Serializable id, org.hibernate.LockMode lockMode)
load
in interface org.hibernate.Session
public <T> T load(Class<T> theClass, Serializable id, org.hibernate.LockOptions lockOptions)
load
in interface org.hibernate.Session
public Object load(String entityName, Serializable id, org.hibernate.LockMode lockMode)
load
in interface org.hibernate.Session
public Object load(String entityName, Serializable id, org.hibernate.LockOptions lockOptions)
load
in interface org.hibernate.Session
public <T> T load(Class<T> theClass, Serializable id)
load
in interface org.hibernate.Session
public Object load(String entityName, Serializable id)
load
in interface org.hibernate.Session
public void load(Object object, Serializable id)
load
in interface org.hibernate.Session
public void replicate(Object object, org.hibernate.ReplicationMode replicationMode)
replicate
in interface org.hibernate.Session
public void replicate(String entityName, Object object, org.hibernate.ReplicationMode replicationMode)
replicate
in interface org.hibernate.Session
public Serializable save(Object object)
save
in interface org.hibernate.Session
public Serializable save(String entityName, Object object)
save
in interface org.hibernate.Session
public void saveOrUpdate(Object object)
saveOrUpdate
in interface org.hibernate.Session
public void saveOrUpdate(String entityName, Object object)
saveOrUpdate
in interface org.hibernate.Session
public void update(Object object)
update
in interface org.hibernate.Session
public void update(String entityName, Object object)
update
in interface org.hibernate.Session
public Object merge(Object object)
merge
in interface javax.persistence.EntityManager
merge
in interface org.hibernate.Session
public Object merge(String entityName, Object object)
merge
in interface org.hibernate.Session
public void persist(Object object)
persist
in interface javax.persistence.EntityManager
persist
in interface org.hibernate.Session
public void persist(String entityName, Object object)
persist
in interface org.hibernate.Session
public void delete(Object object)
delete
in interface org.hibernate.Session
public void delete(String entityName, Object object)
delete
in interface org.hibernate.Session
public void lock(Object object, org.hibernate.LockMode lockMode)
lock
in interface org.hibernate.Session
public void lock(String entityName, Object object, org.hibernate.LockMode lockMode)
lock
in interface org.hibernate.Session
public org.hibernate.Session.LockRequest buildLockRequest(org.hibernate.LockOptions lockOptions)
buildLockRequest
in interface org.hibernate.Session
public void refresh(Object object)
refresh
in interface javax.persistence.EntityManager
refresh
in interface org.hibernate.Session
public void refresh(String entityName, Object object)
refresh
in interface org.hibernate.Session
public void refresh(Object object, org.hibernate.LockMode lockMode)
refresh
in interface org.hibernate.Session
public void refresh(Object object, org.hibernate.LockOptions lockOptions)
refresh
in interface org.hibernate.Session
public void refresh(String entityName, Object object, org.hibernate.LockOptions lockOptions)
refresh
in interface org.hibernate.Session
public org.hibernate.LockMode getCurrentLockMode(Object object)
getCurrentLockMode
in interface org.hibernate.Session
public org.hibernate.query.Query createFilter(Object collection, String queryString)
createFilter
in interface org.hibernate.Session
public void clear()
clear
in interface javax.persistence.EntityManager
clear
in interface org.hibernate.Session
public <T> T get(Class<T> entityType, Serializable id)
get
in interface org.hibernate.Session
public <T> T get(Class<T> entityType, Serializable id, org.hibernate.LockMode lockMode)
get
in interface org.hibernate.Session
public <T> T get(Class<T> entityType, Serializable id, org.hibernate.LockOptions lockOptions)
get
in interface org.hibernate.Session
public Object get(String entityName, Serializable id)
get
in interface org.hibernate.Session
public Object get(String entityName, Serializable id, org.hibernate.LockMode lockMode)
get
in interface org.hibernate.Session
public Object get(String entityName, Serializable id, org.hibernate.LockOptions lockOptions)
get
in interface org.hibernate.Session
public String getEntityName(Object object)
getEntityName
in interface org.hibernate.Session
public org.hibernate.IdentifierLoadAccess byId(String entityName)
byId
in interface org.hibernate.Session
public <T> org.hibernate.MultiIdentifierLoadAccess<T> byMultipleIds(Class<T> entityClass)
byMultipleIds
in interface org.hibernate.Session
public org.hibernate.MultiIdentifierLoadAccess byMultipleIds(String entityName)
byMultipleIds
in interface org.hibernate.Session
public <T> org.hibernate.IdentifierLoadAccess<T> byId(Class<T> entityClass)
byId
in interface org.hibernate.Session
public org.hibernate.NaturalIdLoadAccess byNaturalId(String entityName)
byNaturalId
in interface org.hibernate.Session
public <T> org.hibernate.NaturalIdLoadAccess<T> byNaturalId(Class<T> entityClass)
byNaturalId
in interface org.hibernate.Session
public org.hibernate.SimpleNaturalIdLoadAccess bySimpleNaturalId(String entityName)
bySimpleNaturalId
in interface org.hibernate.Session
public <T> org.hibernate.SimpleNaturalIdLoadAccess<T> bySimpleNaturalId(Class<T> entityClass)
bySimpleNaturalId
in interface org.hibernate.Session
public org.hibernate.Filter enableFilter(String filterName)
enableFilter
in interface org.hibernate.Session
public org.hibernate.Filter getEnabledFilter(String filterName)
getEnabledFilter
in interface org.hibernate.Session
public void disableFilter(String filterName)
disableFilter
in interface org.hibernate.Session
public org.hibernate.stat.SessionStatistics getStatistics()
getStatistics
in interface org.hibernate.Session
public boolean isReadOnly(Object entityOrProxy)
isReadOnly
in interface org.hibernate.Session
public void setReadOnly(Object entityOrProxy, boolean readOnly)
setReadOnly
in interface org.hibernate.Session
public void doWork(org.hibernate.jdbc.Work work) throws org.hibernate.HibernateException
doWork
in interface org.hibernate.Session
org.hibernate.HibernateException
public <T> T doReturningWork(org.hibernate.jdbc.ReturningWork<T> work) throws org.hibernate.HibernateException
doReturningWork
in interface org.hibernate.Session
org.hibernate.HibernateException
public Connection disconnect()
disconnect
in interface org.hibernate.Session
public void reconnect(Connection connection)
reconnect
in interface org.hibernate.Session
public boolean isFetchProfileEnabled(String name) throws org.hibernate.UnknownProfileException
isFetchProfileEnabled
in interface org.hibernate.Session
org.hibernate.UnknownProfileException
public void enableFetchProfile(String name) throws org.hibernate.UnknownProfileException
enableFetchProfile
in interface org.hibernate.Session
org.hibernate.UnknownProfileException
public void disableFetchProfile(String name) throws org.hibernate.UnknownProfileException
disableFetchProfile
in interface org.hibernate.Session
org.hibernate.UnknownProfileException
public org.hibernate.TypeHelper getTypeHelper()
getTypeHelper
in interface org.hibernate.Session
public org.hibernate.LobHelper getLobHelper()
getLobHelper
in interface org.hibernate.Session
public void addEventListeners(org.hibernate.SessionEventListener... listeners)
addEventListeners
in interface org.hibernate.Session
public org.hibernate.query.Query createQuery(String queryString)
createQuery
in interface javax.persistence.EntityManager
createQuery
in interface org.hibernate.query.QueryProducer
createQuery
in interface org.hibernate.Session
public <T> org.hibernate.query.Query<T> createQuery(String queryString, Class<T> resultType)
createQuery
in interface javax.persistence.EntityManager
createQuery
in interface org.hibernate.query.QueryProducer
createQuery
in interface org.hibernate.Session
public <T> org.hibernate.query.Query<T> createQuery(javax.persistence.criteria.CriteriaQuery<T> criteriaQuery)
createQuery
in interface javax.persistence.EntityManager
createQuery
in interface org.hibernate.Session
public org.hibernate.query.Query createQuery(javax.persistence.criteria.CriteriaUpdate updateQuery)
createQuery
in interface javax.persistence.EntityManager
createQuery
in interface org.hibernate.Session
public org.hibernate.query.Query createQuery(javax.persistence.criteria.CriteriaDelete deleteQuery)
createQuery
in interface javax.persistence.EntityManager
createQuery
in interface org.hibernate.Session
public <T> org.hibernate.query.Query<T> createNamedQuery(String name, Class<T> resultType)
createNamedQuery
in interface javax.persistence.EntityManager
createNamedQuery
in interface org.hibernate.query.QueryProducer
createNamedQuery
in interface org.hibernate.Session
public String getTenantIdentifier()
getTenantIdentifier
in interface org.hibernate.SharedSessionContract
public void close() throws org.hibernate.HibernateException
close
in interface AutoCloseable
close
in interface javax.persistence.EntityManager
close
in interface org.hibernate.SharedSessionContract
org.hibernate.HibernateException
public boolean isOpen()
isOpen
in interface javax.persistence.EntityManager
isOpen
in interface org.hibernate.SharedSessionContract
public boolean isConnected()
isConnected
in interface org.hibernate.SharedSessionContract
public org.hibernate.Transaction beginTransaction()
beginTransaction
in interface org.hibernate.SharedSessionContract
public org.hibernate.Transaction getTransaction()
getTransaction
in interface javax.persistence.EntityManager
getTransaction
in interface org.hibernate.SharedSessionContract
public org.hibernate.procedure.ProcedureCall getNamedProcedureCall(String name)
getNamedProcedureCall
in interface org.hibernate.SharedSessionContract
public org.hibernate.procedure.ProcedureCall createStoredProcedureCall(String procedureName)
createStoredProcedureCall
in interface org.hibernate.SharedSessionContract
public org.hibernate.procedure.ProcedureCall createStoredProcedureCall(String procedureName, Class[] resultClasses)
createStoredProcedureCall
in interface org.hibernate.SharedSessionContract
public org.hibernate.procedure.ProcedureCall createStoredProcedureCall(String procedureName, String... resultSetMappings)
createStoredProcedureCall
in interface org.hibernate.SharedSessionContract
@Deprecated public org.hibernate.Criteria createCriteria(Class persistentClass)
createCriteria
in interface org.hibernate.SharedSessionContract
@Deprecated public org.hibernate.Criteria createCriteria(Class persistentClass, String alias)
createCriteria
in interface org.hibernate.SharedSessionContract
@Deprecated public org.hibernate.Criteria createCriteria(String entityName)
createCriteria
in interface org.hibernate.SharedSessionContract
@Deprecated public org.hibernate.Criteria createCriteria(String entityName, String alias)
createCriteria
in interface org.hibernate.SharedSessionContract
public Integer getJdbcBatchSize()
getJdbcBatchSize
in interface org.hibernate.SharedSessionContract
public void setJdbcBatchSize(Integer jdbcBatchSize)
setJdbcBatchSize
in interface org.hibernate.SharedSessionContract
public org.hibernate.query.Query getNamedQuery(String queryName)
getNamedQuery
in interface org.hibernate.query.QueryProducer
public org.hibernate.query.Query createNamedQuery(String name)
createNamedQuery
in interface javax.persistence.EntityManager
createNamedQuery
in interface org.hibernate.query.QueryProducer
@Deprecated public org.hibernate.query.NativeQuery createSQLQuery(String queryString)
createSQLQuery
in interface org.hibernate.query.QueryProducer
public org.hibernate.query.NativeQuery createNativeQuery(String sqlString)
createNativeQuery
in interface javax.persistence.EntityManager
createNativeQuery
in interface org.hibernate.query.QueryProducer
public org.hibernate.query.spi.NativeQueryImplementor createNativeQuery(String sqlString, Class resultClass)
createNativeQuery
in interface javax.persistence.EntityManager
createNativeQuery
in interface org.hibernate.query.QueryProducer
public org.hibernate.query.NativeQuery createNativeQuery(String sqlString, String resultSetMapping)
createNativeQuery
in interface javax.persistence.EntityManager
createNativeQuery
in interface org.hibernate.query.QueryProducer
@Deprecated public org.hibernate.query.NativeQuery getNamedSQLQuery(String name)
getNamedSQLQuery
in interface org.hibernate.query.QueryProducer
public org.hibernate.query.NativeQuery getNamedNativeQuery(String name)
getNamedNativeQuery
in interface org.hibernate.query.QueryProducer
public void remove(Object entity)
remove
in interface javax.persistence.EntityManager
public <T> T find(Class<T> entityClass, Object primaryKey)
find
in interface javax.persistence.EntityManager
public <T> T find(Class<T> entityClass, Object primaryKey, Map<String,Object> properties)
find
in interface javax.persistence.EntityManager
public <T> T find(Class<T> entityClass, Object primaryKey, javax.persistence.LockModeType lockMode)
find
in interface javax.persistence.EntityManager
public <T> T find(Class<T> entityClass, Object primaryKey, javax.persistence.LockModeType lockMode, Map<String,Object> properties)
find
in interface javax.persistence.EntityManager
public <T> T getReference(Class<T> entityClass, Object primaryKey)
getReference
in interface javax.persistence.EntityManager
public void lock(Object entity, javax.persistence.LockModeType lockMode)
lock
in interface javax.persistence.EntityManager
public void lock(Object entity, javax.persistence.LockModeType lockMode, Map<String,Object> properties)
lock
in interface javax.persistence.EntityManager
public void refresh(Object entity, Map<String,Object> properties)
refresh
in interface javax.persistence.EntityManager
public void refresh(Object entity, javax.persistence.LockModeType lockMode)
refresh
in interface javax.persistence.EntityManager
public void refresh(Object entity, javax.persistence.LockModeType lockMode, Map<String,Object> properties)
refresh
in interface javax.persistence.EntityManager
public void detach(Object entity)
detach
in interface javax.persistence.EntityManager
public boolean contains(Object entity)
contains
in interface javax.persistence.EntityManager
public javax.persistence.LockModeType getLockMode(Object entity)
getLockMode
in interface javax.persistence.EntityManager
public void setProperty(String propertyName, Object value)
setProperty
in interface javax.persistence.EntityManager
public Map<String,Object> getProperties()
getProperties
in interface javax.persistence.EntityManager
public javax.persistence.StoredProcedureQuery createNamedStoredProcedureQuery(String name)
createNamedStoredProcedureQuery
in interface javax.persistence.EntityManager
public javax.persistence.StoredProcedureQuery createStoredProcedureQuery(String procedureName)
createStoredProcedureQuery
in interface javax.persistence.EntityManager
public javax.persistence.StoredProcedureQuery createStoredProcedureQuery(String procedureName, Class[] resultClasses)
createStoredProcedureQuery
in interface javax.persistence.EntityManager
public javax.persistence.StoredProcedureQuery createStoredProcedureQuery(String procedureName, String... resultSetMappings)
createStoredProcedureQuery
in interface javax.persistence.EntityManager
public void joinTransaction()
joinTransaction
in interface javax.persistence.EntityManager
public boolean isJoinedToTransaction()
isJoinedToTransaction
in interface javax.persistence.EntityManager
public <T> T unwrap(Class<T> cls)
unwrap
in interface javax.persistence.EntityManager
public Object getDelegate()
getDelegate
in interface javax.persistence.EntityManager
public javax.persistence.EntityManagerFactory getEntityManagerFactory()
getEntityManagerFactory
in interface javax.persistence.EntityManager
public javax.persistence.criteria.CriteriaBuilder getCriteriaBuilder()
getCriteriaBuilder
in interface javax.persistence.EntityManager
public javax.persistence.metamodel.Metamodel getMetamodel()
getMetamodel
in interface javax.persistence.EntityManager
public <T> javax.persistence.EntityGraph<T> createEntityGraph(Class<T> rootType)
createEntityGraph
in interface javax.persistence.EntityManager
public javax.persistence.EntityGraph<?> createEntityGraph(String graphName)
createEntityGraph
in interface javax.persistence.EntityManager
public javax.persistence.EntityGraph<?> getEntityGraph(String graphName)
getEntityGraph
in interface javax.persistence.EntityManager
public <T> List<javax.persistence.EntityGraph<? super T>> getEntityGraphs(Class<T> entityClass)
getEntityGraphs
in interface javax.persistence.EntityManager
public org.hibernate.Session getSession()
getSession
in interface org.hibernate.jpa.HibernateEntityManager