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.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.search.batchindexing.impl | |
org.hibernate.search.hcore.impl | |
org.hibernate.search.hcore.util.impl | |
org.hibernate.search.orm.jmx.impl | |
org.hibernate.search.orm.spi | |
org.hibernate.type.spi |
Modifier and Type | Method and Description |
---|---|
SessionFactory |
Session.getSessionFactory()
Get the session factory which created this session.
|
SessionFactory |
Metamodel.getSessionFactory()
Access to the SessionFactory that this Metamodel instance is bound to.
|
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 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 |
MetadataImpl.buildSessionFactory() |
SessionFactory |
InFlightMetadataCollectorImpl.buildSessionFactory() |
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 | Field and Description |
---|---|
protected SessionFactory |
ThreadLocalSessionContext.CleanupSync.factory |
Modifier and Type | Method and Description |
---|---|
protected static Map<SessionFactory,Session> |
ThreadLocalSessionContext.sessionMap() |
protected static 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(String uuid,
String name) |
SessionFactory |
SessionFactoryRegistry.getNamedSessionFactory(String name)
Get a registered SessionFactory by name
|
SessionFactory |
SessionFactoryRegistry.getSessionFactory(String uuid) |
Modifier and Type | Method and Description |
---|---|
void |
SessionFactoryRegistry.addSessionFactory(String uuid,
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) |
Constructor and Description |
---|
IdentifierConsumerDocumentProducer(ProducerConsumerQueue<List<Serializable>> fromIdentifierListToEntities,
org.hibernate.search.batchindexing.MassIndexerProgressMonitor monitor,
SessionFactory sessionFactory,
CountDownLatch producerEndSignal,
CacheMode cacheMode,
org.hibernate.search.spi.IndexedTypeIdentifier indexedType,
org.hibernate.search.engine.integration.impl.ExtendedSearchIntegrator searchFactory,
String idName,
org.hibernate.search.backend.spi.BatchBackend backend,
org.hibernate.search.exception.ErrorHandler errorHandler,
Integer transactionTimeout,
String tenantId) |
IdentifierProducer(ProducerConsumerQueue<List<Serializable>> fromIdentifierListToEntities,
SessionFactory sessionFactory,
int objectLoadingBatchSize,
org.hibernate.search.spi.IndexedTypeIdentifier indexedType,
org.hibernate.search.batchindexing.MassIndexerProgressMonitor monitor,
long objectsLimit,
org.hibernate.search.exception.ErrorHandler errorHandler,
int idFetchSize,
String tenantId) |
Modifier and Type | Method and Description |
---|---|
SessionFactory |
HibernateSessionFactoryService.getSessionFactory() |
SessionFactory |
DefaultHibernateSessionFactoryService.getSessionFactory() |
Modifier and Type | Method and Description |
---|---|
void |
HibernateSearchSessionFactoryObserver.sessionFactoryClosed(SessionFactory factory) |
void |
HibernateSearchSessionFactoryObserver.sessionFactoryClosing(SessionFactory factory) |
void |
HibernateSearchSessionFactoryObserver.sessionFactoryCreated(SessionFactory factory) |
Modifier and Type | Method and Description |
---|---|
static org.hibernate.search.engine.integration.impl.ExtendedSearchIntegrator |
ContextHelper.getSearchIntegratorBySF(SessionFactory factory) |
Constructor and Description |
---|
IndexControl(org.hibernate.search.engine.integration.impl.ExtendedSearchIntegrator extendedIntegrator,
SessionFactory factory) |
Modifier and Type | Method and Description |
---|---|
static org.hibernate.search.spi.SearchIntegrator |
SearchIntegratorHelper.extractFromSessionFactory(SessionFactory sf)
Extract a
SearchIntegrator from an active SessionFactory . |
Modifier and Type | Method and Description |
---|---|
void |
TypeConfiguration.sessionFactoryClosed(SessionFactory factory) |
void |
TypeConfiguration.sessionFactoryCreated(SessionFactory factory) |
Copyright © 2019 JBoss by Red Hat. All rights reserved.