Class 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
    • 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

      • persist

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

        public Object merge​(Object entity)
        Specified by:
        merge in interface javax.persistence.EntityManager
        Specified by:
        merge in interface org.hibernate.Session
      • remove

        public void remove​(Object entity)
        Specified by:
        remove in interface javax.persistence.EntityManager
      • find

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

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

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

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

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

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

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

        public void setFlushMode​(javax.persistence.FlushModeType flushMode)
        Specified by:
        setFlushMode in interface javax.persistence.EntityManager
      • getFlushMode

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

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

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

        public void refresh​(Object entity)
        Specified by:
        refresh in interface javax.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 javax.persistence.EntityManager
      • refresh

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

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

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

        public void detach​(Object entity)
        Specified by:
        detach in interface javax.persistence.EntityManager
      • contains

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

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

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

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

        public org.hibernate.query.Query createQuery​(String qlString)
        Specified by:
        createQuery in interface javax.persistence.EntityManager
        Specified by:
        createQuery in interface org.hibernate.query.QueryProducer
        Specified by:
        createQuery in interface org.hibernate.SharedSessionContract
      • createQuery

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

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

        public org.hibernate.query.Query createQuery​(javax.persistence.criteria.CriteriaDelete deleteQuery)
        Specified by:
        createQuery in interface javax.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 javax.persistence.EntityManager
        Specified by:
        createQuery in interface org.hibernate.query.QueryProducer
        Specified by:
        createQuery in interface org.hibernate.Session
      • createNamedQuery

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

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

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

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

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

        public javax.persistence.StoredProcedureQuery createNamedStoredProcedureQuery​(String name)
        Specified by:
        createNamedStoredProcedureQuery in interface javax.persistence.EntityManager
      • createStoredProcedureQuery

        public javax.persistence.StoredProcedureQuery createStoredProcedureQuery​(String procedureName)
        Specified by:
        createStoredProcedureQuery in interface javax.persistence.EntityManager
      • createStoredProcedureQuery

        public javax.persistence.StoredProcedureQuery createStoredProcedureQuery​(String procedureName,
                                                                                 Class... resultClasses)
        Specified by:
        createStoredProcedureQuery in interface javax.persistence.EntityManager
      • createStoredProcedureQuery

        public javax.persistence.StoredProcedureQuery createStoredProcedureQuery​(String procedureName,
                                                                                 String... resultSetMappings)
        Specified by:
        createStoredProcedureQuery in interface javax.persistence.EntityManager
      • joinTransaction

        public void joinTransaction()
        Specified by:
        joinTransaction in interface javax.persistence.EntityManager
      • isJoinedToTransaction

        public boolean isJoinedToTransaction()
        Specified by:
        isJoinedToTransaction in interface javax.persistence.EntityManager
      • unwrap

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

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

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

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

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

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

        public javax.persistence.criteria.CriteriaBuilder getCriteriaBuilder()
        Specified by:
        getCriteriaBuilder in interface javax.persistence.EntityManager
      • getMetamodel

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

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

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

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

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

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

        @Deprecated
        public void setFlushMode​(org.hibernate.FlushMode flushMode)
        Deprecated.
        Specified by:
        setFlushMode 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
      • 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 Serializable 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public Object merge​(String entityName,
                            Object 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

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

        public void delete​(String entityName,
                           Object object)
        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​(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

        public void refresh​(String entityName,
                            Object object)
        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

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

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

        @Deprecated
        public org.hibernate.Query createFilter​(Object collection,
                                                String queryString)
        Deprecated.
        Specified by:
        createFilter in interface org.hibernate.Session
      • get

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

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

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

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

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

        public Object get​(String entityName,
                          Serializable 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 org.hibernate.IdentifierLoadAccess 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 org.hibernate.MultiIdentifierLoadAccess 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 org.hibernate.NaturalIdLoadAccess 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 org.hibernate.SimpleNaturalIdLoadAccess 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
      • disconnect

        public Connection disconnect()
        Specified by:
        disconnect in interface org.hibernate.Session
      • reconnect

        public void reconnect​(Connection connection)
        Specified by:
        reconnect 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
      • getTypeHelper

        public org.hibernate.TypeHelper getTypeHelper()
        Specified by:
        getTypeHelper in interface org.hibernate.Session
      • 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
      • createSQLQuery

        public org.hibernate.query.NativeQuery createSQLQuery​(String queryString)
        Specified by:
        createSQLQuery in interface org.hibernate.query.QueryProducer
        Specified by:
        createSQLQuery 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

        public org.hibernate.query.Query getNamedQuery​(String queryName)
        Specified by:
        getNamedQuery in interface org.hibernate.query.QueryProducer
        Specified by:
        getNamedQuery in interface org.hibernate.SharedSessionContract
      • 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
      • createCriteria

        @Deprecated
        public org.hibernate.Criteria createCriteria​(Class persistentClass)
        Deprecated.
        Specified by:
        createCriteria in interface org.hibernate.SharedSessionContract
      • createCriteria

        @Deprecated
        public org.hibernate.Criteria createCriteria​(Class persistentClass,
                                                     String alias)
        Deprecated.
        Specified by:
        createCriteria in interface org.hibernate.SharedSessionContract
      • createCriteria

        @Deprecated
        public org.hibernate.Criteria createCriteria​(String entityName)
        Deprecated.
        Specified by:
        createCriteria in interface org.hibernate.SharedSessionContract
      • createCriteria

        @Deprecated
        public org.hibernate.Criteria createCriteria​(String entityName,
                                                     String alias)
        Deprecated.
        Specified by:
        createCriteria 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
      • getNamedSQLQuery

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

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

        public org.hibernate.Session getSession()
        Specified by:
        getSession in interface org.hibernate.jpa.HibernateEntityManager