Uses of Interface
org.hibernate.SessionFactory
-
Packages that use SessionFactory Package Description org.hibernate org.hibernate.boot This package contains the contracts that make up the Hibernate native bootstrapping API (building a SessionFactory).org.hibernate.boot.internal org.hibernate.boot.spi org.hibernate.bytecode.internal org.hibernate.cfg org.hibernate.context.internal Internal implementations and support around "current session" handling.org.hibernate.engine.spi org.hibernate.internal org.hibernate.metamodel.model.convert.spi org.hibernate.testing.transaction org.hibernate.type.spi -
-
Uses of SessionFactory in org.hibernate
Methods in org.hibernate that return SessionFactory Modifier and Type Method Description SessionFactory
Cache. getSessionFactory()
TheSessionFactory
to which thisCache
belongs.SessionFactory
Metamodel. getSessionFactory()
Deprecated.Access to the SessionFactory that this Metamodel instance is bound to.SessionFactory
Session. getSessionFactory()
Get the session factory which created this session.Methods in org.hibernate with parameters of type SessionFactory Modifier and Type Method Description static <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 SessionFactory Modifier and Type Method Description SessionFactory
SessionFactoryBuilder. build()
After all options have been set, build the SessionFactory.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 SessionFactory Modifier and Type Method Description SessionFactory
SessionFactoryBuilderImpl. build()
SessionFactory
InFlightMetadataCollectorImpl. buildSessionFactory()
SessionFactory
MetadataImpl. buildSessionFactory()
-
Uses of SessionFactory in org.hibernate.boot.spi
Methods in org.hibernate.boot.spi that return SessionFactory Modifier and Type Method Description SessionFactory
AbstractDelegatingSessionFactoryBuilder. build()
SessionFactory
AbstractDelegatingMetadata. buildSessionFactory()
-
Uses of SessionFactory in org.hibernate.bytecode.internal
Methods in org.hibernate.bytecode.internal with parameters of type SessionFactory Modifier and Type Method Description void
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 SessionFactory Modifier and Type Method Description SessionFactory
Configuration. buildSessionFactory()
Create aSessionFactory
using the properties and mappings in this configuration.SessionFactory
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 SessionFactory Modifier and Type Field Description protected SessionFactory
ThreadLocalSessionContext.CleanupSync. factory
Methods in org.hibernate.context.internal that return types with arguments of type SessionFactory Modifier and Type Method Description protected static Map<SessionFactory,Session>
ManagedSessionContext. sessionMap()
protected static Map<SessionFactory,Session>
ThreadLocalSessionContext. sessionMap()
Methods in org.hibernate.context.internal with parameters of type SessionFactory Modifier and Type Method Description static 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 Constructor Description CleanupSync(SessionFactory factory)
-
Uses of SessionFactory in org.hibernate.engine.spi
Subinterfaces of SessionFactory in org.hibernate.engine.spi Modifier and Type Interface Description interface
SessionFactoryImplementor
Defines the internal contract between theSessionFactory
and the internal implementation of Hibernate.Classes in org.hibernate.engine.spi that implement SessionFactory Modifier and Type Class Description class
SessionFactoryDelegatingImpl
Base delegating implementation of theSessionFactory
andSessionFactoryImplementor
contracts for intended for easier implementation ofSessionFactory
.Methods in org.hibernate.engine.spi that return SessionFactory Modifier and Type Method Description SessionFactory
SessionLazyDelegator. getSessionFactory()
-
Uses of SessionFactory in org.hibernate.internal
Classes in org.hibernate.internal that implement SessionFactory Modifier and Type Class Description class
SessionFactoryImpl
Concrete implementation of theSessionFactory
interface.Methods in org.hibernate.internal with parameters of type SessionFactory Modifier and Type Method Description void
SessionFactoryObserverChain. sessionFactoryClosed(SessionFactory factory)
void
SessionFactoryObserverChain. sessionFactoryClosing(SessionFactory factory)
void
SessionFactoryObserverChain. sessionFactoryCreated(SessionFactory factory)
-
Uses of SessionFactory in org.hibernate.metamodel.model.convert.spi
Methods in org.hibernate.metamodel.model.convert.spi with parameters of type SessionFactory Modifier and Type Method Description static <O,R>
BasicValueConverter<O,R>Converters. jpaAttributeConverter(JavaType<R> relationalJtd, JavaType<O> domainJtd, Class<? extends jakarta.persistence.AttributeConverter<O,R>> converterClass, SessionFactory factory)
Generates a BasicValueConverter based on anAttributeConverter
-
Uses of SessionFactory in org.hibernate.testing.transaction
Method parameters in org.hibernate.testing.transaction with type arguments of type SessionFactory Modifier and Type Method Description static 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 SessionFactory Modifier and Type Method Description void
TypeConfiguration. sessionFactoryClosed(SessionFactory factory)
void
TypeConfiguration. sessionFactoryCreated(SessionFactory factory)
-