|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectjp.go.nict.langrid.dao.EntityAdapter<T>
T - エンティティの型public class EntityAdapter<T>
エンティティリスナのアダプタ。
| コンストラクタの概要 | |
|---|---|
EntityAdapter()
|
|
| メソッドの概要 | |
|---|---|
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に反映されたことを通知する。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public EntityAdapter()
| メソッドの詳細 |
|---|
public void onInsert(Serializable id,
T entity)
EntityListener の記述:
EntityListener<T> 内の onInsertid - エンティティのIDentity - エンティティ
public void onUpdate(Serializable id,
T entity,
String[] modifiedProperties)
EntityListener の記述:
EntityListener<T> 内の onUpdateid - エンティティのIDentity - エンティティmodifiedProperties - 変更されたプロパティ
public void onDelete(Serializable id,
Class<T> clazz)
EntityListener の記述:
EntityListener<T> 内の onDeleteid - エンティティのIDclazz - エンティティのクラス
public void onCollectionEntityRecreate(Serializable ownerId,
Class<T> ownerClass,
Serializable entityId,
Object entity)
EntityListener の記述:
EntityListener<T> 内の onCollectionEntityRecreateownerId - エンティティのIDentityId - 要素のIDentity - 要素
public void onCollectionEntityUpdate(Serializable ownerId,
Class<T> ownerClass,
String collectionPropertyName,
Serializable entityId,
Object entity)
EntityListener の記述:
EntityListener<T> 内の onCollectionEntityUpdateownerId - エンティティのIDentityId - 要素のIDentity - 要素
public void onCollectionEntityRemove(Serializable ownerId,
Class<T> ownerClass,
String collectionPropertyName,
Serializable entityId,
Class<?> entityClass)
EntityListener の記述:
EntityListener<T> 内の onCollectionEntityRemoveownerId - エンティティのIDentityId - 要素のIDentityClass - 要素のクラス
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||