Uses of Interface
org.hibernate.StatelessSession
Packages that use StatelessSession
Package
Description
This package defines the central Hibernate APIs, beginning with
SessionFactory
, which represents an instance of
Hibernate at runtime and is the source of new instances of
Session
and StatelessSession
,
the most important APIs exposing persistence-related operations for
entities.This package defines some central internal SPI abstractions
used throughout the implementation of Hibernate.
An internal package containing implementations of central Hibernate APIs,
mostly defined in
org.hibernate
.Support for SelectionSpecification
and MutationSpecification which
is similar in concept to criteria queries, but focused on ease-of-use and less verbosity.
-
Uses of StatelessSession in org.hibernate
Methods in org.hibernate that return StatelessSessionModifier and TypeMethodDescriptionSessionFactory.openStatelessSession()
Open a new stateless session.SessionFactory.openStatelessSession
(Connection connection) Open a new stateless session, utilizing the specified JDBCConnection
.StatelessSessionBuilder.openStatelessSession()
Opens a session with the specified options.Method parameters in org.hibernate with type arguments of type StatelessSessionModifier and TypeMethodDescriptiondefault <R> R
SessionFactory.fromStatelessSession
(Function<? super StatelessSession, R> action) Open aStatelessSession
and use it to obtain a value.default <R> R
SessionFactory.fromStatelessTransaction
(Function<? super StatelessSession, R> action) Open aStatelessSession
and use it to obtain a value within the bounds of a transaction.default void
SessionFactory.inStatelessSession
(Consumer<? super StatelessSession> action) Open aStatelessSession
and use it to perform an action.default void
SessionFactory.inStatelessTransaction
(Consumer<? super StatelessSession> action) Open aStatelessSession
and use it to perform an action within the bounds of a transaction. -
Uses of StatelessSession in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that return StatelessSessionModifier and TypeMethodDescriptiondefault StatelessSession
SharedSessionContractImplementor.asStatelessSession()
Deprecated, for removal: This API element is subject to removal in a future version.No longer useful, since Java made downcasting saferSessionFactoryDelegatingImpl.openStatelessSession()
SessionFactoryDelegatingImpl.openStatelessSession
(Connection connection) -
Uses of StatelessSession in org.hibernate.internal
Classes in org.hibernate.internal that implement StatelessSessionMethods in org.hibernate.internal that return StatelessSessionModifier and TypeMethodDescriptionSessionFactoryImpl.openStatelessSession()
SessionFactoryImpl.openStatelessSession
(Connection connection) SessionFactoryImpl.StatelessSessionBuilderImpl.openStatelessSession()
-
Uses of StatelessSession in org.hibernate.query.specification
Methods in org.hibernate.query.specification with parameters of type StatelessSessionModifier and TypeMethodDescriptionMutationSpecification.createQuery
(StatelessSession session) Finalize the building and create the MutationQuery instance.QuerySpecification.createQuery
(StatelessSession session) Finalize the building and create executable query instance.SelectionSpecification.createQuery
(StatelessSession session) -
Uses of StatelessSession in org.hibernate.query.specification.internal
Methods in org.hibernate.query.specification.internal with parameters of type StatelessSessionModifier and TypeMethodDescriptionMutationSpecificationImpl.createQuery
(StatelessSession session) SelectionSpecificationImpl.createQuery
(StatelessSession session)