Top Inners Fields Constructors Methods
org.hibernate.bytecode.enhance.spi.interceptor

public Class EnhancementAsProxyLazinessInterceptor

extends AbstractLazyLoadInterceptor
Class Inheritance
Imports
java.util.Collections, .HashSet, .Set, org.hibernate.EntityMode, .HibernateException, .LockMode, org.hibernate.bytecode.BytecodeLogging, org.hibernate.bytecode.enhance.spi.LazyPropertyInitializer, org.hibernate.engine.spi.EntityKey, .SelfDirtinessTracker, .SharedSessionContractImplementor, org.hibernate.internal.util.collections.ArrayHelper, org.hibernate.persister.entity.EntityPersister, org.hibernate.tuple.entity.EntityTuplizer, org.hibernate.type.CompositeType, .Type

Deprecated

as a consequence of AbstractLazyLoadInterceptor being deprecated. See corresponding docs for further information.

Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static enum

Field Summary

Modifier and TypeField and Description
private Set<String>
private final EntityKey
private final Set<String>
private final boolean
private final boolean
private final CompositeType
private EnhancementAsProxyLazinessInterceptor.Status
private Set<String>

Constructor Summary

AccessConstructor and Description
public
EnhancementAsProxyLazinessInterceptor(String entityName, Set<String> identifierAttributeNames, CompositeType nonAggregatedCidMapper, EntityKey entityKey, SharedSessionContractImplementor session)

Method Summary

Modifier and TypeMethod and Description
public void
private Object
extractIdValue(Object target, String attributeName)

public Object
forceInitialize(Object target, String attributeName)

public Object
forceInitialize(Object target, String attributeName, SharedSessionContractImplementor session, boolean isTemporarySession)

public EntityKey
public Object
getIdentifier()

Implements org.hibernate.bytecode.enhance.spi.interceptor.BytecodeLazyAttributeInterceptor.getIdentifier.

The id of the entity instance this interceptor is associated with
public Set<String>
protected Object
handleRead(Object target, String attributeName, Object value)

Implements abstract org.hibernate.bytecode.enhance.spi.interceptor.AbstractInterceptor.handleRead.

Handle the case of reading an attribute.
protected Object
handleWrite(Object target, String attributeName, Object oldValue, Object newValue)

Implements abstract org.hibernate.bytecode.enhance.spi.interceptor.AbstractInterceptor.handleWrite.

Handle the case of writing an attribute.
public boolean
public boolean
public boolean
public boolean
public boolean
private void
public void

Field Detail

collectionAttributeNamesback to summary
private Set<String> collectionAttributeNames
entityKeyback to summary
private final EntityKey entityKey
identifierAttributeNamesback to summary
private final Set<String> identifierAttributeNames
initializeBeforeWriteback to summary
private final boolean initializeBeforeWrite
inLineDirtyCheckingback to summary
private final boolean inLineDirtyChecking
nonAggregatedCidMapperback to summary
private final CompositeType nonAggregatedCidMapper
statusback to summary
private EnhancementAsProxyLazinessInterceptor.Status status
writtenFieldNamesback to summary
private Set<String> writtenFieldNames

Constructor Detail

EnhancementAsProxyLazinessInterceptorback to summary
public EnhancementAsProxyLazinessInterceptor(String entityName, Set<String> identifierAttributeNames, CompositeType nonAggregatedCidMapper, EntityKey entityKey, SharedSessionContractImplementor session)

Method Detail

attributeInitializedback to summary
public void attributeInitialized(String name)

Overrides default org.hibernate.engine.spi.PersistentAttributeInterceptor.attributeInitialized.

Implements org.hibernate.bytecode.enhance.spi.interceptor.BytecodeLazyAttributeInterceptor.attributeInitialized.

Doc from org.hibernate.bytecode.enhance.spi.interceptor.BytecodeLazyAttributeInterceptor.attributeInitialized.

Callback from the enhanced class that an attribute has been read or written

Annotations
@Override
extractIdValueback to summary
private Object extractIdValue(Object target, String attributeName)
forceInitializeback to summary
public Object forceInitialize(Object target, String attributeName)
forceInitializeback to summary
public Object forceInitialize(Object target, String attributeName, SharedSessionContractImplementor session, boolean isTemporarySession)
getEntityKeyback to summary
public EntityKey getEntityKey()
getIdentifierback to summary
public Object getIdentifier()

