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.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 |
---|---|
void |
TypeConfiguration.sessionFactoryClosed(SessionFactory factory) |
void |
TypeConfiguration.sessionFactoryCreated(SessionFactory factory) |
Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.