Class EnhancementAsProxyLazinessInterceptor

All Implemented Interfaces:
BytecodeLazyAttributeInterceptor, SessionAssociableInterceptor, LazyPropertyInitializer.InterceptorImplementor, PersistentAttributeInterceptor

public class EnhancementAsProxyLazinessInterceptor extends AbstractLazyLoadInterceptor
  • Constructor Details

  • Method Details

    • getEntityKey

      public EntityKey getEntityKey()
    • handleRead

      protected Object handleRead(Object target, String attributeName, Object value)
      Description copied from class: AbstractInterceptor
      Handle the case of reading an attribute. The result is what is returned to the caller
      Specified by:
      handleRead in class AbstractInterceptor
    • forceInitialize

      public Object forceInitialize(Object target, String attributeName)
    • forceInitialize

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

      protected Object handleWrite(Object target, String attributeName, Object oldValue, Object newValue)
      Description copied from class: AbstractInterceptor
      Handle the case of writing an attribute. The result is what is set as the entity state
      Specified by:
      handleWrite in class AbstractInterceptor
    • getInitializedLazyAttributeNames

      public Set<String> getInitializedLazyAttributeNames()
      Description copied from interface: BytecodeLazyAttributeInterceptor
      The names of all lazy attributes which have been initialized
    • attributeInitialized

      public void attributeInitialized(String name)
      Description copied from interface: BytecodeLazyAttributeInterceptor
      Callback from the enhanced class that an attribute has been read or written
    • isAttributeLoaded

      public boolean isAttributeLoaded(String fieldName)
      Description copied from interface: PersistentAttributeInterceptor
      Callback from the enhanced class that an attribute has been loaded
      Returns:
      true id the attribute is loaded false otherwise
    • hasAnyUninitializedAttributes

      public boolean hasAnyUninitializedAttributes()
    • getIdentifier

      public Object getIdentifier()
      Description copied from interface: BytecodeLazyAttributeInterceptor
      The id of the entity instance this interceptor is associated with
    • isInitializing

      public boolean isInitializing()
    • setInitializing

      public void setInitializing()
    • isInitialized

      public boolean isInitialized()
    • hasWrittenFieldNames

      public boolean hasWrittenFieldNames()