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.internal | |
org.hibernate.boot.spi | |
org.hibernate.cache.ehcache.management.impl |
Defines JMX support for the Ehcache integration
|
org.hibernate.cfg |
This package defines APIs for configuring Hibernate, and classes
for building the Hibernate configuration-time metamodel.
|
org.hibernate.context.internal |
Internal implementations and support around "current session" handling.
|
org.hibernate.engine.spi | |
org.hibernate.internal |
An internal package containing mostly implementations of central Hibernate APIs.
|
org.hibernate.testing.transaction |
Modifier and Type | Method and Description |
---|---|
SessionFactory |
Cache.getSessionFactory()
Access to the SessionFactory this Cache is bound to.
|
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.
|
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 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 |
SessionFactoryBuilderImpl.build() |
SessionFactory |
InFlightMetadataCollectorImpl.buildSessionFactory() |
SessionFactory |
MetadataImpl.buildSessionFactory() |
Modifier and Type | Method and Description |
---|---|
SessionFactory |
AbstractDelegatingSessionFactoryBuilder.build() |
SessionFactory |
AbstractDelegatingMetadata.buildSessionFactory() |
Modifier and Type | Method and Description |
---|---|
void |
EhcacheHibernate.enableHibernateStatistics(SessionFactory sessionFactory)
Enable hibernate statistics with the input session factory
|
void |
EhcacheHibernateMBeanRegistrationImpl.enableHibernateStatisticsSupport(SessionFactory sessionFactory) |
void |
EhcacheHibernateMBeanRegistration.enableHibernateStatisticsSupport(SessionFactory sessionFactory)
Enable hibernate statistics in the mbean.
|
Constructor and Description |
---|
HibernateStatsImpl(SessionFactory sessionFactory)
Constructor accepting the backing
SessionFactory |
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 | Field and Description |
---|---|
protected SessionFactory |
ThreadLocalSessionContext.CleanupSync.factory |
Modifier and Type | Method and Description |
---|---|
protected static java.util.Map<SessionFactory,Session> |
ManagedSessionContext.sessionMap() |
Modifier and Type | Method and 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 |
ThreadLocalSessionContext.unbind(SessionFactory factory)
Disassociates a previously bound session from the current thread of execution.
|
static Session |
ManagedSessionContext.unbind(SessionFactory factory)
Unbinds the session (if one) current associated with the context for the
given session.
|
Constructor and Description |
---|
CleanupSync(SessionFactory factory) |
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 | Class and Description |
---|---|
class |
SessionFactoryImpl
Concrete implementation of the SessionFactory interface.
|
Modifier and Type | Method and Description |
---|---|
SessionFactory |
SessionFactoryRegistry.findSessionFactory(java.lang.String uuid,
java.lang.String name) |
SessionFactory |
SessionFactoryRegistry.getNamedSessionFactory(java.lang.String name)
Get a registered SessionFactory by name
|
SessionFactory |
CacheImpl.getSessionFactory() |
SessionFactory |
SessionFactoryRegistry.getSessionFactory(java.lang.String uuid) |
Modifier and Type | Method and Description |
---|---|
void |
SessionFactoryRegistry.addSessionFactory(java.lang.String uuid,
java.lang.String name,
boolean isNameAlsoJndiName,
SessionFactory instance,
JndiService jndiService)
Adds a SessionFactory to the registry
|
void |
SessionFactoryObserverChain.sessionFactoryClosed(SessionFactory factory) |
void |
SessionFactoryObserverChain.sessionFactoryClosing(SessionFactory factory) |
void |
SessionFactoryObserverChain.sessionFactoryCreated(SessionFactory factory) |
Modifier and Type | Method and Description |
---|---|
static void |
TransactionUtil.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 tenant
|
static <R> R |
TransactionUtil.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 value
|
static void |
TransactionUtil.doInHibernate(java.util.function.Supplier<SessionFactory> factorySupplier,
TransactionUtil.HibernateTransactionConsumer function)
Execute function in a Hibernate transaction without return value
|
static <T> T |
TransactionUtil.doInHibernate(java.util.function.Supplier<SessionFactory> factorySupplier,
TransactionUtil.HibernateTransactionFunction<T> function)
Execute function in a Hibernate transaction
|
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.