Class LoadEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class LoadEvent
    extends AbstractEvent
    Defines an event class for the loading of an entity.
    See Also:
    Serialized Form
    • Field Detail

      • DEFAULT_LOCK_MODE

        public static final LockMode DEFAULT_LOCK_MODE
      • DEFAULT_LOCK_OPTIONS

        public static final LockOptions DEFAULT_LOCK_OPTIONS
    • Constructor Detail

      • LoadEvent

        public LoadEvent​(java.io.Serializable entityId,
                         java.lang.Object instanceToLoad,
                         EventSource source)
      • LoadEvent

        public LoadEvent​(java.io.Serializable entityId,
                         java.lang.String entityClassName,
                         LockMode lockMode,
                         EventSource source)
      • LoadEvent

        public LoadEvent​(java.io.Serializable entityId,
                         java.lang.String entityClassName,
                         LockOptions lockOptions,
                         EventSource source)
      • LoadEvent

        public LoadEvent​(java.io.Serializable entityId,
                         java.lang.String entityClassName,
                         boolean isAssociationFetch,
                         EventSource source)
    • Method Detail

      • isAssociationFetch

        public boolean isAssociationFetch()
      • getEntityId

        public java.io.Serializable getEntityId()
      • setEntityId

        public void setEntityId​(java.io.Serializable entityId)
      • getEntityClassName

        public java.lang.String getEntityClassName()
      • setEntityClassName

        public void setEntityClassName​(java.lang.String entityClassName)
      • getInstanceToLoad

        public java.lang.Object getInstanceToLoad()
      • setInstanceToLoad

        public void setInstanceToLoad​(java.lang.Object instanceToLoad)
      • getLockMode

        public LockMode getLockMode()
      • setLockMode

        public void setLockMode​(LockMode lockMode)
      • setLockTimeout

        public void setLockTimeout​(int timeout)
      • getLockTimeout

        public int getLockTimeout()
      • setLockScope

        public void setLockScope​(boolean cascade)
      • getLockScope

        public boolean getLockScope()
      • getResult

        public java.lang.Object getResult()
      • setResult

        public void setResult​(java.lang.Object result)
      • setPostLoadEvent

        public void setPostLoadEvent​(PostLoadEvent postLoadEvent)