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.spi org.hibernate.cfg org.hibernate.engine.spi org.hibernate.stat 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 SessionFactoryCache. getSessionFactory()Access to the SessionFactory this Cache is bound to.SessionFactoryMetamodel. getSessionFactory()Access to the SessionFactory that this Metamodel instance is bound to.SessionFactorySession. getSessionFactory()Get the session factory which created this session.Methods in org.hibernate with parameters of type SessionFactory Modifier and Type Method Description 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.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.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.engine.spi
Subinterfaces of SessionFactory in org.hibernate.engine.spi Modifier and Type Interface Description interfaceSessionFactoryImplementorDefines the internal contract between the SessionFactory and other parts of Hibernate such as implementors of Type.Classes in org.hibernate.engine.spi that implement SessionFactory Modifier and Type Class Description classSessionFactoryDelegatingImplBase delegating implementation of the SessionFactory and SessionFactoryImplementor contracts for intended for easier implementation of SessionFactory.Methods in org.hibernate.engine.spi that return SessionFactory Modifier and Type Method Description SessionFactorySessionLazyDelegator. getSessionFactory() -
Uses of SessionFactory in org.hibernate.stat
Methods in org.hibernate.stat with parameters of type SessionFactory Modifier and Type Method Description static voidHibernateMetrics. monitor(io.micrometer.core.instrument.MeterRegistry registry, SessionFactory sessionFactory, java.lang.String sessionFactoryName, java.lang.Iterable<io.micrometer.core.instrument.Tag> tags)CreateHibernateMetricsand bind to the specified meter registry.static voidHibernateMetrics. monitor(io.micrometer.core.instrument.MeterRegistry registry, SessionFactory sessionFactory, java.lang.String sessionFactoryName, java.lang.String... tags)CreateHibernateMetricsand bind to the specified meter registry.static voidHibernateQueryMetrics. monitor(io.micrometer.core.instrument.MeterRegistry registry, SessionFactory sessionFactory, java.lang.String sessionFactoryName, java.lang.Iterable<io.micrometer.core.instrument.Tag> tags)CreateHibernateQueryMetricsand bind to the specified meter registry.static voidHibernateQueryMetrics. monitor(io.micrometer.core.instrument.MeterRegistry registry, SessionFactory sessionFactory, java.lang.String sessionFactoryName, java.lang.String... tags)CreateHibernateQueryMetricsand bind to the specified meter registry.Constructors in org.hibernate.stat with parameters of type SessionFactory Constructor Description HibernateMetrics(SessionFactory sessionFactory, java.lang.String sessionFactoryName, java.lang.Iterable<io.micrometer.core.instrument.Tag> tags)Create aHibernateMetrics.HibernateQueryMetrics(SessionFactory sessionFactory, java.lang.String sessionFactoryName, java.lang.Iterable<io.micrometer.core.instrument.Tag> tags)Create aHibernateQueryMetrics. -
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(java.util.function.Supplier<SessionFactory> factorySupplier, java.lang.String tenant, java.util.function.Consumer<Session> function)Execute function in a Hibernate transaction without return value and for a given tenantstatic <R> RTransactionUtil. doInHibernate(java.util.function.Supplier<SessionFactory> factorySupplier, java.lang.String tenant, java.util.function.Function<Session,R> function)Execute function in a Hibernate transaction for a given tenant and return a valuestatic voidTransactionUtil. doInHibernate(java.util.function.Supplier<SessionFactory> factorySupplier, java.util.function.Consumer<Session> function)static voidTransactionUtil. doInHibernate(java.util.function.Supplier<SessionFactory> factorySupplier, TransactionUtil.HibernateTransactionConsumer function)Execute function in a Hibernate transaction without return valuestatic <T> TTransactionUtil. doInHibernate(java.util.function.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)
-