Package | Description |
---|---|
org.hibernate |
This package defines the central Hibernate APIs.
|
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 |
This package defines APIs for configuring Hibernate, and classes
for building the Hibernate configuration-time metamodel.
|
org.hibernate.engine.spi | |
org.hibernate.stat |
This package exposes statistics about a running Hibernate instance to the application.
|
org.hibernate.testing.transaction | |
org.hibernate.type.spi |
Modifier and Type | Method and Description |
---|---|
SessionFactory |
Metamodel.getSessionFactory()
Access to the SessionFactory that this Metamodel instance is bound to.
|
SessionFactory |
Session.getSessionFactory()
Get the session factory which created this session.
|
SessionFactory |
Cache.getSessionFactory()
Access to the SessionFactory this Cache is bound to.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
SessionFactory |
SessionFactoryBuilder.build()
After all options have been set, build the SessionFactory.
|
SessionFactory |
Metadata.buildSessionFactory()
Short-hand form of building a
SessionFactory through the builder without any additional
option overrides. |
Modifier and Type | Method and Description |
---|---|
SessionFactory |
AbstractDelegatingSessionFactoryBuilder.build() |
SessionFactory |
AbstractDelegatingMetadata.buildSessionFactory() |
Modifier and Type | Method and Description |
---|---|
SessionFactory |
Configuration.buildSessionFactory()
Create a
SessionFactory using the properties and mappings in this configuration. |
SessionFactory |
Configuration.buildSessionFactory(ServiceRegistry serviceRegistry)
Create a
SessionFactory using the properties and mappings in this configuration. |
Modifier and Type | Interface and Description |
---|---|
interface |
SessionFactoryImplementor
Defines the internal contract between the SessionFactory and other parts of
Hibernate such as implementors of Type.
|
Modifier and Type | Class and Description |
---|---|
class |
SessionFactoryDelegatingImpl
Base delegating implementation of the SessionFactory and SessionFactoryImplementor
contracts for intended for easier implementation of SessionFactory.
|
Modifier and Type | Method and Description |
---|---|
static void |
HibernateMetrics.monitor(io.micrometer.core.instrument.MeterRegistry registry,
SessionFactory sessionFactory,
String sessionFactoryName,
Iterable<io.micrometer.core.instrument.Tag> tags)
Create
HibernateMetrics and bind to the specified meter registry. |
static void |
HibernateQueryMetrics.monitor(io.micrometer.core.instrument.MeterRegistry registry,
SessionFactory sessionFactory,
String sessionFactoryName,
Iterable<io.micrometer.core.instrument.Tag> tags)
Create
HibernateQueryMetrics and bind to the specified meter registry. |
static void |
HibernateMetrics.monitor(io.micrometer.core.instrument.MeterRegistry registry,
SessionFactory sessionFactory,
String sessionFactoryName,
String... tags)
Create
HibernateMetrics and bind to the specified meter registry. |
static void |
HibernateQueryMetrics.monitor(io.micrometer.core.instrument.MeterRegistry registry,
SessionFactory sessionFactory,
String sessionFactoryName,
String... tags)
Create
HibernateQueryMetrics and bind to the specified meter registry. |
Constructor and Description |
---|
HibernateMetrics(SessionFactory sessionFactory,
String sessionFactoryName,
Iterable<io.micrometer.core.instrument.Tag> tags)
Create a
HibernateMetrics . |
HibernateQueryMetrics(SessionFactory sessionFactory,
String sessionFactoryName,
Iterable<io.micrometer.core.instrument.Tag> tags)
Create a
HibernateQueryMetrics . |
Modifier and Type | Method and Description |
---|---|
static void |
TransactionUtil.doInHibernate(Supplier<SessionFactory> factorySupplier,
Consumer<Session> function) |
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 tenant
|
static <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 value
|
static void |
TransactionUtil.doInHibernate(Supplier<SessionFactory> factorySupplier,
TransactionUtil.HibernateTransactionConsumer function)
Execute function in a Hibernate transaction without return value
|
static <T> T |
TransactionUtil.doInHibernate(Supplier<SessionFactory> factorySupplier,
TransactionUtil.HibernateTransactionFunction<T> function)
Execute function in a Hibernate transaction
|
Modifier and Type | Method and Description |
---|---|
void |
TypeConfiguration.sessionFactoryClosed(SessionFactory factory) |
void |
TypeConfiguration.sessionFactoryCreated(SessionFactory factory) |
Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.