Class EnhancementAsProxyLazinessInterceptor

    • Constructor Detail

      • EnhancementAsProxyLazinessInterceptor

        public EnhancementAsProxyLazinessInterceptor​(java.lang.String entityName,
                                                     java.util.Set<java.lang.String> identifierAttributeNames,
                                                     CompositeType nonAggregatedCidMapper,
                                                     EntityKey entityKey,
                                                     SharedSessionContractImplementor session)
    • Method Detail

      • getEntityKey

        public EntityKey getEntityKey()
      • handleRead

        protected java.lang.Object handleRead​(java.lang.Object target,
                                              java.lang.String attributeName,
                                              java.lang.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 java.lang.Object forceInitialize​(java.lang.Object target,
                                                java.lang.String attributeName)
      • forceInitialize

        public java.lang.Object forceInitialize​(java.lang.Object target,
                                                java.lang.String attributeName,
                                                SharedSessionContractImplementor session,
                                                boolean isTemporarySession)
      • handleWrite

        protected java.lang.Object handleWrite​(java.lang.Object target,
                                               java.lang.String attributeName,
                                               java.lang.Object oldValue,
                                               java.lang.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 java.util.Set<java.lang.String> getInitializedLazyAttributeNames()
        Description copied from interface: BytecodeLazyAttributeInterceptor
        The names of all lazy attributes which have been initialized
      • attributeInitialized

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

        public boolean isAttributeLoaded​(java.lang.String fieldName)
      • hasAnyUninitializedAttributes

        public boolean hasAnyUninitializedAttributes()
      • getIdentifier

        public java.lang.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()