Implements org.hibernate.bytecode.enhance.spi.interceptor.BytecodeLazyAttributeInterceptor.getIdentifier.

Doc from org.hibernate.bytecode.enhance.spi.interceptor.BytecodeLazyAttributeInterceptor.getIdentifier.

The id of the entity instance this interceptor is associated with

Annotations
@Override
getInitializedLazyAttributeNamesback to summary
public Set<String> getInitializedLazyAttributeNames()

Overrides default org.hibernate.engine.spi.PersistentAttributeInterceptor.getInitializedLazyAttributeNames.

Implements org.hibernate.bytecode.enhance.spi.interceptor.BytecodeLazyAttributeInterceptor.getInitializedLazyAttributeNames.

Doc from org.hibernate.bytecode.enhance.spi.interceptor.BytecodeLazyAttributeInterceptor.getInitializedLazyAttributeNames.

The names of all lazy attributes which have been initialized

Annotations
@Override
handleReadback to summary
protected Object handleRead(Object target, String attributeName, Object value)

Implements abstract org.hibernate.bytecode.enhance.spi.interceptor.AbstractInterceptor.handleRead.

Doc from org.hibernate.bytecode.enhance.spi.interceptor.AbstractInterceptor.handleRead.

Handle the case of reading an attribute. The result is what is returned to the caller

Annotations
@Override
handleWriteback to summary
protected Object handleWrite(Object target, String attributeName, Object oldValue, Object newValue)

Implements abstract org.hibernate.bytecode.enhance.spi.interceptor.AbstractInterceptor.handleWrite.

Doc from org.hibernate.bytecode.enhance.spi.interceptor.AbstractInterceptor.handleWrite.

Handle the case of writing an attribute. The result is what is set as the entity state

Annotations
@Override
hasAnyUninitializedAttributesback to summary
public boolean hasAnyUninitializedAttributes()

Implements org.hibernate.bytecode.enhance.spi.interceptor.BytecodeLazyAttributeInterceptor.hasAnyUninitializedAttributes.

Annotations
@Override
hasWrittenFieldNamesback to summary
public boolean hasWrittenFieldNames()
isAttributeLoadedback to summary
public boolean isAttributeLoaded(String fieldName)

Overrides default org.hibernate.engine.spi.PersistentAttributeInterceptor.isAttributeLoaded.

Implements org.hibernate.bytecode.enhance.spi.interceptor.BytecodeLazyAttributeInterceptor.isAttributeLoaded.

Doc from org.hibernate.engine.spi.PersistentAttributeInterceptor.isAttributeLoaded.

Callback from the enhanced class that an attribute has been loaded

Returns:boolean

true id the attribute is loaded false otherwise

Annotations
@Override
isInitializedback to summary
public boolean isInitialized()
isInitializingback to summary
public boolean isInitializing()
setInitializedback to summary
private void setInitialized()
setInitializingback to summary
public void setInitializing()
org.hibernate.bytecode.enhance.spi.interceptor back to summary

private final Enum EnhancementAsProxyLazinessInterceptor.Status

extends Enum<EnhancementAsProxyLazinessInterceptor.Status>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final EnhancementAsProxyLazinessInterceptor.Status
public static final EnhancementAsProxyLazinessInterceptor.Status
public static final EnhancementAsProxyLazinessInterceptor.Status

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static EnhancementAsProxyLazinessInterceptor.Status
public static EnhancementAsProxyLazinessInterceptor.Status[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

INITIALIZEDback to summary
public static final EnhancementAsProxyLazinessInterceptor.Status INITIALIZED
INITIALIZINGback to summary
public static final EnhancementAsProxyLazinessInterceptor.Status INITIALIZING
UNINITIALIZEDback to summary
public static final EnhancementAsProxyLazinessInterceptor.Status UNINITIALIZED

Constructor Detail

Statusback to summary
private Status()

Method Detail

valueOfback to summary
public static EnhancementAsProxyLazinessInterceptor.Status valueOf(String name)
valuesback to summary
public static EnhancementAsProxyLazinessInterceptor.Status[] values()