Uses of Interface
org.hibernate.SessionFactory
Packages that use SessionFactory
Package
Description
This package defines the central Hibernate APIs, beginning with
SessionFactory, which represents an instance of
Hibernate at runtime and is the source of new instances of
Session and StatelessSession,
the most important APIs exposing persistence-related operations for
entities.This package contains the interfaces that make up the bootstrap API
for Hibernate.
A range of SPIs allowing integration with—and customization of—the process of building metadata.
This package defines APIs for configuring Hibernate.
Internal implementations and support around "current session" handling.
This package defines some central internal SPI abstractions
used throughout the implementation of Hibernate.
An internal package containing implementations of central Hibernate APIs,
mostly defined in
org.hibernate.The JPA-standard criteria query API defines all the operations needed express
any query written in standard JPQL.
Defines a registry for Hibernate
Types.-
Uses of SessionFactory in org.hibernate
Methods in org.hibernate that return SessionFactoryModifier and TypeMethodDescriptionSharedSessionContract.getFactory()The factory which created this session.Cache.getSessionFactory()TheSessionFactoryto which thisCachebelongs.Session.getSessionFactory()Get the session factory which created this session.Methods in org.hibernate with parameters of type SessionFactoryModifier and TypeMethodDescriptionstatic <E> EHibernate.createDetachedProxy(SessionFactory sessionFactory, Class<E> entityClass, Object id) Obtain a detached, uninitialized reference (a proxy) for a persistent entity with the given identifier.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 SessionFactoryModifier and TypeMethodDescriptionSessionFactoryBuilder.build()After all options have been set, build the SessionFactory.Metadata.buildSessionFactory()Short-hand form of building aSessionFactorythrough the builder without any additional option overrides. -
Uses of SessionFactory in org.hibernate.boot.internal
Methods in org.hibernate.boot.internal that return SessionFactoryModifier and TypeMethodDescriptionSessionFactoryBuilderImpl.build()InFlightMetadataCollectorImpl.buildSessionFactory()MetadataImpl.buildSessionFactory() -
Uses of SessionFactory in org.hibernate.boot.spi
Methods in org.hibernate.boot.spi that return SessionFactoryModifier and TypeMethodDescriptionAbstractDelegatingSessionFactoryBuilder.build()AbstractDelegatingMetadata.buildSessionFactory() -
Uses of SessionFactory in org.hibernate.bytecode.internal
Methods in org.hibernate.bytecode.internal with parameters of type SessionFactoryModifier and TypeMethodDescriptionvoidSessionFactoryObserverForBytecodeEnhancer.sessionFactoryClosed(SessionFactory factory) voidSessionFactoryObserverForBytecodeEnhancer.sessionFactoryClosing(SessionFactory factory) voidSessionFactoryObserverForBytecodeEnhancer.sessionFactoryCreated(SessionFactory factory) -
Uses of SessionFactory in org.hibernate.cfg
Methods in org.hibernate.cfg that return SessionFactoryModifier and TypeMethodDescriptionConfiguration.buildSessionFactory()Create aSessionFactoryusing the properties and mappings in this configuration.Configuration.buildSessionFactory(ServiceRegistry serviceRegistry) Create aSessionFactoryusing the properties and mappings in this configuration. -
Uses of SessionFactory in org.hibernate.context.internal
Fields in org.hibernate.context.internal declared as SessionFactoryModifier and TypeFieldDescriptionprotected final SessionFactoryThreadLocalSessionContext.CleanupSync.factoryMethods in org.hibernate.context.internal that return types with arguments of type SessionFactoryModifier and TypeMethodDescriptionprotected static Map<SessionFactory,Session> ManagedSessionContext.sessionMap()protected static Map<SessionFactory,Session> ThreadLocalSessionContext.sessionMap()Methods in org.hibernate.context.internal with parameters of type SessionFactoryModifier and TypeMethodDescriptionstatic booleanManagedSessionContext.hasBind(SessionFactory factory) Check to see if there is already a session associated with the current thread for the given session factory.static SessionManagedSessionContext.unbind(SessionFactory factory) Unbinds the session (if one) current associated with the context for the given session.static SessionThreadLocalSessionContext.unbind(SessionFactory factory) Disassociates a previously bound session from the current thread of execution.Constructors in org.hibernate.context.internal with parameters of type SessionFactory -
Uses of SessionFactory in org.hibernate.engine.spi
Subinterfaces of SessionFactory in org.hibernate.engine.spiModifier and TypeInterfaceDescriptioninterfaceDefines the internal contract between theSessionFactoryand the internal implementation of Hibernate.Classes in org.hibernate.engine.spi that implement SessionFactoryModifier and TypeClassDescriptionclassBase delegating implementation of theSessionFactoryandSessionFactoryImplementorcontracts for intended for easier implementation ofSessionFactory.Methods in org.hibernate.engine.spi that return SessionFactoryModifier and TypeMethodDescriptionSessionLazyDelegator.getFactory()SessionLazyDelegator.getSessionFactory() -
Uses of SessionFactory in org.hibernate.generator.internal
Methods in org.hibernate.generator.internal with parameters of type SessionFactoryModifier and TypeMethodDescriptionstatic <T extends Clock>
TCurrentTimestampGeneration.getClock(SessionFactory sessionFactory) -
Uses of SessionFactory in org.hibernate.internal
Classes in org.hibernate.internal that implement SessionFactoryMethods in org.hibernate.internal with parameters of type SessionFactoryModifier and TypeMethodDescriptionvoidSessionFactoryObserverChain.sessionFactoryClosed(SessionFactory factory) voidSessionFactoryObserverChain.sessionFactoryClosing(SessionFactory factory) voidSessionFactoryObserverChain.sessionFactoryCreated(SessionFactory factory) -
Uses of SessionFactory in org.hibernate.query.criteria
Constructors in org.hibernate.query.criteria with parameters of type SessionFactoryModifierConstructorDescriptionCriteriaDefinition(SessionFactory factory, CriteriaQuery<R> baseQuery) CriteriaDefinition(SessionFactory factory, Class<R> resultType) CriteriaDefinition(SessionFactory factory, Class<R> resultType, String baseHql) -
Uses of SessionFactory in org.hibernate.search.mapper.orm
Methods in org.hibernate.search.mapper.orm with parameters of type SessionFactoryModifier and TypeMethodDescriptionstatic SearchMappingSearch.mapping(SessionFactory sessionFactory) Retrieve theSearchMappingfrom a Hibernate ORMSessionFactory. -
Uses of SessionFactory in org.hibernate.search.mapper.orm.logging.impl
Methods in org.hibernate.search.mapper.orm.logging.impl with parameters of type SessionFactoryModifier and TypeMethodDescriptionfinal SearchExceptionLog_$logger.usingDifferentSessionFactories(SessionFactory expectedSessionFactory, SessionFactory usedSessionFactory) Log.usingDifferentSessionFactories(SessionFactory expectedSessionFactory, SessionFactory usedSessionFactory) -
Uses of SessionFactory in org.hibernate.search.mapper.orm.mapping
Methods in org.hibernate.search.mapper.orm.mapping that return SessionFactory -
Uses of SessionFactory in org.hibernate.search.mapper.orm.mapping.context
Methods in org.hibernate.search.mapper.orm.mapping.context that return SessionFactory -
Uses of SessionFactory in org.hibernate.search.mapper.orm.mapping.impl
Methods in org.hibernate.search.mapper.orm.mapping.impl that return SessionFactory -
Uses of SessionFactory in org.hibernate.type.spi
Methods in org.hibernate.type.spi with parameters of type SessionFactoryModifier and TypeMethodDescriptionvoidTypeConfiguration.sessionFactoryClosed(SessionFactory factory) voidTypeConfiguration.sessionFactoryCreated(SessionFactory factory)