|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.go.nict.langrid.dao.hibernate.listener.EntityListeners
public class EntityListeners
エンティティリスナを保持するクラス。
コンストラクタの概要 | |
---|---|
EntityListeners()
|
メソッドの概要 | ||
---|---|---|
|
add(Class<T> clazz,
EntityListener<T> listener)
リスナを追加する。 |
|
void |
fireCollectionEntityRecreate(Serializable ownerId,
Class<?> ownerClass,
Serializable entityId,
Object entity)
CollectionEntityRecreateイベントを発生させる。 |
|
void |
fireCollectionEntityRemove(Serializable ownerId,
Class<?> ownerClass,
String collectionPropertyName,
Serializable entityId,
Class<?> entityClass)
CollectionEntityDeleteイベントを発生させる。 |
|
void |
fireCollectionEntityUpdate(Serializable ownerId,
Class<?> ownerClass,
String collectionPropertyName,
Serializable entityId,
Object entity)
CollectionEntityUpdateイベントを発生させる。 |
|
void |
fireDelete(Serializable id,
Class<?> clazz)
Deleteイベントを発生させる。 |
|
void |
fireInsert(Serializable id,
Object entity)
Insertイベントを発生させる。 |
|
void |
fireUpdate(Serializable id,
Object entity,
String[] modifiedProperties)
Updateイベントを発生させる。 |
|
|
remove(Class<T> clazz,
EntityListener<T> listener)
リスナを削除する。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public EntityListeners()
メソッドの詳細 |
---|
public <T> void add(Class<T> clazz, EntityListener<T> listener)
T
- リスナが扱うエンティティの型clazz
- エンティティのクラスlistener
- リスナpublic <T> void remove(Class<T> clazz, EntityListener<T> listener)
T
- リスナが扱うエンティティの型clazz
- エンティティのクラスlistener
- リスナpublic void fireInsert(Serializable id, Object entity)
id
- 挿入されたエンティティのIDentity
- エンティティpublic void fireUpdate(Serializable id, Object entity, String[] modifiedProperties)
id
- 更新されたエンティティのIDentity
- エンティティpublic void fireDelete(Serializable id, Class<?> clazz)
id
- 削除されたエンティティのIDclazz
- 削除されたエンティティのクラスpublic void fireCollectionEntityRecreate(Serializable ownerId, Class<?> ownerClass, Serializable entityId, Object entity)
ownerId
- エンティティの親エンティティのIDownerClass
- エンティティの親エンティティのクラスentityId
- エンティティIDentity
- エンティティpublic void fireCollectionEntityUpdate(Serializable ownerId, Class<?> ownerClass, String collectionPropertyName, Serializable entityId, Object entity)
ownerId
- エンティティの親エンティティのIDownerClass
- エンティティの親エンティティのクラスentityId
- エンティティIDentity
- エンティティpublic void fireCollectionEntityRemove(Serializable ownerId, Class<?> ownerClass, String collectionPropertyName, Serializable entityId, Class<?> entityClass)
ownerId
- エンティティの親エンティティのIDownerClass
- エンティティの親エンティティのクラスentityId
- エンティティのIDentityClass
- エンティティのクラス
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |