接口的使用
org.hibernate.SessionFactory
-
使用SessionFactory的程序包 程序包 说明 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.bytecode.internal 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.type.spi -
-
org.hibernate中SessionFactory的使用
返回SessionFactory的org.hibernate中的方法 修饰符和类型 方法 说明 SessionFactoryCache. getSessionFactory()Access to the SessionFactory this Cache is bound to.SessionFactoryMetamodel. getSessionFactory()Access to the SessionFactory that this Metamodel instance is bound to.SessionFactorySession. getSessionFactory()Get the session factory which created this session.参数类型为SessionFactory的org.hibernate中的方法 修饰符和类型 方法 说明 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. -
org.hibernate.boot中SessionFactory的使用
返回SessionFactory的org.hibernate.boot中的方法 修饰符和类型 方法 说明 SessionFactorySessionFactoryBuilder. build()After all options have been set, build the SessionFactory.SessionFactoryMetadata. buildSessionFactory()Short-hand form of building aSessionFactorythrough the builder without any additional option overrides. -
org.hibernate.boot.internal中SessionFactory的使用
返回SessionFactory的org.hibernate.boot.internal中的方法 修饰符和类型 方法 说明 SessionFactorySessionFactoryBuilderImpl. build()SessionFactoryInFlightMetadataCollectorImpl. buildSessionFactory()SessionFactoryMetadataImpl. buildSessionFactory() -
org.hibernate.boot.spi中SessionFactory的使用
返回SessionFactory的org.hibernate.boot.spi中的方法 修饰符和类型 方法 说明 SessionFactoryAbstractDelegatingSessionFactoryBuilder. build()SessionFactoryAbstractDelegatingMetadata. buildSessionFactory() -
org.hibernate.bytecode.internal中SessionFactory的使用
参数类型为SessionFactory的org.hibernate.bytecode.internal中的方法 修饰符和类型 方法 说明 voidSessionFactoryObserverForBytecodeEnhancer. sessionFactoryClosed(SessionFactory factory)voidSessionFactoryObserverForBytecodeEnhancer. sessionFactoryClosing(SessionFactory factory)voidSessionFactoryObserverForBytecodeEnhancer. sessionFactoryCreated(SessionFactory factory) -
org.hibernate.cfg中SessionFactory的使用
返回SessionFactory的org.hibernate.cfg中的方法 修饰符和类型 方法 说明 SessionFactoryConfiguration. buildSessionFactory()Create aSessionFactoryusing the properties and mappings in this configuration.SessionFactoryConfiguration. buildSessionFactory(ServiceRegistry serviceRegistry)Create aSessionFactoryusing the properties and mappings in this configuration. -
org.hibernate.context.internal中SessionFactory的使用
声明为SessionFactory的org.hibernate.context.internal中的字段 修饰符和类型 字段 说明 protected SessionFactoryThreadLocalSessionContext.CleanupSync. factory返回变量类型为SessionFactory的类型的org.hibernate.context.internal中的方法 修饰符和类型 方法 说明 protected static Map<SessionFactory,Session>ManagedSessionContext. sessionMap()protected static Map<SessionFactory,Session>ThreadLocalSessionContext. sessionMap()参数类型为SessionFactory的org.hibernate.context.internal中的方法 修饰符和类型 方法 说明 static 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.参数类型为SessionFactory的org.hibernate.context.internal中的构造器 构造器 说明 CleanupSync(SessionFactory factory) -
org.hibernate.engine.spi中SessionFactory的使用
org.hibernate.engine.spi中SessionFactory的子接口 修饰符和类型 接口 说明 interfaceSessionFactoryImplementorDefines the internal contract between the SessionFactory and other parts of Hibernate such as implementors of Type.实现SessionFactory的org.hibernate.engine.spi中的类 修饰符和类型 类 说明 classSessionFactoryDelegatingImplBase delegating implementation of the SessionFactory and SessionFactoryImplementor contracts for intended for easier implementation of SessionFactory. -
org.hibernate.internal中SessionFactory的使用
实现SessionFactory的org.hibernate.internal中的类 修饰符和类型 类 说明 classSessionFactoryImplConcrete implementation of the SessionFactory interface.返回SessionFactory的org.hibernate.internal中的方法 修饰符和类型 方法 说明 SessionFactorySessionFactoryRegistry. findSessionFactory(String uuid, String name)SessionFactorySessionFactoryRegistry. getNamedSessionFactory(String name)Get a registered SessionFactory by nameSessionFactorySessionFactoryRegistry. getSessionFactory(String uuid)参数类型为SessionFactory的org.hibernate.internal中的方法 修饰符和类型 方法 说明 voidSessionFactoryRegistry. addSessionFactory(String uuid, String name, boolean isNameAlsoJndiName, SessionFactory instance, JndiService jndiService)Adds a SessionFactory to the registryvoidSessionFactoryObserverChain. sessionFactoryClosed(SessionFactory factory)voidSessionFactoryObserverChain. sessionFactoryClosing(SessionFactory factory)voidSessionFactoryObserverChain. sessionFactoryCreated(SessionFactory factory) -
org.hibernate.type.spi中SessionFactory的使用
参数类型为SessionFactory的org.hibernate.type.spi中的方法 修饰符和类型 方法 说明 voidTypeConfiguration. sessionFactoryClosed(SessionFactory factory)voidTypeConfiguration. sessionFactoryCreated(SessionFactory factory)
-