Class EventListenerDefinition

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    JavaClassEventListenerDefinition, ScriptingEventListenerDefinition, SendNotificationEventListenerDefinition

    public abstract class EventListenerDefinition
    extends java.lang.Object
    implements java.io.Serializable

    Entity登録、更新、削除、検索、検証時に 前処理、後処理を付け加えるためのEventListenerの定義。

    ※注意

    EntityManager#updateAll()、updateAll()では、リスナーは呼び出されない。
    また、onLoadイベントは、search()では呼び出されない(Entityの形で返却されるわけではないため)。

    See Also:
    Serialized Form
    • Method Summary

      Modifier and Type Method Description
      boolean isWithoutMappedByReference()  
      void setWithoutMappedByReference​(boolean withoutMappedByReference)
      beforeUpdate,afterUpdateの際、 EntityEventContextに、"beforeUpdateEntity"の名前でセットされる更新前のEntityデータを取得する際、 被参照のReferencePropertyの値も取得するかどうかを設定。
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EventListenerDefinition

        public EventListenerDefinition()
    • Method Detail

      • isWithoutMappedByReference

        public boolean isWithoutMappedByReference()
      • setWithoutMappedByReference

        public void setWithoutMappedByReference​(boolean withoutMappedByReference)
        beforeUpdate,afterUpdateの際、 EntityEventContextに、"beforeUpdateEntity"の名前でセットされる更新前のEntityデータを取得する際、 被参照のReferencePropertyの値も取得するかどうかを設定。
        Parameters:
        withoutMappedByReference -