public class EnhancementAsProxyLazinessInterceptor extends AbstractLazyLoadInterceptor
Constructor and Description |
---|
EnhancementAsProxyLazinessInterceptor(String entityName,
Set<String> identifierAttributeNames,
CompositeType nonAggregatedCidMapper,
EntityKey entityKey,
SharedSessionContractImplementor session) |
Modifier and Type | Method and Description |
---|---|
void |
attributeInitialized(String name)
Callback from the enhanced class that an attribute has been read or written
|
Object |
forceInitialize(Object target,
String attributeName) |
Object |
forceInitialize(Object target,
String attributeName,
SharedSessionContractImplementor session,
boolean isTemporarySession) |
EntityKey |
getEntityKey() |
Object |
getIdentifier()
The id of the entity instance this interceptor is associated with
|
Set<String> |
getInitializedLazyAttributeNames()
The names of all lazy attributes which have been initialized
|
protected Object |
handleRead(Object target,
String attributeName,
Object value)
Handle the case of reading an attribute.
|
protected Object |
handleWrite(Object target,
String attributeName,
Object oldValue,
Object newValue)
Handle the case of writing an attribute.
|
allowLoadOutsideTransaction, getEntityName, getLinkedSession, getSessionFactoryUuid, readBoolean, readByte, readChar, readDouble, readFloat, readInt, readLong, readObject, readShort, setSession, unsetSession, writeBoolean, writeByte, writeChar, writeDouble, writeFloat, writeInt, writeLong, writeObject, writeShort
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEntityName
allowLoadOutsideTransaction, getLinkedSession, getSessionFactoryUuid, setSession, unsetSession
readBoolean, readByte, readChar, readDouble, readFloat, readInt, readLong, readObject, readShort, writeBoolean, writeByte, writeChar, writeDouble, writeFloat, writeInt, writeLong, writeObject, writeShort
public EnhancementAsProxyLazinessInterceptor(String entityName, Set<String> identifierAttributeNames, CompositeType nonAggregatedCidMapper, EntityKey entityKey, SharedSessionContractImplementor session)
public EntityKey getEntityKey()
protected Object handleRead(Object target, String attributeName, Object value)
AbstractInterceptor
handleRead
in class AbstractInterceptor
public Object forceInitialize(Object target, String attributeName, SharedSessionContractImplementor session, boolean isTemporarySession)
protected Object handleWrite(Object target, String attributeName, Object oldValue, Object newValue)
AbstractInterceptor
handleWrite
in class AbstractInterceptor
public Set<String> getInitializedLazyAttributeNames()
BytecodeLazyAttributeInterceptor
public void attributeInitialized(String name)
BytecodeLazyAttributeInterceptor
public Object getIdentifier()
BytecodeLazyAttributeInterceptor
Copyright © 2021 JBoss by Red Hat. All rights reserved.