类 ByteBuddyInterceptor
- java.lang.Object
-
- org.hibernate.proxy.AbstractLazyInitializer
-
- org.hibernate.proxy.pojo.BasicLazyInitializer
-
- org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor
-
- 所有已实现的接口:
LazyInitializer,ProxyConfiguration.Interceptor
public class ByteBuddyInterceptor extends BasicLazyInitializer implements ProxyConfiguration.Interceptor
-
-
字段概要
-
从类继承的字段 org.hibernate.proxy.pojo.BasicLazyInitializer
componentIdType, getIdentifierMethod, INVOKE_IMPLEMENTATION, overridesEquals, persistentClass, setIdentifierMethod
-
-
构造器概要
构造器 构造器 说明 ByteBuddyInterceptor(String entityName, Class persistentClass, Class[] interfaces, Serializable id, Method getIdentifierMethod, Method setIdentifierMethod, CompositeType componentIdType, SharedSessionContractImplementor session, boolean overridesEquals)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Objectintercept(Object proxy, Method thisMethod, Object[] args)Intercepts a method call to a proxy.protected ObjectserializableProxy()-
从类继承的方法 org.hibernate.proxy.pojo.BasicLazyInitializer
getPersistentClass, invoke
-
从类继承的方法 org.hibernate.proxy.AbstractLazyInitializer
getEntityName, getIdentifier, getImplementation, getImplementation, getSession, getSessionFactoryUuid, getTarget, initialize, initializeWithoutLoadIfPossible, isAllowLoadOutsideTransaction, isConnectedToSession, isReadOnly, isReadOnlyBeforeAttachedToSession, isReadOnlySettingAvailable, isUninitialized, isUnwrap, permissiveInitialization, prepareForPossibleLoadingOutsideTransaction, setIdentifier, setImplementation, setReadOnly, setSession, setUnwrap, unsetSession
-
-
-
-
构造器详细资料
-
ByteBuddyInterceptor
public ByteBuddyInterceptor(String entityName, Class persistentClass, Class[] interfaces, Serializable id, Method getIdentifierMethod, Method setIdentifierMethod, CompositeType componentIdType, SharedSessionContractImplementor session, boolean overridesEquals)
-
-
方法详细资料
-
intercept
public Object intercept(Object proxy, Method thisMethod, Object[] args) throws Throwable
从接口复制的说明:ProxyConfiguration.InterceptorIntercepts a method call to a proxy.- 指定者:
intercept在接口中ProxyConfiguration.Interceptor- 参数:
proxy- The proxied instance.thisMethod- The invoked method.args- The intercepted method arguments.- 返回:
- The method's return value.
- 抛出:
Throwable- If the intercepted method raises an exception.
-
serializableProxy
protected Object serializableProxy()
- 指定者:
serializableProxy在类中BasicLazyInitializer
-
-