接口的使用
org.hibernate.Interceptor
-
使用Interceptor的程序包 程序包 说明 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.spi.entry This package defines formats for disassembled state kept in the second level cache.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.internal An internal package containing mostly implementations of central Hibernate APIs. -
-
org.hibernate中Interceptor的使用
实现Interceptor的org.hibernate中的类 修饰符和类型 类 说明 classEmptyInterceptorAn interceptor that does nothing.声明为Interceptor的org.hibernate中的字段 修饰符和类型 字段 说明 static InterceptorEmptyInterceptor. INSTANCEThe singleton reference.参数类型为Interceptor的org.hibernate中的方法 修饰符和类型 方法 说明 TSessionBuilder. interceptor(Interceptor interceptor)Adds a specific interceptor to the session options.TSharedSessionBuilder. interceptor(Interceptor interceptor) -
org.hibernate.boot中Interceptor的使用
参数类型为Interceptor的org.hibernate.boot中的方法 修饰符和类型 方法 说明 SessionFactoryBuilderSessionFactoryBuilder. applyInterceptor(Interceptor interceptor)Names an interceptor to be applied to the SessionFactory, which in turn means it will be used by all Sessions unless one is explicitly specified inSessionBuilder.interceptor(org.hibernate.Interceptor)类型变量类型为Interceptor的org.hibernate.boot中的方法参数 修饰符和类型 方法 说明 SessionFactoryBuilderSessionFactoryBuilder. applyStatelessInterceptor(Class<? extends Interceptor> statelessInterceptorClass)Names an interceptor Class to be applied to the SessionFactory, which in turn means it will be used by all Sessions unless one is explicitly specified inSessionBuilder.interceptor(org.hibernate.Interceptor)SessionFactoryBuilderSessionFactoryBuilder. applyStatelessInterceptor(Supplier<? extends Interceptor> statelessInterceptorSupplier)Names aSupplierinstance which is used to retrieve the interceptor to be applied to the SessionFactory, which in turn means it will be used by all Sessions unless one is explicitly specified inSessionBuilder.interceptor(org.hibernate.Interceptor) -
org.hibernate.boot.internal中Interceptor的使用
返回Interceptor的org.hibernate.boot.internal中的方法 修饰符和类型 方法 说明 InterceptorSessionFactoryOptionsBuilder. getInterceptor()返回变量类型为Interceptor的类型的org.hibernate.boot.internal中的方法 修饰符和类型 方法 说明 Class<? extends Interceptor>SessionFactoryOptionsBuilder. getStatelessInterceptorImplementor()Supplier<? extends Interceptor>SessionFactoryOptionsBuilder. getStatelessInterceptorImplementorSupplier()参数类型为Interceptor的org.hibernate.boot.internal中的方法 修饰符和类型 方法 说明 SessionFactoryBuilderSessionFactoryBuilderImpl. applyInterceptor(Interceptor interceptor)voidSessionFactoryOptionsBuilder. applyInterceptor(Interceptor interceptor)类型变量类型为Interceptor的org.hibernate.boot.internal中的方法参数 修饰符和类型 方法 说明 SessionFactoryBuilderSessionFactoryBuilderImpl. applyStatelessInterceptor(Class<? extends Interceptor> statelessInterceptorClass)SessionFactoryBuilderSessionFactoryBuilderImpl. applyStatelessInterceptor(Supplier<? extends Interceptor> statelessInterceptorSupplier)voidSessionFactoryOptionsBuilder. applyStatelessInterceptor(Class<? extends Interceptor> statelessInterceptorClass)voidSessionFactoryOptionsBuilder. applyStatelessInterceptorSupplier(Supplier<? extends Interceptor> statelessInterceptorSupplier) -
org.hibernate.boot.spi中Interceptor的使用
返回Interceptor的org.hibernate.boot.spi中的方法 修饰符和类型 方法 说明 InterceptorAbstractDelegatingSessionFactoryOptions. getInterceptor()InterceptorSessionFactoryOptions. getInterceptor()Get the interceptor to use by default for all sessions opened from this factory.返回变量类型为Interceptor的类型的org.hibernate.boot.spi中的方法 修饰符和类型 方法 说明 Class<? extends Interceptor>AbstractDelegatingSessionFactoryOptions. getStatelessInterceptorImplementor()Class<? extends Interceptor>SessionFactoryOptions. getStatelessInterceptorImplementor()已过时。Supplier<? extends Interceptor>AbstractDelegatingSessionFactoryOptions. getStatelessInterceptorImplementorSupplier()default Supplier<? extends Interceptor>SessionFactoryOptions. getStatelessInterceptorImplementorSupplier()Get the interceptor to use by default for all sessions opened from this factory.参数类型为Interceptor的org.hibernate.boot.spi中的方法 修饰符和类型 方法 说明 TAbstractDelegatingSessionFactoryBuilder. applyInterceptor(Interceptor interceptor)类型变量类型为Interceptor的org.hibernate.boot.spi中的方法参数 修饰符和类型 方法 说明 TAbstractDelegatingSessionFactoryBuilder. applyStatelessInterceptor(Class<? extends Interceptor> statelessInterceptorClass)TAbstractDelegatingSessionFactoryBuilder. applyStatelessInterceptor(Supplier<? extends Interceptor> statelessInterceptorSupplier) -
org.hibernate.cache.spi.entry中Interceptor的使用
参数类型为Interceptor的org.hibernate.cache.spi.entry中的方法 修饰符和类型 方法 说明 Object[]StandardCacheEntryImpl. assemble(Object instance, Serializable id, EntityPersister persister, Interceptor interceptor, EventSource session)Assemble the previously disassembled state represented by this entry into the given entity instance. -
org.hibernate.cfg中Interceptor的使用
返回Interceptor的org.hibernate.cfg中的方法 修饰符和类型 方法 说明 InterceptorConfiguration. getInterceptor()Retrieve the configuredInterceptor.参数类型为Interceptor的org.hibernate.cfg中的方法 修饰符和类型 方法 说明 ConfigurationConfiguration. setInterceptor(Interceptor interceptor)Set the currentInterceptor -
org.hibernate.engine.spi中Interceptor的使用
返回Interceptor的org.hibernate.engine.spi中的方法 修饰符和类型 方法 说明 InterceptorSessionDelegatorBaseImpl. getInterceptor()InterceptorSessionFactoryDelegatingImpl. getInterceptor()InterceptorSessionFactoryImplementor. getInterceptor()已过时。(since 5.2) if access to the SessionFactory-scoped Interceptor is needed, useSessionFactoryOptions.getInterceptor()instead.InterceptorSharedSessionContractImplementor. getInterceptor()Retrieves the interceptor currently in use by this event source.参数类型为Interceptor的org.hibernate.engine.spi中的方法 修饰符和类型 方法 说明 TAbstractDelegatingSessionBuilder. interceptor(Interceptor interceptor)TAbstractDelegatingSharedSessionBuilder. interceptor(Interceptor interceptor) -
org.hibernate.internal中Interceptor的使用
返回Interceptor的org.hibernate.internal中的方法 修饰符和类型 方法 说明 static InterceptorSessionFactoryImpl. configuredInterceptor(Interceptor interceptor, SessionFactoryOptions options)InterceptorAbstractSharedSessionContract. getInterceptor()InterceptorSessionCreationOptions. getInterceptor()InterceptorSessionFactoryImpl. getInterceptor()InterceptorSessionFactoryImpl.SessionBuilderImpl. getInterceptor()InterceptorSessionFactoryImpl.StatelessSessionBuilderImpl. getInterceptor()参数类型为Interceptor的org.hibernate.internal中的方法 修饰符和类型 方法 说明 static InterceptorSessionFactoryImpl. configuredInterceptor(Interceptor interceptor, SessionFactoryOptions options)TSessionFactoryImpl.SessionBuilderImpl. interceptor(Interceptor interceptor)参数类型为Interceptor的org.hibernate.internal中的构造器 构造器 说明 CoordinatingEntityNameResolver(SessionFactoryImplementor sessionFactory, Interceptor interceptor)
-