|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
T
- エンティティの型public interface EntityListener<T>
エンティティのリスナ。エンティティへの変更がDBへ反映される際に呼び出される。
メソッドの概要 | |
---|---|
void |
onCollectionEntityRecreate(Serializable ownerId,
Class<T> ownerClass,
Serializable entityId,
Object entity)
エンティティのコレクション要素が再作成されたことを通知する。 |
void |
onCollectionEntityRemove(Serializable ownerId,
Class<T> ownerClass,
String collectionPropertyName,
Serializable entityId,
Class<?> entityClass)
エンティティのコレクション要素が削除されたことを通知する。 |
void |
onCollectionEntityUpdate(Serializable ownerId,
Class<T> ownerClass,
String collectionPropertyName,
Serializable entityId,
Object entity)
エンティティのコレクション要素が更新されたことを通知する。 |
void |
onDelete(Serializable id,
Class<T> clazz)
エンティティの削除がDBに反映されたことを通知する。 |
void |
onInsert(Serializable id,
T entity)
エンティティの追加がDBに反映されたことを通知する。 |
void |
onUpdate(Serializable id,
T entity,
String[] modifiedProperties)
エンティティへの更新がDBに反映されたことを通知する。 |
メソッドの詳細 |
---|
void onInsert(Serializable id, T entity)
id
- エンティティのIDentity
- エンティティvoid onUpdate(Serializable id, T entity, String[] modifiedProperties)
id
- エンティティのIDentity
- エンティティmodifiedProperties
- 変更されたプロパティvoid onDelete(Serializable id, Class<T> clazz)
id
- エンティティのIDclazz
- エンティティのクラスvoid onCollectionEntityRecreate(Serializable ownerId, Class<T> ownerClass, Serializable entityId, Object entity)
ownerId
- エンティティのIDownerClazz
- エンティティのクラスentityId
- 要素のIDentity
- 要素void onCollectionEntityUpdate(Serializable ownerId, Class<T> ownerClass, String collectionPropertyName, Serializable entityId, Object entity)
ownerId
- エンティティのIDownerClazz
- エンティティのクラスentityId
- 要素のIDentity
- 要素void onCollectionEntityRemove(Serializable ownerId, Class<T> ownerClass, String collectionPropertyName, Serializable entityId, Class<?> entityClass)
ownerId
- エンティティのIDownerClazz
- エンティティのクラスentityId
- 要素のIDentityClass
- 要素のクラス
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |