Uses of Interface
org.hibernate.SessionFactory
-
Packages that use SessionFactory 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.boot This package contains the interfaces that make up the bootstrap API for Hibernate.org.hibernate.boot.internal org.hibernate.boot.spi A range of SPIs allowing integration with—and customization of—the process of building metadata.org.hibernate.bytecode.internal org.hibernate.cfg This package defines APIs for configuring Hibernate.org.hibernate.context.internal Internal implementations and support around "current session" handling.org.hibernate.engine.spi This package defines some central internal SPI abstractions used throughout the implementation of Hibernate.org.hibernate.generator.internal org.hibernate.internal An internal package containing implementations of central Hibernate APIs, mostly defined inorg.hibernate.org.hibernate.processor.validation Validation for HQL queries.org.hibernate.query.criteria The JPA-standard criteria query API defines all the operations needed express any query written in standard JPQL.org.hibernate.testing.orm.junit org.hibernate.testing.transaction org.hibernate.type.spi Defines a registry for HibernateTypes. -
-
Uses of SessionFactory in org.hibernate
Methods in org.hibernate that return SessionFactory Modifier and Type Method Description SessionFactorySharedSessionContract. getFactory()The factory which created this session.SessionFactoryCache. getSessionFactory()TheSessionFactoryto which thisCachebelongs.SessionFactorySession. 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> EHibernate. createDetachedProxy(SessionFactory sessionFactory, Class<E> entityClass, Object id)Obtain a detached, uninitialized reference (a proxy) for a persistent entity with the given identifier.default voidSessionFactoryObserver. sessionFactoryClosed(SessionFactory factory)Callback to indicate that the given factory has been closed.default voidSessionFactoryObserver. sessionFactoryClosing(SessionFactory factory)Callback to indicate that the given factory is about to close.default voidSessionFactoryObserver. 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 SessionFactorySessionFactoryBuilder. build()After all options have been set, build the SessionFactory.SessionFactoryMetadata. buildSessionFactory()Short-hand form of building aSessionFactorythrough 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 SessionFactorySessionFactoryBuilderImpl. build()SessionFactoryInFlightMetadataCollectorImpl. buildSessionFactory()SessionFactoryMetadataImpl. buildSessionFactory() -
Uses of SessionFactory in org.hibernate.boot.spi
Methods in org.hibernate.boot.spi that return SessionFactory Modifier and Type Method Description SessionFactoryAbstractDelegatingSessionFactoryBuilder. build()SessionFactoryAbstractDelegatingMetadata. 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 voidSessionFactoryObserverForBytecodeEnhancer. sessionFactoryClosed(SessionFactory factory)voidSessionFactoryObserverForBytecodeEnhancer. sessionFactoryClosing(SessionFactory factory)voidSessionFactoryObserverForBytecodeEnhancer. sessionFactoryCreated(SessionFactory factory) -
Uses of SessionFactory in org.hibernate.cfg
Methods in org.hibernate.cfg that return SessionFactory Modifier and Type Method Description SessionFactoryConfiguration. buildSessionFactory()Create aSessionFactoryusing the properties and mappings in this configuration.SessionFactoryConfiguration. buildSessionFactory(ServiceRegistry serviceRegistry)Create aSessionFactoryusing 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 SessionFactoryThreadLocalSessionContext.CleanupSync. factoryMethods 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 booleanManagedSessionContext. hasBind(SessionFactory factory)Check to see if there is already a session associated with the current thread for the given session factory.static SessionManagedSessionContext. unbind(SessionFactory factory)Unbinds the session (if one) current associated with the context for the given session.static SessionThreadLocalSessionContext. 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 interfaceSessionFactoryImplementorDefines the internal contract between theSessionFactoryand the internal implementation of Hibernate.Classes in org.hibernate.engine.spi that implement SessionFactory Modifier and Type Class Description classSessionFactoryDelegatingImplBase delegating implementation of theSessionFactoryandSessionFactoryImplementorcontracts for intended for easier implementation ofSessionFactory.Methods in org.hibernate.engine.spi that return SessionFactory Modifier and Type Method Description SessionFactorySessionLazyDelegator. getFactory()SessionFactorySessionLazyDelegator. getSessionFactory() -
Uses of SessionFactory in org.hibernate.generator.internal
Methods in org.hibernate.generator.internal with parameters of type SessionFactory Modifier and Type Method Description static <T extends Clock>
TCurrentTimestampGeneration. getClock(SessionFactory sessionFactory) -
Uses of SessionFactory in org.hibernate.internal
Classes in org.hibernate.internal that implement SessionFactory Modifier and Type Class Description classSessionFactoryImplConcrete implementation of theSessionFactoryAPI.Methods in org.hibernate.internal with parameters of type SessionFactory Modifier and Type Method Description voidSessionFactoryObserverChain. sessionFactoryClosed(SessionFactory factory)voidSessionFactoryObserverChain. sessionFactoryClosing(SessionFactory factory)voidSessionFactoryObserverChain. sessionFactoryCreated(SessionFactory factory) -
Uses of SessionFactory in org.hibernate.processor.validation
Classes in org.hibernate.processor.validation that implement SessionFactory Modifier and Type Class Description classMockSessionFactoryclassProcessorSessionFactoryImplementation of theMockobjects based on standard annotation processor APIs. -
Uses of SessionFactory in org.hibernate.query.criteria
Constructors in org.hibernate.query.criteria with parameters of type SessionFactory Constructor Description CriteriaDefinition(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 SessionFactory Modifier and Type Method Description SessionFactoryDialectFeatureChecks.FakeMetadataBuildingContext. buildSessionFactory() -
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 voidTransactionUtil. doInHibernate(Supplier<SessionFactory> factorySupplier, String tenant, Consumer<Session> function)Execute function in a Hibernate transaction without return value and for a given tenantstatic <R> RTransactionUtil. doInHibernate(Supplier<SessionFactory> factorySupplier, String tenant, Function<Session,R> function)Execute function in a Hibernate transaction for a given tenant and return a valuestatic voidTransactionUtil. doInHibernate(Supplier<SessionFactory> factorySupplier, Consumer<Session> function)static voidTransactionUtil. doInHibernate(Supplier<SessionFactory> factorySupplier, TransactionUtil.HibernateTransactionConsumer function)Execute function in a Hibernate transaction without return valuestatic <T> TTransactionUtil. 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 voidTypeConfiguration. sessionFactoryClosed(SessionFactory factory)voidTypeConfiguration. sessionFactoryCreated(SessionFactory factory)
-