Class TransactionScopedSession

  • All Implemented Interfaces:
    jakarta.persistence.EntityManager, Closeable, Serializable, AutoCloseable, org.hibernate.query.QueryProducer, org.hibernate.Session, org.hibernate.SharedSessionContract

    public class TransactionScopedSession
    extends Object
    implements org.hibernate.Session
    See Also:
    Serialized Form
    • Constructor Detail

      • TransactionScopedSession

        public TransactionScopedSession​(jakarta.transaction.TransactionManager transactionManager,
                                        jakarta.transaction.TransactionSynchronizationRegistry transactionSynchronizationRegistry,
                                        org.hibernate.SessionFactory sessionFactory,
                                        String unitName,
                                        jakarta.enterprise.inject.Instance<RequestScopedSessionHolder> requestScopedSessions)
    • Method Detail

      • persist

        public void persist​(Object entity)
        Specified by:
        persist in interface jakarta.persistence.EntityManager
        Specified by:
        persist in interface org.hibernate.Session
      • merge

        public <T> T merge​(T entity)
        Specified by:
        merge in interface jakarta.persistence.EntityManager
        Specified by:
        merge in interface org.hibernate.Session
      • remove

        public void remove​(Object entity)
        Specified by:
        remove in interface jakarta.persistence.EntityManager
        Specified by:
        remove in interface org.hibernate.Session
      • find

        public <T> T find​(Class<T> entityClass,
                          Object primaryKey)
        Specified by:
        find in interface jakarta.persistence.EntityManager
      • find

        public <T> T find​(Class<T> entityClass,
                          Object primaryKey,
                          Map<String,​Object> properties)
        Specified by:
        find in interface jakarta.persistence.EntityManager
      • find

        public <T> T find​(Class<T> entityClass,
                          Object primaryKey,
                          jakarta.persistence.LockModeType lockMode)
        Specified by:
        find in interface jakarta.persistence.EntityManager
      • find

        public <T> T find​(Class<T> entityClass,
                          Object primaryKey,
                          jakarta.persistence.LockModeType lockMode,
                          Map<String,​Object> properties)
        Specified by:
        find in interface jakarta.persistence.EntityManager
      • getReference

        public <T> T getReference​(Class<T> entityClass,
                                  Object primaryKey)
        Specified by:
        getReference in interface jakarta.persistence.EntityManager
        Specified by:
        getReference in interface org.hibernate.Session
      • getReference

        public Object getReference​(String entityName,
                                   Object id)
        Specified by:
        getReference in interface org.hibernate.Session
      • getReference

        public <T> T getReference​(T object)
        Specified by:
        getReference in interface org.hibernate.Session
      • flush

        public void flush()
        Specified by:
        flush in interface jakarta.persistence.EntityManager
        Specified by:
        flush in interface org.hibernate.Session
      • setFlushMode

        public void setFlushMode​(jakarta.persistence.FlushModeType flushMode)
        Specified by:
        setFlushMode in interface jakarta.persistence.EntityManager
        Specified by:
        setFlushMode in interface org.hibernate.Session
      • getFlushMode

        public jakarta.persistence.FlushModeType getFlushMode()
        Specified by:
        getFlushMode in interface jakarta.persistence.EntityManager
        Specified by:
        getFlushMode in interface org.hibernate.Session
      • lock

        public void lock​(Object entity,
                         jakarta.persistence.LockModeType lockMode)
        Specified by:
        lock in interface jakarta.persistence.EntityManager
      • lock

        public void lock​(Object entity,
                         jakarta.persistence.LockModeType lockMode,
                         Map<String,​Object> properties)
        Specified by:
        lock in interface jakarta.persistence.EntityManager
      • refresh

        public void refresh​(Object entity)
        Specified by:
        refresh in interface jakarta.persistence.EntityManager
        Specified by:
        refresh in interface org.hibernate.Session
      • refresh

        public void refresh​(Object entity,
                            Map<String,​Object> properties)
        Specified by:
        refresh in interface jakarta.persistence.EntityManager
      • refresh

        public void refresh​(Object entity,
                            jakarta.persistence.LockModeType lockMode)
        Specified by:
        refresh in interface jakarta.persistence.EntityManager
      • refresh

        public void refresh​(Object entity,
                            jakarta.persistence.LockModeType lockMode,
                            Map<String,​Object> properties)
        Specified by:
        refresh in interface jakarta.persistence.EntityManager
      • clear

        public void clear()
        Specified by:
        clear in interface jakarta.persistence.EntityManager
        Specified by:
        clear in interface org.hibernate.Session
      • detach

        public void detach​(Object entity)
        Specified by:
        detach in interface jakarta.persistence.EntityManager
        Specified by:
        detach in interface org.hibernate.Session
      • contains

        public boolean contains​(Object entity)
        Specified by:
        contains in interface jakarta.persistence.EntityManager
      • getLockMode

        public jakarta.persistence.LockModeType getLockMode​(Object entity)
        Specified by:
        getLockMode in interface jakarta.persistence.EntityManager
      • setProperty

        public void setProperty​(String propertyName,
                                Object value)
        Specified by:
        setProperty in interface jakarta.persistence.EntityManager
      • getProperties

        public Map<String,​Object> getProperties()
        Specified by:
        getProperties in interface jakarta.persistence.EntityManager
      • createQuery

        @Deprecated
        public org.hibernate.query.Query createQuery​(String qlString)
        Deprecated.
        Specified by:
        createQuery in interface jakarta.persistence.EntityManager
        Specified by:
        createQuery in interface org.hibernate.query.QueryProducer
        Specified by:
        createQuery in interface org.hibernate.Session
      • createQuery

        public <T> org.hibernate.query.Query<T> createQuery​(jakarta.persistence.criteria.CriteriaQuery<T> criteriaQuery)
        Specified by:
        createQuery in interface jakarta.persistence.EntityManager
        Specified by:
        createQuery in interface org.hibernate.query.QueryProducer
        Specified by:
        createQuery in interface org.hibernate.Session
      • createQuery

        @Deprecated
        public org.hibernate.query.Query createQuery​(jakarta.persistence.criteria.CriteriaUpdate updateQuery)
        Deprecated.
        Specified by:
        createQuery in interface jakarta.persistence.EntityManager
        Specified by:
        createQuery in interface org.hibernate.query.QueryProducer
        Specified by:
        createQuery in interface org.hibernate.Session
      • createQuery

        @Deprecated
        public org.hibernate.query.Query createQuery​(jakarta.persistence.criteria.CriteriaDelete deleteQuery)
        Deprecated.
        Specified by:
        createQuery in interface jakarta.persistence.EntityManager
        Specified by:
        createQuery in interface org.hibernate.query.QueryProducer
        Specified by:
        createQuery in interface org.hibernate.Session
      • createQuery

        public <T> org.hibernate.query.Query<T> createQuery​(String qlString,
                                                            Class<T> resultClass)
        Specified by:
        createQuery in interface jakarta.persistence.EntityManager
        Specified by:
        createQuery in interface org.hibernate.query.QueryProducer
        Specified by:
        createQuery in interface org.hibernate.Session
      • createNamedQuery

        @Deprecated
        public org.hibernate.query.Query createNamedQuery​(String name)
        Deprecated.
        Specified by:
        createNamedQuery in interface jakarta.persistence.EntityManager
        Specified by:
        createNamedQuery in interface org.hibernate.query.QueryProducer
        Specified by:
        createNamedQuery in interface org.hibernate.Session
      • createNamedQuery

        public <T> org.hibernate.query.Query<T> createNamedQuery​(String name,
                                                                 Class<T> resultClass)
        Specified by:
        createNamedQuery in interface jakarta.persistence.EntityManager
        Specified by:
        createNamedQuery in interface org.hibernate.query.QueryProducer
        Specified by:
        createNamedQuery in interface org.hibernate.Session
      • createNativeQuery

        @Deprecated
        public org.hibernate.query.NativeQuery createNativeQuery​(String sqlString)
        Deprecated.
        Specified by:
        createNativeQuery in interface jakarta.persistence.EntityManager
        Specified by:
        createNativeQuery in interface org.hibernate.query.QueryProducer
      • createNativeQuery

        @Deprecated
        public org.hibernate.query.NativeQuery createNativeQuery​(String sqlString,
                                                                 Class resultClass)
        Deprecated.
        Specified by:
        createNativeQuery in interface jakarta.persistence.EntityManager
        Specified by:
        createNativeQuery in interface org.hibernate.query.QueryProducer
      • createNativeQuery

        @Deprecated
        public org.hibernate.query.NativeQuery createNativeQuery​(String sqlString,
                                                                 String resultSetMapping)
        Deprecated.
        Specified by:
        createNativeQuery in interface jakarta.persistence.EntityManager
        Specified by:
        createNativeQuery in interface org.hibernate.query.QueryProducer
      • createNamedStoredProcedureQuery

        public org.hibernate.procedure.ProcedureCall createNamedStoredProcedureQuery​(String name)
        Specified by:
        createNamedStoredProcedureQuery in interface jakarta.persistence.EntityManager
        Specified by:
        createNamedStoredProcedureQuery in interface org.hibernate.SharedSessionContract
      • createStoredProcedureQuery

        public org.hibernate.procedure.ProcedureCall createStoredProcedureQuery​(String procedureName)
        Specified by:
        createStoredProcedureQuery in interface jakarta.persistence.EntityManager
        Specified by:
        createStoredProcedureQuery in interface org.hibernate.SharedSessionContract
      • createStoredProcedureQuery

        public org.hibernate.procedure.ProcedureCall createStoredProcedureQuery​(String procedureName,
                                                                                Class... resultClasses)
        Specified by:
        createStoredProcedureQuery in interface jakarta.persistence.EntityManager
        Specified by:
        createStoredProcedureQuery in interface org.hibernate.SharedSessionContract
      • createStoredProcedureQuery

        public org.hibernate.procedure.ProcedureCall createStoredProcedureQuery​(String procedureName,
                                                                                String... resultSetMappings)
        Specified by:
        createStoredProcedureQuery in interface jakarta.persistence.EntityManager
        Specified by:
        createStoredProcedureQuery in interface org.hibernate.SharedSessionContract
      • joinTransaction

        public void joinTransaction()
        Specified by:
        joinTransaction in interface jakarta.persistence.EntityManager
        Specified by:
        joinTransaction in interface org.hibernate.SharedSessionContract
      • isJoinedToTransaction

        public boolean isJoinedToTransaction()
        Specified by:
        isJoinedToTransaction in interface jakarta.persistence.EntityManager
        Specified by:
        isJoinedToTransaction in interface org.hibernate.SharedSessionContract
      • unwrap

        public <T> T unwrap​(Class<T> cls)
        Specified by:
        unwrap in interface jakarta.persistence.EntityManager
      • getDelegate

        public Object getDelegate()
        Specified by:
        getDelegate in interface jakarta.persistence.EntityManager
      • close

        public void close()
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
        Specified by:
        close in interface jakarta.persistence.EntityManager
        Specified by:
        close in interface org.hibernate.SharedSessionContract
      • isOpen

        public boolean isOpen()
        Specified by:
        isOpen in interface jakarta.persistence.EntityManager
        Specified by:
        isOpen in interface org.hibernate.SharedSessionContract
      • getTransaction

        public org.hibernate.Transaction getTransaction()
        Specified by:
        getTransaction in interface jakarta.persistence.EntityManager
        Specified by:
        getTransaction in interface org.hibernate.SharedSessionContract
      • getEntityManagerFactory

        public jakarta.persistence.EntityManagerFactory getEntityManagerFactory()
        Specified by:
        getEntityManagerFactory in interface jakarta.persistence.EntityManager
      • getCriteriaBuilder

        public org.hibernate.query.criteria.HibernateCriteriaBuilder getCriteriaBuilder()
        Specified by:
        getCriteriaBuilder in interface jakarta.persistence.EntityManager
        Specified by:
        getCriteriaBuilder in interface org.hibernate.SharedSessionContract
      • getMetamodel

        public jakarta.persistence.metamodel.Metamodel getMetamodel()
        Specified by:
        getMetamodel in interface jakarta.persistence.EntityManager
      • createEntityGraph

        public <T> org.hibernate.graph.RootGraph<T> createEntityGraph​(Class<T> rootType)
        Specified by:
        createEntityGraph in interface jakarta.persistence.EntityManager
        Specified by:
        createEntityGraph in interface org.hibernate.Session
      • createEntityGraph

        public org.hibernate.graph.RootGraph<?> createEntityGraph​(String graphName)
        Specified by:
        createEntityGraph in interface jakarta.persistence.EntityManager
        Specified by:
        createEntityGraph in interface org.hibernate.Session
      • getEntityGraph

        public org.hibernate.graph.RootGraph<?> getEntityGraph​(String graphName)
        Specified by:
        getEntityGraph in interface jakarta.persistence.EntityManager
        Specified by:
        getEntityGraph in interface org.hibernate.Session
      • getEntityGraphs

        public <T> List<jakarta.persistence.EntityGraph<? super T>> getEntityGraphs​(Class<T> entityClass)
        Specified by:
        getEntityGraphs in interface jakarta.persistence.EntityManager
        Specified by:
        getEntityGraphs in interface org.hibernate.Session
      • sessionWithOptions

        public org.hibernate.SharedSessionBuilder sessionWithOptions()
        Specified by:
        sessionWithOptions in interface org.hibernate.Session
      • setHibernateFlushMode

        public void setHibernateFlushMode​(org.hibernate.FlushMode flushMode)
        Specified by:
        setHibernateFlushMode in interface org.hibernate.Session
      • getHibernateFlushMode

        public org.hibernate.FlushMode getHibernateFlushMode()
        Specified by:
        getHibernateFlushMode in interface org.hibernate.Session
      • setCacheMode

        public void setCacheMode​(org.hibernate.CacheMode cacheMode)
        Specified by:
        setCacheMode in interface org.hibernate.Session
      • getCacheMode

        public org.hibernate.CacheMode getCacheMode()
        Specified by:
        getCacheMode in interface org.hibernate.Session
      • getCacheStoreMode

        public jakarta.persistence.CacheStoreMode getCacheStoreMode()
        Specified by:
        getCacheStoreMode in interface org.hibernate.Session
      • getCacheRetrieveMode

        public jakarta.persistence.CacheRetrieveMode getCacheRetrieveMode()
        Specified by:
        getCacheRetrieveMode in interface org.hibernate.Session
      • setCacheStoreMode

        public void setCacheStoreMode​(jakarta.persistence.CacheStoreMode cacheStoreMode)
        Specified by:
        setCacheStoreMode in interface org.hibernate.Session
      • setCacheRetrieveMode

        public void setCacheRetrieveMode​(jakarta.persistence.CacheRetrieveMode cacheRetrieveMode)
        Specified by:
        setCacheRetrieveMode in interface org.hibernate.Session
      • getSessionFactory

        public org.hibernate.SessionFactory getSessionFactory()
        Specified by:
        getSessionFactory in interface org.hibernate.Session
      • cancelQuery

        public void cancelQuery()
                         throws org.hibernate.HibernateException
        Specified by:
        cancelQuery in interface org.hibernate.Session
        Throws:
        org.hibernate.HibernateException
      • isDirty

        public boolean isDirty()
                        throws org.hibernate.HibernateException
        Specified by:
        isDirty in interface org.hibernate.Session
        Throws:
        org.hibernate.HibernateException
      • isDefaultReadOnly

        public boolean isDefaultReadOnly()
        Specified by:
        isDefaultReadOnly in interface org.hibernate.Session
      • setDefaultReadOnly

        public void setDefaultReadOnly​(boolean readOnly)
        Specified by:
        setDefaultReadOnly in interface org.hibernate.Session
      • getIdentifier

        public Object getIdentifier​(Object object)
        Specified by:
        getIdentifier in interface org.hibernate.Session
      • contains

        public boolean contains​(String entityName,
                                Object object)
        Specified by:
        contains in interface org.hibernate.Session
      • evict

        public void evict​(Object object)
        Specified by:
        evict in interface org.hibernate.Session
      • load

        @Deprecated
        public <T> T load​(Class<T> theClass,
                          Object id,
                          org.hibernate.LockMode lockMode)
        Deprecated.
        Specified by:
        load in interface org.hibernate.Session
      • load

        @Deprecated
        public <T> T load​(Class<T> theClass,
                          Object id,
                          org.hibernate.LockOptions lockOptions)
        Deprecated.
        Specified by:
        load in interface org.hibernate.Session
      • load

        @Deprecated
        public Object load​(String entityName,
                           Object id,
                           org.hibernate.LockMode lockMode)
        Deprecated.
        Specified by:
        load in interface org.hibernate.Session
      • load

        @Deprecated
        public Object load​(String entityName,
                           Object id,
                           org.hibernate.LockOptions lockOptions)
        Deprecated.
        Specified by:
        load in interface org.hibernate.Session
      • load

        @Deprecated
        public <T> T load​(Class<T> theClass,
                          Object id)
        Deprecated.
        Specified by:
        load in interface org.hibernate.Session
      • load

        public void load​(Object object,
                         Object id)
        Specified by:
        load in interface org.hibernate.Session
      • replicate

        @Deprecated
        public void replicate​(Object object,
                              org.hibernate.ReplicationMode replicationMode)
        Deprecated.
        Specified by:
        replicate in interface org.hibernate.Session
      • replicate

        @Deprecated
        public void replicate​(String entityName,
                              Object object,
                              org.hibernate.ReplicationMode replicationMode)
        Deprecated.
        Specified by:
        replicate in interface org.hibernate.Session
      • save

        @Deprecated
        public Object save​(Object object)
        Deprecated.
        Specified by:
        save in interface org.hibernate.Session
      • save

        @Deprecated
        public Object save​(String entityName,
                           Object object)
        Deprecated.
        Specified by:
        save in interface org.hibernate.Session
      • saveOrUpdate

        @Deprecated
        public void saveOrUpdate​(Object object)
        Deprecated.
        Specified by:
        saveOrUpdate in interface org.hibernate.Session
      • saveOrUpdate

        @Deprecated
        public void saveOrUpdate​(String entityName,
                                 Object object)
        Deprecated.
        Specified by:
        saveOrUpdate in interface org.hibernate.Session
      • update

        @Deprecated
        public void update​(Object object)
        Deprecated.
        Specified by:
        update in interface org.hibernate.Session
      • update

        @Deprecated
        public void update​(String entityName,
                           Object object)
        Deprecated.
        Specified by:
        update in interface org.hibernate.Session
      • merge

        public <T> T merge​(String entityName,
                           T object)
        Specified by:
        merge in interface org.hibernate.Session
      • persist

        public void persist​(String entityName,
                            Object object)
        Specified by:
        persist in interface org.hibernate.Session
      • delete

        @Deprecated
        public void delete​(Object object)
        Deprecated.
        Specified by:
        delete in interface org.hibernate.Session
      • delete

        @Deprecated
        public void delete​(String entityName,
                           Object object)
        Deprecated.
        Specified by:
        delete in interface org.hibernate.Session
      • lock

        public void lock​(Object object,
                         org.hibernate.LockMode lockMode)
        Specified by:
        lock in interface org.hibernate.Session
      • lock

        public void lock​(Object object,
                         org.hibernate.LockOptions lockOptions)
        Specified by:
        lock in interface org.hibernate.Session
      • lock

        public void lock​(String entityName,
                         Object object,
                         org.hibernate.LockMode lockMode)
        Specified by:
        lock in interface org.hibernate.Session
      • buildLockRequest

        public org.hibernate.Session.LockRequest buildLockRequest​(org.hibernate.LockOptions lockOptions)
        Specified by:
        buildLockRequest in interface org.hibernate.Session
      • refresh

        @Deprecated
        public void refresh​(String entityName,
                            Object object)
        Deprecated.
        Specified by:
        refresh in interface org.hibernate.Session
      • refresh

        public void refresh​(Object object,
                            org.hibernate.LockMode lockMode)
        Specified by:
        refresh in interface org.hibernate.Session
      • refresh

        public void refresh​(Object object,
                            org.hibernate.LockOptions lockOptions)
        Specified by:
        refresh in interface org.hibernate.Session
      • refresh

        @Deprecated
        public void refresh​(String entityName,
                            Object object,
                            org.hibernate.LockOptions lockOptions)
        Deprecated.
        Specified by:
        refresh in interface org.hibernate.Session
      • getCurrentLockMode

        public org.hibernate.LockMode getCurrentLockMode​(Object object)
        Specified by:
        getCurrentLockMode in interface org.hibernate.Session
      • get

        public <T> T get​(Class<T> entityType,
                         Object id)
        Specified by:
        get in interface org.hibernate.Session
      • get

        public <T> T get​(Class<T> entityType,
                         Object id,
                         org.hibernate.LockMode lockMode)
        Specified by:
        get in interface org.hibernate.Session
      • get

        public <T> T get​(Class<T> entityType,
                         Object id,
                         org.hibernate.LockOptions lockOptions)
        Specified by:
        get in interface org.hibernate.Session
      • get

        public Object get​(String entityName,
                          Object id)
        Specified by:
        get in interface org.hibernate.Session
      • get

        public Object get​(String entityName,
                          Object id,
                          org.hibernate.LockMode lockMode)
        Specified by:
        get in interface org.hibernate.Session
      • get

        public Object get​(String entityName,
                          Object id,
                          org.hibernate.LockOptions lockOptions)
        Specified by:
        get in interface org.hibernate.Session
      • getEntityName

        public String getEntityName​(Object object)
        Specified by:
        getEntityName in interface org.hibernate.Session
      • byId

        public <T> org.hibernate.IdentifierLoadAccess<T> byId​(String entityName)
        Specified by:
        byId in interface org.hibernate.Session
      • byMultipleIds

        public <T> org.hibernate.MultiIdentifierLoadAccess<T> byMultipleIds​(Class<T> entityClass)
        Specified by:
        byMultipleIds in interface org.hibernate.Session
      • byMultipleIds

        public <T> org.hibernate.MultiIdentifierLoadAccess<T> byMultipleIds​(String entityName)
        Specified by:
        byMultipleIds in interface org.hibernate.Session
      • byId

        public <T> org.hibernate.IdentifierLoadAccess<T> byId​(Class<T> entityClass)
        Specified by:
        byId in interface org.hibernate.Session
      • byNaturalId

        public <T> org.hibernate.NaturalIdLoadAccess<T> byNaturalId​(String entityName)
        Specified by:
        byNaturalId in interface org.hibernate.Session
      • byNaturalId

        public <T> org.hibernate.NaturalIdLoadAccess<T> byNaturalId​(Class<T> entityClass)
        Specified by:
        byNaturalId in interface org.hibernate.Session
      • bySimpleNaturalId

        public <T> org.hibernate.SimpleNaturalIdLoadAccess<T> bySimpleNaturalId​(String entityName)
        Specified by:
        bySimpleNaturalId in interface org.hibernate.Session
      • bySimpleNaturalId

        public <T> org.hibernate.SimpleNaturalIdLoadAccess<T> bySimpleNaturalId​(Class<T> entityClass)
        Specified by:
        bySimpleNaturalId in interface org.hibernate.Session
      • enableFilter

        public org.hibernate.Filter enableFilter​(String filterName)
        Specified by:
        enableFilter in interface org.hibernate.Session
      • getEnabledFilter

        public org.hibernate.Filter getEnabledFilter​(String filterName)
        Specified by:
        getEnabledFilter in interface org.hibernate.Session
      • disableFilter

        public void disableFilter​(String filterName)
        Specified by:
        disableFilter in interface org.hibernate.Session
      • getStatistics

        public org.hibernate.stat.SessionStatistics getStatistics()
        Specified by:
        getStatistics in interface org.hibernate.Session
      • isReadOnly

        public boolean isReadOnly​(Object entityOrProxy)
        Specified by:
        isReadOnly in interface org.hibernate.Session
      • setReadOnly

        public void setReadOnly​(Object entityOrProxy,
                                boolean readOnly)
        Specified by:
        setReadOnly in interface org.hibernate.Session
      • isFetchProfileEnabled

        public boolean isFetchProfileEnabled​(String name)
                                      throws org.hibernate.UnknownProfileException
        Specified by:
        isFetchProfileEnabled in interface org.hibernate.Session
        Throws:
        org.hibernate.UnknownProfileException
      • enableFetchProfile

        public void enableFetchProfile​(String name)
                                throws org.hibernate.UnknownProfileException
        Specified by:
        enableFetchProfile in interface org.hibernate.Session
        Throws:
        org.hibernate.UnknownProfileException
      • disableFetchProfile

        public void disableFetchProfile​(String name)
                                 throws org.hibernate.UnknownProfileException
        Specified by:
        disableFetchProfile in interface org.hibernate.Session
        Throws:
        org.hibernate.UnknownProfileException
      • getLobHelper

        public org.hibernate.LobHelper getLobHelper()
        Specified by:
        getLobHelper in interface org.hibernate.Session
      • addEventListeners

        public void addEventListeners​(org.hibernate.SessionEventListener... listeners)
        Specified by:
        addEventListeners in interface org.hibernate.Session
      • getTenantIdentifier

        public String getTenantIdentifier()
        Specified by:
        getTenantIdentifier in interface org.hibernate.SharedSessionContract
      • isConnected

        public boolean isConnected()
        Specified by:
        isConnected in interface org.hibernate.SharedSessionContract
      • beginTransaction

        public org.hibernate.Transaction beginTransaction()
        Specified by:
        beginTransaction in interface org.hibernate.SharedSessionContract
      • getNamedQuery

        @Deprecated
        public org.hibernate.query.Query getNamedQuery​(String queryName)
        Deprecated.
        Specified by:
        getNamedQuery in interface org.hibernate.query.QueryProducer
      • getNamedProcedureCall

        public org.hibernate.procedure.ProcedureCall getNamedProcedureCall​(String name)
        Specified by:
        getNamedProcedureCall in interface org.hibernate.SharedSessionContract
      • createStoredProcedureCall

        public org.hibernate.procedure.ProcedureCall createStoredProcedureCall​(String procedureName)
        Specified by:
        createStoredProcedureCall in interface org.hibernate.SharedSessionContract
      • createStoredProcedureCall

        public org.hibernate.procedure.ProcedureCall createStoredProcedureCall​(String procedureName,
                                                                               Class... resultClasses)
        Specified by:
        createStoredProcedureCall in interface org.hibernate.SharedSessionContract
      • createStoredProcedureCall

        public org.hibernate.procedure.ProcedureCall createStoredProcedureCall​(String procedureName,
                                                                               String... resultSetMappings)
        Specified by:
        createStoredProcedureCall in interface org.hibernate.SharedSessionContract
      • getJdbcBatchSize

        public Integer getJdbcBatchSize()
        Specified by:
        getJdbcBatchSize in interface org.hibernate.SharedSessionContract
      • setJdbcBatchSize

        public void setJdbcBatchSize​(Integer jdbcBatchSize)
        Specified by:
        setJdbcBatchSize in interface org.hibernate.SharedSessionContract
      • doWork

        public void doWork​(org.hibernate.jdbc.Work work)
                    throws org.hibernate.HibernateException
        Specified by:
        doWork in interface org.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 interface org.hibernate.SharedSessionContract
        Throws:
        org.hibernate.HibernateException
      • getNamedNativeQuery

        @Deprecated
        public org.hibernate.query.NativeQuery getNamedNativeQuery​(String name)
        Deprecated.
        Specified by:
        getNamedNativeQuery in interface org.hibernate.query.QueryProducer
      • createNativeQuery

        public <R> org.hibernate.query.NativeQuery<R> createNativeQuery​(String sqlString,
                                                                        Class<R> resultClass,
                                                                        String tableAlias)
        Specified by:
        createNativeQuery in interface org.hibernate.query.QueryProducer
      • createNativeQuery

        public <R> org.hibernate.query.NativeQuery<R> createNativeQuery​(String sqlString,
                                                                        String resultSetMappingName,
                                                                        Class<R> resultClass)
        Specified by:
        createNativeQuery in interface org.hibernate.query.QueryProducer
      • createSelectionQuery

        public org.hibernate.query.SelectionQuery<?> createSelectionQuery​(String hqlString)
        Specified by:
        createSelectionQuery in interface org.hibernate.query.QueryProducer
      • createSelectionQuery

        public <R> org.hibernate.query.SelectionQuery<R> createSelectionQuery​(String hqlString,
                                                                              Class<R> resultType)
        Specified by:
        createSelectionQuery in interface org.hibernate.query.QueryProducer
      • createSelectionQuery

        public <R> org.hibernate.query.SelectionQuery<R> createSelectionQuery​(jakarta.persistence.criteria.CriteriaQuery<R> criteria)
        Specified by:
        createSelectionQuery in interface org.hibernate.query.QueryProducer
      • createMutationQuery

        public org.hibernate.query.MutationQuery createMutationQuery​(String hqlString)
        Specified by:
        createMutationQuery in interface org.hibernate.query.QueryProducer
      • createMutationQuery

        public org.hibernate.query.MutationQuery createMutationQuery​(jakarta.persistence.criteria.CriteriaUpdate updateQuery)
        Specified by:
        createMutationQuery in interface org.hibernate.query.QueryProducer
      • createMutationQuery

        public org.hibernate.query.MutationQuery createMutationQuery​(jakarta.persistence.criteria.CriteriaDelete deleteQuery)
        Specified by:
        createMutationQuery in interface org.hibernate.query.QueryProducer
      • createMutationQuery

        public org.hibernate.query.MutationQuery createMutationQuery​(org.hibernate.query.criteria.JpaCriteriaInsertSelect insertSelect)
        Specified by:
        createMutationQuery in interface org.hibernate.query.QueryProducer
      • createNativeMutationQuery

        public org.hibernate.query.MutationQuery createNativeMutationQuery​(String sqlString)
        Specified by:
        createNativeMutationQuery in interface org.hibernate.query.QueryProducer
      • createNamedSelectionQuery

        public org.hibernate.query.SelectionQuery<?> createNamedSelectionQuery​(String name)
        Specified by:
        createNamedSelectionQuery in interface org.hibernate.query.QueryProducer
      • createNamedSelectionQuery

        public <R> org.hibernate.query.SelectionQuery<R> createNamedSelectionQuery​(String name,
                                                                                   Class<R> resultType)
        Specified by:
        createNamedSelectionQuery in interface org.hibernate.query.QueryProducer
      • createNamedMutationQuery

        public org.hibernate.query.MutationQuery createNamedMutationQuery​(String name)
        Specified by:
        createNamedMutationQuery in interface org.hibernate.query.QueryProducer
      • getNamedNativeQuery

        @Deprecated
        public org.hibernate.query.NativeQuery getNamedNativeQuery​(String name,
                                                                   String resultSetMapping)
        Deprecated.
        Specified by:
        getNamedNativeQuery in interface org.hibernate.query.QueryProducer
      • byMultipleNaturalId

        public <T> org.hibernate.NaturalIdMultiLoadAccess<T> byMultipleNaturalId​(Class<T> entityClass)
        Specified by:
        byMultipleNaturalId in interface org.hibernate.Session
      • byMultipleNaturalId

        public <T> org.hibernate.NaturalIdMultiLoadAccess<T> byMultipleNaturalId​(String entityName)
        Specified by:
        byMultipleNaturalId in interface org.hibernate.Session