Uses of Interface
org.hibernate.SessionFactory
Packages that use SessionFactory
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 contains the interfaces that make up the bootstrap API
for Hibernate.
A range of SPIs allowing integration with—and customization of—the process of building metadata.
This package defines APIs for configuring Hibernate.
Internal implementations and support around "current session" handling.
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
.The packages in this namespace are responsible for implementing certain
requirements of the JPA specification, especially things which are only
needed when Hibernate is acting as a JPA persistence provider.
Validation for HQL queries.
The JPA-standard criteria query API defines all the operations needed express
any query written in standard JPQL.
Defines a registry for Hibernate
Type
s.-
Uses of SessionFactory in org.hibernate
Methods in org.hibernate that return SessionFactoryModifier and TypeMethodDescriptionSharedSessionContract.getFactory()
The factory which created this session.Cache.getSessionFactory()
TheSessionFactory
to which thisCache
belongs.Session.getSessionFactory()
Get the session factory which created this session.Methods in org.hibernate with parameters of type SessionFactoryModifier and TypeMethodDescriptionstatic <E> E
Hibernate.createDetachedProxy
(SessionFactory sessionFactory, Class<E> entityClass, Object id) Obtain a detached, uninitialized reference (a proxy) for a persistent entity with the given identifier.default void
SessionFactoryObserver.sessionFactoryClosed
(SessionFactory factory) Callback to indicate that the given factory has been closed.default void
SessionFactoryObserver.sessionFactoryClosing
(SessionFactory factory) Callback to indicate that the given factory is about to close.default void
SessionFactoryObserver.sessionFactoryCreated
(SessionFactory factory) Callback to indicate that the given factory has been created and is now ready for use. -
Uses of SessionFactory in org.hibernate.boot
Methods in org.hibernate.boot that return SessionFactoryModifier and TypeMethodDescriptionSessionFactoryBuilder.build()
After all options have been set, build the SessionFactory.Metadata.buildSessionFactory()
Short-hand form of building aSessionFactory
through the builder without any additional option overrides. -
Uses of SessionFactory in org.hibernate.boot.internal
Methods in org.hibernate.boot.internal that return SessionFactoryModifier and TypeMethodDescriptionSessionFactoryBuilderImpl.build()
InFlightMetadataCollectorImpl.buildSessionFactory()
MetadataImpl.buildSessionFactory()
-
Uses of SessionFactory in org.hibernate.boot.spi
Methods in org.hibernate.boot.spi that return SessionFactoryModifier and TypeMethodDescriptionAbstractDelegatingSessionFactoryBuilder.build()
AbstractDelegatingMetadata.buildSessionFactory()
-
Uses of SessionFactory in org.hibernate.bytecode.internal
Methods in org.hibernate.bytecode.internal with parameters of type SessionFactoryModifier and TypeMethodDescriptionvoid
SessionFactoryObserverForBytecodeEnhancer.sessionFactoryClosed
(SessionFactory factory) void
SessionFactoryObserverForBytecodeEnhancer.sessionFactoryClosing
(SessionFactory factory) void
SessionFactoryObserverForBytecodeEnhancer.sessionFactoryCreated
(SessionFactory factory) -
Uses of SessionFactory in org.hibernate.cfg
Methods in org.hibernate.cfg that return SessionFactoryModifier and TypeMethodDescriptionConfiguration.buildSessionFactory()
Create aSessionFactory
using the properties and mappings in this configuration.Configuration.buildSessionFactory
(ServiceRegistry serviceRegistry) Create aSessionFactory
using the properties and mappings in this configuration. -
Uses of SessionFactory in org.hibernate.context.internal
Fields in org.hibernate.context.internal declared as SessionFactoryModifier and TypeFieldDescriptionprotected final SessionFactory
ThreadLocalSessionContext.CleanupSync.factory
Methods in org.hibernate.context.internal that return types with arguments of type SessionFactoryModifier and TypeMethodDescriptionprotected static Map<SessionFactory,
Session> ManagedSessionContext.sessionMap()
protected static Map<SessionFactory,
Session> ThreadLocalSessionContext.sessionMap()
Methods in org.hibernate.context.internal with parameters of type SessionFactoryModifier and TypeMethodDescriptionstatic boolean
ManagedSessionContext.hasBind
(SessionFactory factory) Check to see if there is already a session associated with the current thread for the given session factory.static Session
ManagedSessionContext.unbind
(SessionFactory factory) Unbinds the session (if one) current associated with the context for the given session.static Session
ThreadLocalSessionContext.unbind
(SessionFactory factory) Disassociates a previously bound session from the current thread of execution.Constructors in org.hibernate.context.internal with parameters of type SessionFactory -
Uses of SessionFactory in org.hibernate.engine.spi
Subinterfaces of SessionFactory in org.hibernate.engine.spiModifier and TypeInterfaceDescriptioninterface
Defines the internal contract between theSessionFactory
and the internal implementation of Hibernate.Classes in org.hibernate.engine.spi that implement SessionFactoryModifier and TypeClassDescriptionclass
Base delegating implementation of theSessionFactory
andSessionFactoryImplementor
contracts for intended for easier implementation ofSessionFactory
.Methods in org.hibernate.engine.spi that return SessionFactoryModifier and TypeMethodDescriptionSessionLazyDelegator.getFactory()
SessionLazyDelegator.getSessionFactory()
-
Uses of SessionFactory in org.hibernate.generator.internal
Methods in org.hibernate.generator.internal with parameters of type SessionFactoryModifier and TypeMethodDescriptionstatic <T extends Clock>
TCurrentTimestampGeneration.getClock
(SessionFactory sessionFactory) -
Uses of SessionFactory in org.hibernate.internal
Classes in org.hibernate.internal that implement SessionFactoryMethods in org.hibernate.internal with parameters of type SessionFactoryModifier and TypeMethodDescriptionvoid
SessionFactoryObserverChain.sessionFactoryClosed
(SessionFactory factory) void
SessionFactoryObserverChain.sessionFactoryClosing
(SessionFactory factory) void
SessionFactoryObserverChain.sessionFactoryCreated
(SessionFactory factory) -
Uses of SessionFactory in org.hibernate.jpa
Methods in org.hibernate.jpa that return SessionFactoryModifier and TypeMethodDescriptionHibernatePersistenceConfiguration.createEntityManagerFactory()
Create a newSessionFactory
based on this configuration. -
Uses of SessionFactory in org.hibernate.processor.validation
Classes in org.hibernate.processor.validation that implement SessionFactoryModifier and TypeClassDescriptionclass
class
Implementation of theMock
objects based on standard annotation processor APIs. -
Uses of SessionFactory in org.hibernate.query.criteria
Constructors in org.hibernate.query.criteria with parameters of type SessionFactoryModifierConstructorDescriptionCriteriaDefinition
(SessionFactory factory, CriteriaQuery<R> baseQuery) CriteriaDefinition
(SessionFactory factory, Class<R> resultType) CriteriaDefinition
(SessionFactory factory, Class<R> resultType, String baseHql) -
Uses of SessionFactory in org.hibernate.testing.orm.junit
Methods in org.hibernate.testing.orm.junit that return SessionFactoryModifier and TypeMethodDescriptionDialectFeatureChecks.FakeMetadataBuildingContext.buildSessionFactory()
-
Uses of SessionFactory in org.hibernate.testing.transaction
Method parameters in org.hibernate.testing.transaction with type arguments of type SessionFactoryModifier and TypeMethodDescriptionstatic void
TransactionUtil.doInHibernate
(Supplier<SessionFactory> factorySupplier, String tenant, Consumer<Session> function) Execute function in a Hibernate transaction without return value and for a given tenantstatic <R> R
TransactionUtil.doInHibernate
(Supplier<SessionFactory> factorySupplier, String tenant, Function<Session, R> function) Execute function in a Hibernate transaction for a given tenant and return a valuestatic void
TransactionUtil.doInHibernate
(Supplier<SessionFactory> factorySupplier, Consumer<Session> function) static void
TransactionUtil.doInHibernate
(Supplier<SessionFactory> factorySupplier, TransactionUtil.HibernateTransactionConsumer function) Execute function in a Hibernate transaction without return valuestatic <T> T
TransactionUtil.doInHibernate
(Supplier<SessionFactory> factorySupplier, TransactionUtil.HibernateTransactionFunction<T> function) Execute function in a Hibernate transaction -
Uses of SessionFactory in org.hibernate.type.spi
Methods in org.hibernate.type.spi with parameters of type SessionFactoryModifier and TypeMethodDescriptionvoid
TypeConfiguration.sessionFactoryClosed
(SessionFactory factory) void
TypeConfiguration.sessionFactoryCreated
(SessionFactory factory)