Uses of Interface
org.hibernate.Session
-
Packages that use Session Package Description org.hibernate This package defines the central Hibernate APIs, beginning withSessionFactory, which represents an instance of Hibernate at runtime and is the source of new instances ofSessionandStatelessSession, the most important APIs exposing persistence-related operations for entities.org.hibernate.classic This package historically provided backward-compatibility with Hibernate 2.1 APIs which were deprecated in Hibernate 3.org.hibernate.context.spi SPI-level contracts around "current session" and "current tenant" support.org.hibernate.engine.spi This package defines some central internal SPI abstractions used throughout the implementation of Hibernate.org.hibernate.event.spi Defines the event types and event listener interfaces for events produced by the statefulSession.org.hibernate.graph Implements and extends the JPA-defined entity graph API.org.hibernate.procedure.spi Defines an SPI for calling stored procedures and functions.org.hibernate.tuple Most contracts here have been replaced by the new runtime mapping model. -
-
Uses of Session in org.hibernate
Methods in org.hibernate that return Session Modifier and Type Method Description SessionSessionFactory. getCurrentSession()Obtains the current session, an instance ofSessionimplicitly associated with some context or scope.SessionSessionBuilder. openSession()Opens a session with the specified options.SessionSessionFactory. openSession()Open aSession.Methods in org.hibernate with parameters of type Session Modifier and Type Method Description booleanCustomEntityDirtinessStrategy. canDirtyCheck(Object entity, EntityPersister persister, Session session)Is this strategy capable of telling whether the given entity is dirty? A return oftruemeans 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.voidCustomEntityDirtinessStrategy. findDirty(Object entity, EntityPersister persister, Session session, CustomEntityDirtinessStrategy.DirtyCheckContext dirtyCheckContext)Callback used to hook into Hibernate algorithm for determination of which attributes have changed.booleanCustomEntityDirtinessStrategy. isDirty(Object entity, EntityPersister persister, Session session)The callback used by Hibernate to determine if the given entity is dirty.voidCustomEntityDirtinessStrategy. resetDirty(Object entity, EntityPersister persister, Session session)Callback used by Hibernate to signal that the entity dirty flag should be cleared.Method parameters in org.hibernate with type arguments of type Session Modifier and Type Method Description default <R> RSessionFactory. fromSession(Function<Session,R> action)Open aSessionand use it to obtain a value.default <R> RSessionFactory. fromTransaction(Function<Session,R> action)Open aSessionand use it to obtain a value within the bounds of a transaction.default voidSessionFactory. inSession(Consumer<Session> action)Open aSessionand use it to perform an action.default voidSessionFactory. inTransaction(Consumer<Session> action)Open aSessionand use it to perform an action within the bounds of a transaction. -
Uses of Session in org.hibernate.classic
Methods in org.hibernate.classic with parameters of type Session Modifier and Type Method Description default booleanLifecycle. onDelete(Session s)Called when an entity is deleted.default voidLifecycle. onLoad(Session s, Serializable id)Deprecated.default voidLifecycle. onLoad(Session s, Object id)Called after an entity is loaded.default booleanLifecycle. onSave(Session s)Called when an entity is saved.default booleanLifecycle. onUpdate(Session s)Called when an entity is passed toSession.update(). -
Uses of Session in org.hibernate.context.spi
Methods in org.hibernate.context.spi that return Session Modifier and Type Method Description SessionCurrentSessionContext. 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 voidAbstractCurrentSessionContext. validateExistingSession(Session existingSession) -
Uses of Session in org.hibernate.engine.spi
Subinterfaces of Session in org.hibernate.engine.spi Modifier and Type Interface Description interfaceSessionImplementorDefines the "internal contract" betweenSessionand other parts of Hibernate including implementors ofType,EntityPersister, andCollectionPersister.Classes in org.hibernate.engine.spi that implement Session Modifier and Type Class Description classSessionDelegatorBaseImplA wrapper class that delegates all method invocations to a delegate instance ofSessionImplementor.classSessionLazyDelegatorThis 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 SessionSessionFactoryDelegatingImpl. getCurrentSession()SessionAbstractDelegatingSessionBuilder. openSession()SessionAbstractDelegatingSharedSessionBuilder. openSession()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 interfaceEventSource -
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.procedure.spi
Methods in org.hibernate.procedure.spi with parameters of type Session Modifier and Type Method Description default ProcedureCallNamedCallableQueryMemento. 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 TValueGenerator. generateValue(Session session, Object owner)Deprecated, for removal: This API element is subject to removal in a future version.Generate the value.default TValueGenerator. generateValue(Session session, Object owner, Object currentValue)Deprecated, for removal: This API element is subject to removal in a future version.Generate the value.
-