クラス EventListenerDefinition

java.lang.Object
org.iplass.mtp.entity.definition.EventListenerDefinition
すべての実装されたインタフェース:
java.io.Serializable
直系の既知のサブクラス:
JavaClassEventListenerDefinition, ScriptingEventListenerDefinition, SendNotificationEventListenerDefinition

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

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

※注意

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

関連項目:
直列化された形式
  • コンストラクタの概要

    コンストラクタ 
    コンストラクタ 説明
    EventListenerDefinition()  
  • メソッドの概要

    修飾子とタイプ メソッド 説明
    boolean isWithoutMappedByReference()  
    void setWithoutMappedByReference​(boolean withoutMappedByReference)
    beforeUpdate,afterUpdateの際、 EntityEventContextに、"beforeUpdateEntity"の名前でセットされる更新前のEntityデータを取得する際、 被参照のReferencePropertyの値も取得するかどうかを設定。

    クラスから継承されたメソッド java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • コンストラクタの詳細

  • メソッドの詳細

    • isWithoutMappedByReference

      public boolean isWithoutMappedByReference()
    • setWithoutMappedByReference

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