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.event.spi org.hibernate.graph Hibernate's (extended) support for JPA's entity graphsorg.hibernate.jpa org.hibernate.procedure 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(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(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(Object entity, EntityPersister persister, Session session)
The callback used by Hibernate to determine if the given entity is dirty.void
CustomEntityDirtinessStrategy. resetDirty(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, 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.class
SessionLazyDelegator
This helper class allows decorating a Session instance, while the instance itself is lazily provided via aSupplier
.Methods in org.hibernate.engine.spi that return Session Modifier and Type Method Description Session
SessionFactoryDelegatingImpl. getCurrentSession()
Session
SessionLazyDelegator. getSession()
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.Constructor parameters in org.hibernate.engine.spi with type arguments of type Session Constructor Description SessionLazyDelegator(Supplier<Session> lazySessionLookup)
-
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.graph
Methods in org.hibernate.graph with parameters of type Session Modifier and Type Method Description static <T> EntityGraph<T>
EntityGraphs. merge(Session session, Class<T> rootType, Graph<T>... graphs)
-
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.tuple
Methods in org.hibernate.tuple with parameters of type Session Modifier and Type Method Description T
ValueGenerator. generateValue(Session session, Object owner)
Generate the value.
-