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.
|
boolean |
hasAnyUninitializedAttributes() |
boolean |
hasWrittenFieldNames() |
boolean |
isAttributeLoaded(String fieldName) |
boolean |
isInitialized() |
boolean |
isInitializing() |
void |
setInitializing() |
allowLoadOutsideTransaction, getEntityName, getLinkedSession, getSessionFactoryUuid, readBoolean, readByte, readChar, readDouble, readFloat, readInt, readLong, readObject, readShort, setSession, unsetSession, writeBoolean, writeByte, writeChar, writeDouble, writeFloat, writeInt, writeLong, writeObject, writeShortclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEntityNameallowLoadOutsideTransaction, getLinkedSession, getSessionFactoryUuid, setSession, unsetSessionreadBoolean, readByte, readChar, readDouble, readFloat, readInt, readLong, readObject, readShort, writeBoolean, writeByte, writeChar, writeDouble, writeFloat, writeInt, writeLong, writeObject, writeShortpublic EnhancementAsProxyLazinessInterceptor(String entityName, Set<String> identifierAttributeNames, CompositeType nonAggregatedCidMapper, EntityKey entityKey, SharedSessionContractImplementor session)
public EntityKey getEntityKey()
protected Object handleRead(Object target, String attributeName, Object value)
AbstractInterceptorhandleRead in class AbstractInterceptorpublic Object forceInitialize(Object target, String attributeName, SharedSessionContractImplementor session, boolean isTemporarySession)
protected Object handleWrite(Object target, String attributeName, Object oldValue, Object newValue)
AbstractInterceptorhandleWrite in class AbstractInterceptorpublic Set<String> getInitializedLazyAttributeNames()
BytecodeLazyAttributeInterceptorpublic void attributeInitialized(String name)
BytecodeLazyAttributeInterceptorpublic boolean isAttributeLoaded(String fieldName)
public boolean hasAnyUninitializedAttributes()
public Object getIdentifier()
BytecodeLazyAttributeInterceptorpublic boolean isInitializing()
public void setInitializing()
public boolean isInitialized()
public boolean hasWrittenFieldNames()
Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.