Uses of Interface
org.hibernate.Session
-
Packages that use Session Package Description org.hibernate org.hibernate.classic org.hibernate.context.spi SPI level contracts around "current session" support.org.hibernate.criterion org.hibernate.engine.spi org.hibernate.envers org.hibernate.envers.strategy org.hibernate.event.spi org.hibernate.jpa org.hibernate.procedure org.hibernate.testing.junit4 org.hibernate.testing.transaction org.hibernate.tuple -
-
Uses of Session in org.hibernate
Methods in org.hibernate that return Session Modifier and Type Method Description Session
SessionFactory. getCurrentSession()
Obtains the current session.Session
SessionBuilder. openSession()
Opens a session with the specified options.Session
SessionFactory. openSession()
Open aSession
.Methods in org.hibernate with parameters of type Session Modifier and Type Method Description boolean
CustomEntityDirtinessStrategy. canDirtyCheck(java.lang.Object entity, EntityPersister persister, Session session)
Is this strategy capable of telling whether the given entity is dirty? A return oftrue
means thatCustomEntityDirtinessStrategy.isDirty(java.lang.Object, org.hibernate.persister.entity.EntityPersister, org.hibernate.Session)
will be called next as the definitive means to determine whether the entity is dirty.void
CustomEntityDirtinessStrategy. findDirty(java.lang.Object entity, EntityPersister persister, Session session, CustomEntityDirtinessStrategy.DirtyCheckContext dirtyCheckContext)
Callback used to hook into Hibernate algorithm for determination of which attributes have changed.static LobCreator
Hibernate. getLobCreator(Session session)
Obtain a lob creator for the given session.boolean
CustomEntityDirtinessStrategy. isDirty(java.lang.Object entity, EntityPersister persister, Session session)
The callback used by Hibernate to determine if the given entity is dirty.void
CustomEntityDirtinessStrategy. resetDirty(java.lang.Object entity, EntityPersister persister, Session session)
Callback used by Hibernate to signal that the entity dirty flag should be cleared. -
Uses of Session in org.hibernate.classic
Methods in org.hibernate.classic with parameters of type Session Modifier and Type Method Description boolean
Lifecycle. onDelete(Session s)
Called when an entity is deleted.void
Lifecycle. onLoad(Session s, java.io.Serializable id)
Called after an entity is loaded.boolean
Lifecycle. onSave(Session s)
Called when an entity is saved.boolean
Lifecycle. onUpdate(Session s)
Called when an entity is passed to Session.update(). -
Uses of Session in org.hibernate.context.spi
Methods in org.hibernate.context.spi that return Session Modifier and Type Method Description Session
CurrentSessionContext. currentSession()
Retrieve the current session according to the scoping defined by this implementation.Methods in org.hibernate.context.spi with parameters of type Session Modifier and Type Method Description protected void
AbstractCurrentSessionContext. validateExistingSession(Session existingSession)
-
Uses of Session in org.hibernate.criterion
Methods in org.hibernate.criterion with parameters of type Session Modifier and Type Method Description Criteria
DetachedCriteria. getExecutableCriteria(Session session)
Get an executable instance of Criteria to actually run the query. -
Uses of Session in org.hibernate.engine.spi
Subinterfaces of Session in org.hibernate.engine.spi Modifier and Type Interface Description interface
SessionImplementor
Defines the "internal contract" forSession
and other parts of Hibernate such asType
,EntityPersister
andCollectionPersister
implementations.Classes in org.hibernate.engine.spi that implement Session Modifier and Type Class Description class
SessionDelegatorBaseImpl
This class is meant to be extended.Methods in org.hibernate.engine.spi that return Session Modifier and Type Method Description Session
SessionFactoryDelegatingImpl. getCurrentSession()
Session
AbstractDelegatingSessionBuilder. openSession()
Session
AbstractDelegatingSharedSessionBuilder. openSession()
Session
SessionFactoryDelegatingImpl. openSession()
Session
SessionFactoryDelegatingImpl. openTemporarySession()
Session
SessionFactoryImplementor. openTemporarySession()
Get a non-transactional "current" session (used by hibernate-envers)Constructors in org.hibernate.engine.spi with parameters of type Session Constructor Description SessionDelegatorBaseImpl(SessionImplementor delegate, Session session)
Deprecated.(since 5.3) SessionDelegatorBaseImpl should take just one argument, the SessionImplementor. -
Uses of Session in org.hibernate.envers
Methods in org.hibernate.envers with parameters of type Session Modifier and Type Method Description static AuditReader
AuditReaderFactory. get(Session session)
Create an audit reader associated with an open session. -
Uses of Session in org.hibernate.envers.strategy
Methods in org.hibernate.envers.strategy with parameters of type Session Modifier and Type Method Description default void
AuditStrategy. perform(Session session, java.lang.String entityName, org.hibernate.envers.boot.internal.EnversService enversService, java.io.Serializable id, java.lang.Object data, java.lang.Object revision)
Deprecated.void
AuditStrategy. perform(Session session, java.lang.String entityName, org.hibernate.envers.configuration.internal.AuditEntitiesConfiguration auditEntitiesConfiguration, java.io.Serializable id, java.lang.Object data, java.lang.Object revision)
Perform the persistence of audited data for regular entities.void
DefaultAuditStrategy. perform(Session session, java.lang.String entityName, org.hibernate.envers.configuration.internal.AuditEntitiesConfiguration auditEntitiesConfiguration, java.io.Serializable id, java.lang.Object data, java.lang.Object revision)
void
ValidityAuditStrategy. perform(Session session, java.lang.String entityName, org.hibernate.envers.configuration.internal.AuditEntitiesConfiguration audEntitiesCfg, java.io.Serializable id, java.lang.Object data, java.lang.Object revision)
default void
AuditStrategy. performCollectionChange(Session session, java.lang.String entityName, java.lang.String propertyName, org.hibernate.envers.boot.internal.EnversService enversService, org.hibernate.envers.internal.entities.mapper.PersistentCollectionChangeData persistentCollectionChangeData, java.lang.Object revision)
void
AuditStrategy. performCollectionChange(Session session, java.lang.String entityName, java.lang.String propertyName, org.hibernate.envers.configuration.internal.AuditEntitiesConfiguration auditEntitiesConfiguration, org.hibernate.envers.internal.entities.mapper.PersistentCollectionChangeData persistentCollectionChangeData, java.lang.Object revision)
Perform the persistence of audited data for collection ("middle") entities.void
DefaultAuditStrategy. performCollectionChange(Session session, java.lang.String entityName, java.lang.String propertyName, org.hibernate.envers.configuration.internal.AuditEntitiesConfiguration auditEntitiesConfiguration, org.hibernate.envers.internal.entities.mapper.PersistentCollectionChangeData persistentCollectionChangeData, java.lang.Object revision)
void
ValidityAuditStrategy. performCollectionChange(Session session, java.lang.String entityName, java.lang.String propertyName, org.hibernate.envers.configuration.internal.AuditEntitiesConfiguration auditEntitiesConfiguration, org.hibernate.envers.internal.entities.mapper.PersistentCollectionChangeData persistentCollectionChangeData, java.lang.Object revision)
-
Uses of Session in org.hibernate.event.spi
Subinterfaces of Session in org.hibernate.event.spi Modifier and Type Interface Description interface
EventSource
-
Uses of Session in org.hibernate.jpa
Methods in org.hibernate.jpa that return Session Modifier and Type Method Description Session
HibernateEntityManager. getSession()
Deprecated.Retrieve a reference to the HibernateSession
used by thisEntityManager
. -
Uses of Session in org.hibernate.procedure
Methods in org.hibernate.procedure with parameters of type Session Modifier and Type Method Description default ProcedureCall
ProcedureCallMemento. makeProcedureCall(Session session)
Convert the memento back into an executable (connected) form. -
Uses of Session in org.hibernate.testing.junit4
Fields in org.hibernate.testing.junit4 declared as Session Modifier and Type Field Description protected Session
BaseCoreFunctionalTestCase. session
Methods in org.hibernate.testing.junit4 that return Session Modifier and Type Method Description protected Session
BaseNonConfigCoreFunctionalTestCase. getSession()
protected Session
BaseCoreFunctionalTestCase. openSession()
protected Session
BaseCoreFunctionalTestCase. openSession(Interceptor interceptor)
protected Session
BaseNonConfigCoreFunctionalTestCase. openSession()
protected Session
BaseNonConfigCoreFunctionalTestCase. openSession(Interceptor interceptor)
-
Uses of Session in org.hibernate.testing.transaction
Methods in org.hibernate.testing.transaction with parameters of type Session Modifier and Type Method Description static void
TransactionUtil. setJdbcTimeout(Session session)
Set Session or Statement timeoutstatic void
TransactionUtil. setJdbcTimeout(Session session, long millis)
Set Session or Statement timeoutMethod parameters in org.hibernate.testing.transaction with type arguments of type Session Modifier and Type Method Description static void
TransactionUtil. doInHibernate(java.util.function.Supplier<SessionFactory> factorySupplier, java.lang.String tenant, java.util.function.Consumer<Session> function)
Execute function in a Hibernate transaction without return value and for a given tenantstatic <R> R
TransactionUtil. doInHibernate(java.util.function.Supplier<SessionFactory> factorySupplier, java.lang.String tenant, java.util.function.Function<Session,R> function)
Execute function in a Hibernate transaction for a given tenant and return a value -
Uses of Session in org.hibernate.tuple
Methods in org.hibernate.tuple with parameters of type Session Modifier and Type Method Description T
ValueGenerator. generateValue(Session session, java.lang.Object owner)
Generate the value.
-