Class TransactionScopedSession
- java.lang.Object
-
- io.quarkus.hibernate.orm.runtime.session.TransactionScopedSession
-
- All Implemented Interfaces:
Closeable
,Serializable
,AutoCloseable
,javax.persistence.EntityManager
,org.hibernate.jpa.HibernateEntityManager
,org.hibernate.query.QueryProducer
,org.hibernate.Session
,org.hibernate.SharedSessionContract
public class TransactionScopedSession extends Object implements org.hibernate.Session
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
TransactionScopedSession.SessionResult
-
Field Summary
Fields Modifier and Type Field Description protected static String
TRANSACTION_IS_NOT_ACTIVE
-
Constructor Summary
Constructors Constructor Description TransactionScopedSession(javax.transaction.TransactionManager transactionManager, javax.transaction.TransactionSynchronizationRegistry transactionSynchronizationRegistry, org.hibernate.SessionFactory sessionFactory, String unitName, javax.enterprise.inject.Instance<RequestScopedSessionHolder> requestScopedSessions)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description (package private) TransactionScopedSession.SessionResult
acquireSession()
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> org.hibernate.graph.RootGraph<T>
createEntityGraph(Class<T> rootType)
org.hibernate.graph.RootGraph<?>
createEntityGraph(String graphName)
org.hibernate.Query
createFilter(Object collection, String queryString)
Deprecated.org.hibernate.query.Query
createNamedQuery(String name)
<T> org.hibernate.query.Query<T>
createNamedQuery(String name, Class<T> resultClass)
javax.persistence.StoredProcedureQuery
createNamedStoredProcedureQuery(String name)
org.hibernate.query.NativeQuery
createNativeQuery(String sqlString)
org.hibernate.query.NativeQuery
createNativeQuery(String sqlString, Class resultClass)
org.hibernate.query.NativeQuery
createNativeQuery(String sqlString, String resultSetMapping)
org.hibernate.query.Query
createQuery(String qlString)
<T> org.hibernate.query.Query<T>
createQuery(String qlString, Class<T> resultClass)
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.NativeQuery
createSQLQuery(String queryString)
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, Map<String,Object> properties)
<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)
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)
org.hibernate.graph.RootGraph<?>
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
getNamedSQLQuery(String name)
Deprecated.Map<String,Object>
getProperties()
<T> T
getReference(Class<T> entityClass, Object primaryKey)
<T> T
getReference(T object)
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 entity, javax.persistence.LockModeType lockMode)
void
lock(Object entity, javax.persistence.LockModeType lockMode, Map<String,Object> properties)
void
lock(Object object, org.hibernate.LockMode lockMode)
void
lock(String entityName, Object object, org.hibernate.LockMode lockMode)
Object
merge(Object entity)
Object
merge(String entityName, Object object)
void
persist(Object entity)
void
persist(String entityName, Object object)
void
reconnect(Connection connection)
void
refresh(Object entity)
void
refresh(Object entity, Map<String,Object> properties)
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.LockMode lockMode)
void
refresh(Object object, org.hibernate.LockOptions lockOptions)
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(javax.persistence.FlushModeType flushMode)
void
setFlushMode(org.hibernate.FlushMode flushMode)
Deprecated.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)
-
-
-
Field Detail
-
TRANSACTION_IS_NOT_ACTIVE
protected static final String TRANSACTION_IS_NOT_ACTIVE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TransactionScopedSession
public TransactionScopedSession(javax.transaction.TransactionManager transactionManager, javax.transaction.TransactionSynchronizationRegistry transactionSynchronizationRegistry, org.hibernate.SessionFactory sessionFactory, String unitName, javax.enterprise.inject.Instance<RequestScopedSessionHolder> requestScopedSessions)
-
-
Method Detail
-
acquireSession
TransactionScopedSession.SessionResult acquireSession()
-
persist
public void persist(Object entity)
- Specified by:
persist
in interfacejavax.persistence.EntityManager
- Specified by:
persist
in interfaceorg.hibernate.Session
-
merge
public Object merge(Object entity)
- Specified by:
merge
in interfacejavax.persistence.EntityManager
- Specified by:
merge
in interfaceorg.hibernate.Session
-
remove
public void remove(Object entity)
- Specified by:
remove
in interfacejavax.persistence.EntityManager
-
find
public <T> T find(Class<T> entityClass, Object primaryKey)
- Specified by:
find
in interfacejavax.persistence.EntityManager
-
find
public <T> T find(Class<T> entityClass, Object primaryKey, Map<String,Object> properties)
- Specified by:
find
in interfacejavax.persistence.EntityManager
-
find
public <T> T find(Class<T> entityClass, Object primaryKey, javax.persistence.LockModeType lockMode)
- Specified by:
find
in interfacejavax.persistence.EntityManager
-
find
public <T> T find(Class<T> entityClass, Object primaryKey, javax.persistence.LockModeType lockMode, Map<String,Object> properties)
- Specified by:
find
in interfacejavax.persistence.EntityManager
-
getReference
public <T> T getReference(Class<T> entityClass, Object primaryKey)
- Specified by:
getReference
in interfacejavax.persistence.EntityManager
-
getReference
public <T> T getReference(T object)
- Specified by:
getReference
in interfaceorg.hibernate.Session
-
flush
public void flush()
- Specified by:
flush
in interfacejavax.persistence.EntityManager
- Specified by:
flush
in interfaceorg.hibernate.Session
-
setFlushMode
public void setFlushMode(javax.persistence.FlushModeType flushMode)
- Specified by:
setFlushMode
in interfacejavax.persistence.EntityManager
-
getFlushMode
public javax.persistence.FlushModeType getFlushMode()
- Specified by:
getFlushMode
in interfacejavax.persistence.EntityManager
- Specified by:
getFlushMode
in interfaceorg.hibernate.Session
-
lock
public void lock(Object entity, javax.persistence.LockModeType lockMode)
- Specified by:
lock
in interfacejavax.persistence.EntityManager
-
lock
public void lock(Object entity, javax.persistence.LockModeType lockMode, Map<String,Object> properties)
- Specified by:
lock
in interfacejavax.persistence.EntityManager
-
refresh
public void refresh(Object entity)
- Specified by:
refresh
in interfacejavax.persistence.EntityManager
- Specified by:
refresh
in interfaceorg.hibernate.Session
-
refresh
public void refresh(Object entity, Map<String,Object> properties)
- Specified by:
refresh
in interfacejavax.persistence.EntityManager
-
refresh
public void refresh(Object entity, javax.persistence.LockModeType lockMode)
- Specified by:
refresh
in interfacejavax.persistence.EntityManager
-
refresh
public void refresh(Object entity, javax.persistence.LockModeType lockMode, Map<String,Object> properties)
- Specified by:
refresh
in interfacejavax.persistence.EntityManager
-
clear
public void clear()
- Specified by:
clear
in interfacejavax.persistence.EntityManager
- Specified by:
clear
in interfaceorg.hibernate.Session
-
detach
public void detach(Object entity)
- Specified by:
detach
in interfacejavax.persistence.EntityManager
-
contains
public boolean contains(Object entity)
- Specified by:
contains
in interfacejavax.persistence.EntityManager
-
getLockMode
public javax.persistence.LockModeType getLockMode(Object entity)
- Specified by:
getLockMode
in interfacejavax.persistence.EntityManager
-
setProperty
public void setProperty(String propertyName, Object value)
- Specified by:
setProperty
in interfacejavax.persistence.EntityManager
-
getProperties
public Map<String,Object> getProperties()
- Specified by:
getProperties
in interfacejavax.persistence.EntityManager
-
createQuery
public org.hibernate.query.Query createQuery(String qlString)
- Specified by:
createQuery
in interfacejavax.persistence.EntityManager
- Specified by:
createQuery
in interfaceorg.hibernate.query.QueryProducer
- Specified by:
createQuery
in interfaceorg.hibernate.SharedSessionContract
-
createQuery
public <T> org.hibernate.query.Query<T> createQuery(javax.persistence.criteria.CriteriaQuery<T> criteriaQuery)
- Specified by:
createQuery
in interfacejavax.persistence.EntityManager
- Specified by:
createQuery
in interfaceorg.hibernate.query.QueryProducer
- Specified by:
createQuery
in interfaceorg.hibernate.Session
-
createQuery
public org.hibernate.query.Query createQuery(javax.persistence.criteria.CriteriaUpdate updateQuery)
- Specified by:
createQuery
in interfacejavax.persistence.EntityManager
- Specified by:
createQuery
in interfaceorg.hibernate.query.QueryProducer
- Specified by:
createQuery
in interfaceorg.hibernate.Session
-
createQuery
public org.hibernate.query.Query createQuery(javax.persistence.criteria.CriteriaDelete deleteQuery)
- Specified by:
createQuery
in interfacejavax.persistence.EntityManager
- Specified by:
createQuery
in interfaceorg.hibernate.query.QueryProducer
- Specified by:
createQuery
in interfaceorg.hibernate.Session
-
createQuery
public <T> org.hibernate.query.Query<T> createQuery(String qlString, Class<T> resultClass)
- Specified by:
createQuery
in interfacejavax.persistence.EntityManager
- Specified by:
createQuery
in interfaceorg.hibernate.query.QueryProducer
- Specified by:
createQuery
in interfaceorg.hibernate.Session
-
createNamedQuery
public org.hibernate.query.Query createNamedQuery(String name)
- Specified by:
createNamedQuery
in interfacejavax.persistence.EntityManager
- Specified by:
createNamedQuery
in interfaceorg.hibernate.query.QueryProducer
-
createNamedQuery
public <T> org.hibernate.query.Query<T> createNamedQuery(String name, Class<T> resultClass)
- Specified by:
createNamedQuery
in interfacejavax.persistence.EntityManager
- Specified by:
createNamedQuery
in interfaceorg.hibernate.query.QueryProducer
- Specified by:
createNamedQuery
in interfaceorg.hibernate.Session
-
createNativeQuery
public org.hibernate.query.NativeQuery createNativeQuery(String sqlString)
- Specified by:
createNativeQuery
in interfacejavax.persistence.EntityManager
- Specified by:
createNativeQuery
in interfaceorg.hibernate.query.QueryProducer
-
createNativeQuery
public org.hibernate.query.NativeQuery createNativeQuery(String sqlString, Class resultClass)
- Specified by:
createNativeQuery
in interfacejavax.persistence.EntityManager
- Specified by:
createNativeQuery
in interfaceorg.hibernate.query.QueryProducer
-
createNativeQuery
public org.hibernate.query.NativeQuery createNativeQuery(String sqlString, String resultSetMapping)
- Specified by:
createNativeQuery
in interfacejavax.persistence.EntityManager
- Specified by:
createNativeQuery
in interfaceorg.hibernate.query.QueryProducer
-
createNamedStoredProcedureQuery
public javax.persistence.StoredProcedureQuery createNamedStoredProcedureQuery(String name)
- Specified by:
createNamedStoredProcedureQuery
in interfacejavax.persistence.EntityManager
-
createStoredProcedureQuery
public javax.persistence.StoredProcedureQuery createStoredProcedureQuery(String procedureName)
- Specified by:
createStoredProcedureQuery
in interfacejavax.persistence.EntityManager
-
createStoredProcedureQuery
public javax.persistence.StoredProcedureQuery createStoredProcedureQuery(String procedureName, Class... resultClasses)
- Specified by:
createStoredProcedureQuery
in interfacejavax.persistence.EntityManager
-
createStoredProcedureQuery
public javax.persistence.StoredProcedureQuery createStoredProcedureQuery(String procedureName, String... resultSetMappings)
- Specified by:
createStoredProcedureQuery
in interfacejavax.persistence.EntityManager
-
joinTransaction
public void joinTransaction()
- Specified by:
joinTransaction
in interfacejavax.persistence.EntityManager
-
isJoinedToTransaction
public boolean isJoinedToTransaction()
- Specified by:
isJoinedToTransaction
in interfacejavax.persistence.EntityManager
-
unwrap
public <T> T unwrap(Class<T> cls)
- Specified by:
unwrap
in interfacejavax.persistence.EntityManager
-
getDelegate
public Object getDelegate()
- Specified by:
getDelegate
in interfacejavax.persistence.EntityManager
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfacejavax.persistence.EntityManager
- Specified by:
close
in interfaceorg.hibernate.SharedSessionContract
-
isOpen
public boolean isOpen()
- Specified by:
isOpen
in interfacejavax.persistence.EntityManager
- Specified by:
isOpen
in interfaceorg.hibernate.SharedSessionContract
-
getTransaction
public org.hibernate.Transaction getTransaction()
- Specified by:
getTransaction
in interfacejavax.persistence.EntityManager
- Specified by:
getTransaction
in interfaceorg.hibernate.SharedSessionContract
-
getEntityManagerFactory
public javax.persistence.EntityManagerFactory getEntityManagerFactory()
- Specified by:
getEntityManagerFactory
in interfacejavax.persistence.EntityManager
-
getCriteriaBuilder
public javax.persistence.criteria.CriteriaBuilder getCriteriaBuilder()
- Specified by:
getCriteriaBuilder
in interfacejavax.persistence.EntityManager
-
getMetamodel
public javax.persistence.metamodel.Metamodel getMetamodel()
- Specified by:
getMetamodel
in interfacejavax.persistence.EntityManager
-
createEntityGraph
public <T> org.hibernate.graph.RootGraph<T> createEntityGraph(Class<T> rootType)
- Specified by:
createEntityGraph
in interfacejavax.persistence.EntityManager
- Specified by:
createEntityGraph
in interfaceorg.hibernate.Session
-
createEntityGraph
public org.hibernate.graph.RootGraph<?> createEntityGraph(String graphName)
- Specified by:
createEntityGraph
in interfacejavax.persistence.EntityManager
- Specified by:
createEntityGraph
in interfaceorg.hibernate.Session
-
getEntityGraph
public org.hibernate.graph.RootGraph<?> getEntityGraph(String graphName)
- Specified by:
getEntityGraph
in interfacejavax.persistence.EntityManager
- Specified by:
getEntityGraph
in interfaceorg.hibernate.Session
-
getEntityGraphs
public <T> List<javax.persistence.EntityGraph<? super T>> getEntityGraphs(Class<T> entityClass)
- Specified by:
getEntityGraphs
in interfacejavax.persistence.EntityManager
- Specified by:
getEntityGraphs
in interfaceorg.hibernate.Session
-
sessionWithOptions
public org.hibernate.SharedSessionBuilder sessionWithOptions()
- Specified by:
sessionWithOptions
in interfaceorg.hibernate.Session
-
setFlushMode
@Deprecated public void setFlushMode(org.hibernate.FlushMode flushMode)
Deprecated.- Specified by:
setFlushMode
in interfaceorg.hibernate.Session
-
setHibernateFlushMode
public void setHibernateFlushMode(org.hibernate.FlushMode flushMode)
- Specified by:
setHibernateFlushMode
in interfaceorg.hibernate.Session
-
getHibernateFlushMode
public org.hibernate.FlushMode getHibernateFlushMode()
- Specified by:
getHibernateFlushMode
in interfaceorg.hibernate.Session
-
setCacheMode
public void setCacheMode(org.hibernate.CacheMode cacheMode)
- Specified by:
setCacheMode
in interfaceorg.hibernate.Session
-
getCacheMode
public org.hibernate.CacheMode getCacheMode()
- Specified by:
getCacheMode
in interfaceorg.hibernate.Session
-
getSessionFactory
public org.hibernate.SessionFactory getSessionFactory()
- Specified by:
getSessionFactory
in interfaceorg.hibernate.Session
-
cancelQuery
public void cancelQuery() throws org.hibernate.HibernateException
- Specified by:
cancelQuery
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
isDirty
public boolean isDirty() throws org.hibernate.HibernateException
- Specified by:
isDirty
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
isDefaultReadOnly
public boolean isDefaultReadOnly()
- Specified by:
isDefaultReadOnly
in interfaceorg.hibernate.Session
-
setDefaultReadOnly
public void setDefaultReadOnly(boolean readOnly)
- Specified by:
setDefaultReadOnly
in interfaceorg.hibernate.Session
-
getIdentifier
public Serializable getIdentifier(Object object)
- Specified by:
getIdentifier
in interfaceorg.hibernate.Session
-
contains
public boolean contains(String entityName, Object object)
- Specified by:
contains
in interfaceorg.hibernate.Session
-
evict
public void evict(Object object)
- Specified by:
evict
in interfaceorg.hibernate.Session
-
load
public <T> T load(Class<T> theClass, Serializable id, org.hibernate.LockMode lockMode)
- Specified by:
load
in interfaceorg.hibernate.Session
-
load
public <T> T load(Class<T> theClass, Serializable id, org.hibernate.LockOptions lockOptions)
- Specified by:
load
in interfaceorg.hibernate.Session
-
load
public Object load(String entityName, Serializable id, org.hibernate.LockMode lockMode)
- Specified by:
load
in interfaceorg.hibernate.Session
-
load
public Object load(String entityName, Serializable id, org.hibernate.LockOptions lockOptions)
- Specified by:
load
in interfaceorg.hibernate.Session
-
load
public <T> T load(Class<T> theClass, Serializable id)
- Specified by:
load
in interfaceorg.hibernate.Session
-
load
public Object load(String entityName, Serializable id)
- Specified by:
load
in interfaceorg.hibernate.Session
-
load
public void load(Object object, Serializable id)
- Specified by:
load
in interfaceorg.hibernate.Session
-
replicate
public void replicate(Object object, org.hibernate.ReplicationMode replicationMode)
- Specified by:
replicate
in interfaceorg.hibernate.Session
-
replicate
public void replicate(String entityName, Object object, org.hibernate.ReplicationMode replicationMode)
- Specified by:
replicate
in interfaceorg.hibernate.Session
-
save
public Serializable save(Object object)
- Specified by:
save
in interfaceorg.hibernate.Session
-
save
public Serializable save(String entityName, Object object)
- Specified by:
save
in interfaceorg.hibernate.Session
-
saveOrUpdate
public void saveOrUpdate(Object object)
- Specified by:
saveOrUpdate
in interfaceorg.hibernate.Session
-
saveOrUpdate
public void saveOrUpdate(String entityName, Object object)
- Specified by:
saveOrUpdate
in interfaceorg.hibernate.Session
-
update
public void update(Object object)
- Specified by:
update
in interfaceorg.hibernate.Session
-
update
public void update(String entityName, Object object)
- Specified by:
update
in interfaceorg.hibernate.Session
-
merge
public Object merge(String entityName, Object object)
- Specified by:
merge
in interfaceorg.hibernate.Session
-
persist
public void persist(String entityName, Object object)
- Specified by:
persist
in interfaceorg.hibernate.Session
-
delete
public void delete(Object object)
- Specified by:
delete
in interfaceorg.hibernate.Session
-
delete
public void delete(String entityName, Object object)
- Specified by:
delete
in interfaceorg.hibernate.Session
-
lock
public void lock(Object object, org.hibernate.LockMode lockMode)
- Specified by:
lock
in interfaceorg.hibernate.Session
-
lock
public void lock(String entityName, Object object, org.hibernate.LockMode lockMode)
- Specified by:
lock
in interfaceorg.hibernate.Session
-
buildLockRequest
public org.hibernate.Session.LockRequest buildLockRequest(org.hibernate.LockOptions lockOptions)
- Specified by:
buildLockRequest
in interfaceorg.hibernate.Session
-
refresh
public void refresh(String entityName, Object object)
- Specified by:
refresh
in interfaceorg.hibernate.Session
-
refresh
public void refresh(Object object, org.hibernate.LockMode lockMode)
- Specified by:
refresh
in interfaceorg.hibernate.Session
-
refresh
public void refresh(Object object, org.hibernate.LockOptions lockOptions)
- Specified by:
refresh
in interfaceorg.hibernate.Session
-
refresh
public void refresh(String entityName, Object object, org.hibernate.LockOptions lockOptions)
- Specified by:
refresh
in interfaceorg.hibernate.Session
-
getCurrentLockMode
public org.hibernate.LockMode getCurrentLockMode(Object object)
- Specified by:
getCurrentLockMode
in interfaceorg.hibernate.Session
-
createFilter
@Deprecated public org.hibernate.Query createFilter(Object collection, String queryString)
Deprecated.- Specified by:
createFilter
in interfaceorg.hibernate.Session
-
get
public <T> T get(Class<T> entityType, Serializable id)
- Specified by:
get
in interfaceorg.hibernate.Session
-
get
public <T> T get(Class<T> entityType, Serializable id, org.hibernate.LockMode lockMode)
- Specified by:
get
in interfaceorg.hibernate.Session
-
get
public <T> T get(Class<T> entityType, Serializable id, org.hibernate.LockOptions lockOptions)
- Specified by:
get
in interfaceorg.hibernate.Session
-
get
public Object get(String entityName, Serializable id)
- Specified by:
get
in interfaceorg.hibernate.Session
-
get
public Object get(String entityName, Serializable id, org.hibernate.LockMode lockMode)
- Specified by:
get
in interfaceorg.hibernate.Session
-
get
public Object get(String entityName, Serializable id, org.hibernate.LockOptions lockOptions)
- Specified by:
get
in interfaceorg.hibernate.Session
-
getEntityName
public String getEntityName(Object object)
- Specified by:
getEntityName
in interfaceorg.hibernate.Session
-
byId
public org.hibernate.IdentifierLoadAccess byId(String entityName)
- Specified by:
byId
in interfaceorg.hibernate.Session
-
byMultipleIds
public <T> org.hibernate.MultiIdentifierLoadAccess<T> byMultipleIds(Class<T> entityClass)
- Specified by:
byMultipleIds
in interfaceorg.hibernate.Session
-
byMultipleIds
public org.hibernate.MultiIdentifierLoadAccess byMultipleIds(String entityName)
- Specified by:
byMultipleIds
in interfaceorg.hibernate.Session
-
byId
public <T> org.hibernate.IdentifierLoadAccess<T> byId(Class<T> entityClass)
- Specified by:
byId
in interfaceorg.hibernate.Session
-
byNaturalId
public org.hibernate.NaturalIdLoadAccess byNaturalId(String entityName)
- Specified by:
byNaturalId
in interfaceorg.hibernate.Session
-
byNaturalId
public <T> org.hibernate.NaturalIdLoadAccess<T> byNaturalId(Class<T> entityClass)
- Specified by:
byNaturalId
in interfaceorg.hibernate.Session
-
bySimpleNaturalId
public org.hibernate.SimpleNaturalIdLoadAccess bySimpleNaturalId(String entityName)
- Specified by:
bySimpleNaturalId
in interfaceorg.hibernate.Session
-
bySimpleNaturalId
public <T> org.hibernate.SimpleNaturalIdLoadAccess<T> bySimpleNaturalId(Class<T> entityClass)
- Specified by:
bySimpleNaturalId
in interfaceorg.hibernate.Session
-
enableFilter
public org.hibernate.Filter enableFilter(String filterName)
- Specified by:
enableFilter
in interfaceorg.hibernate.Session
-
getEnabledFilter
public org.hibernate.Filter getEnabledFilter(String filterName)
- Specified by:
getEnabledFilter
in interfaceorg.hibernate.Session
-
disableFilter
public void disableFilter(String filterName)
- Specified by:
disableFilter
in interfaceorg.hibernate.Session
-
getStatistics
public org.hibernate.stat.SessionStatistics getStatistics()
- Specified by:
getStatistics
in interfaceorg.hibernate.Session
-
isReadOnly
public boolean isReadOnly(Object entityOrProxy)
- Specified by:
isReadOnly
in interfaceorg.hibernate.Session
-
setReadOnly
public void setReadOnly(Object entityOrProxy, boolean readOnly)
- Specified by:
setReadOnly
in interfaceorg.hibernate.Session
-
disconnect
public Connection disconnect()
- Specified by:
disconnect
in interfaceorg.hibernate.Session
-
reconnect
public void reconnect(Connection connection)
- Specified by:
reconnect
in interfaceorg.hibernate.Session
-
isFetchProfileEnabled
public boolean isFetchProfileEnabled(String name) throws org.hibernate.UnknownProfileException
- Specified by:
isFetchProfileEnabled
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.UnknownProfileException
-
enableFetchProfile
public void enableFetchProfile(String name) throws org.hibernate.UnknownProfileException
- Specified by:
enableFetchProfile
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.UnknownProfileException
-
disableFetchProfile
public void disableFetchProfile(String name) throws org.hibernate.UnknownProfileException
- Specified by:
disableFetchProfile
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.UnknownProfileException
-
getTypeHelper
public org.hibernate.TypeHelper getTypeHelper()
- Specified by:
getTypeHelper
in interfaceorg.hibernate.Session
-
getLobHelper
public org.hibernate.LobHelper getLobHelper()
- Specified by:
getLobHelper
in interfaceorg.hibernate.Session
-
addEventListeners
public void addEventListeners(org.hibernate.SessionEventListener... listeners)
- Specified by:
addEventListeners
in interfaceorg.hibernate.Session
-
createSQLQuery
public org.hibernate.query.NativeQuery createSQLQuery(String queryString)
- Specified by:
createSQLQuery
in interfaceorg.hibernate.query.QueryProducer
- Specified by:
createSQLQuery
in interfaceorg.hibernate.Session
-
getTenantIdentifier
public String getTenantIdentifier()
- Specified by:
getTenantIdentifier
in interfaceorg.hibernate.SharedSessionContract
-
isConnected
public boolean isConnected()
- Specified by:
isConnected
in interfaceorg.hibernate.SharedSessionContract
-
beginTransaction
public org.hibernate.Transaction beginTransaction()
- Specified by:
beginTransaction
in interfaceorg.hibernate.SharedSessionContract
-
getNamedQuery
public org.hibernate.query.Query getNamedQuery(String queryName)
- Specified by:
getNamedQuery
in interfaceorg.hibernate.query.QueryProducer
- Specified by:
getNamedQuery
in interfaceorg.hibernate.SharedSessionContract
-
getNamedProcedureCall
public org.hibernate.procedure.ProcedureCall getNamedProcedureCall(String name)
- Specified by:
getNamedProcedureCall
in interfaceorg.hibernate.SharedSessionContract
-
createStoredProcedureCall
public org.hibernate.procedure.ProcedureCall createStoredProcedureCall(String procedureName)
- Specified by:
createStoredProcedureCall
in interfaceorg.hibernate.SharedSessionContract
-
createStoredProcedureCall
public org.hibernate.procedure.ProcedureCall createStoredProcedureCall(String procedureName, Class... resultClasses)
- Specified by:
createStoredProcedureCall
in interfaceorg.hibernate.SharedSessionContract
-
createStoredProcedureCall
public org.hibernate.procedure.ProcedureCall createStoredProcedureCall(String procedureName, String... resultSetMappings)
- Specified by:
createStoredProcedureCall
in interfaceorg.hibernate.SharedSessionContract
-
createCriteria
@Deprecated public org.hibernate.Criteria createCriteria(Class persistentClass)
Deprecated.- Specified by:
createCriteria
in interfaceorg.hibernate.SharedSessionContract
-
createCriteria
@Deprecated public org.hibernate.Criteria createCriteria(Class persistentClass, String alias)
Deprecated.- Specified by:
createCriteria
in interfaceorg.hibernate.SharedSessionContract
-
createCriteria
@Deprecated public org.hibernate.Criteria createCriteria(String entityName)
Deprecated.- Specified by:
createCriteria
in interfaceorg.hibernate.SharedSessionContract
-
createCriteria
@Deprecated public org.hibernate.Criteria createCriteria(String entityName, String alias)
Deprecated.- Specified by:
createCriteria
in interfaceorg.hibernate.SharedSessionContract
-
getJdbcBatchSize
public Integer getJdbcBatchSize()
- Specified by:
getJdbcBatchSize
in interfaceorg.hibernate.SharedSessionContract
-
setJdbcBatchSize
public void setJdbcBatchSize(Integer jdbcBatchSize)
- Specified by:
setJdbcBatchSize
in interfaceorg.hibernate.SharedSessionContract
-
doWork
public void doWork(org.hibernate.jdbc.Work work) throws org.hibernate.HibernateException
- Specified by:
doWork
in interfaceorg.hibernate.SharedSessionContract
- Throws:
org.hibernate.HibernateException
-
doReturningWork
public <T> T doReturningWork(org.hibernate.jdbc.ReturningWork<T> work) throws org.hibernate.HibernateException
- Specified by:
doReturningWork
in interfaceorg.hibernate.SharedSessionContract
- Throws:
org.hibernate.HibernateException
-
getNamedSQLQuery
@Deprecated public org.hibernate.Query getNamedSQLQuery(String name)
Deprecated.- Specified by:
getNamedSQLQuery
in interfaceorg.hibernate.query.QueryProducer
-
getNamedNativeQuery
public org.hibernate.query.NativeQuery getNamedNativeQuery(String name)
- Specified by:
getNamedNativeQuery
in interfaceorg.hibernate.query.QueryProducer
-
getSession
public org.hibernate.Session getSession()
- Specified by:
getSession
in interfaceorg.hibernate.jpa.HibernateEntityManager
-
-