public class EntityStateEventListeners<T> extends Object implements EntityStateEventListenable<T>
Modifier and Type | Field and Description |
---|---|
protected Set<PostDeleteListener<T>> |
postDeleteListeners |
protected Set<PostInsertListener<T>> |
postInsertListeners |
protected Set<PostLoadListener<T>> |
postLoadListeners |
protected Set<PostUpdateListener<T>> |
postUpdateListeners |
protected Set<PreDeleteListener<T>> |
preDeleteListeners |
protected Set<PreInsertListener<T>> |
preInsertListeners |
protected Set<PreUpdateListener<T>> |
preUpdateListeners |
Modifier | Constructor and Description |
---|---|
protected |
EntityStateEventListeners() |
Modifier and Type | Method and Description |
---|---|
void |
addPostDeleteListener(PostDeleteListener<T> listener) |
void |
addPostInsertListener(PostInsertListener<T> listener) |
void |
addPostLoadListener(PostLoadListener<T> listener) |
void |
addPostUpdateListener(PostUpdateListener<T> listener) |
void |
addPreDeleteListener(PreDeleteListener<T> listener) |
void |
addPreInsertListener(PreInsertListener<T> listener) |
void |
addPreUpdateListener(PreUpdateListener<T> listener) |
void |
removePostDeleteListener(PostDeleteListener<T> listener) |
void |
removePostInsertListener(PostInsertListener<T> listener) |
void |
removePostLoadListener(PostLoadListener<T> listener) |
void |
removePostUpdateListener(PostUpdateListener<T> listener) |
void |
removePreDeleteListener(PreDeleteListener<T> listener) |
void |
removePreInsertListener(PreInsertListener<T> listener) |
void |
removePreUpdateListener(PreUpdateListener<T> listener) |
protected final Set<PreInsertListener<T>> preInsertListeners
protected final Set<PreDeleteListener<T>> preDeleteListeners
protected final Set<PreUpdateListener<T>> preUpdateListeners
protected final Set<PostInsertListener<T>> postInsertListeners
protected final Set<PostDeleteListener<T>> postDeleteListeners
protected final Set<PostUpdateListener<T>> postUpdateListeners
protected final Set<PostLoadListener<T>> postLoadListeners
public void addPreInsertListener(PreInsertListener<T> listener)
addPreInsertListener
in interface EntityStateEventListenable<T>
public void addPreDeleteListener(PreDeleteListener<T> listener)
addPreDeleteListener
in interface EntityStateEventListenable<T>
public void addPreUpdateListener(PreUpdateListener<T> listener)
addPreUpdateListener
in interface EntityStateEventListenable<T>
public void addPostInsertListener(PostInsertListener<T> listener)
addPostInsertListener
in interface EntityStateEventListenable<T>
public void addPostDeleteListener(PostDeleteListener<T> listener)
addPostDeleteListener
in interface EntityStateEventListenable<T>
public void addPostUpdateListener(PostUpdateListener<T> listener)
addPostUpdateListener
in interface EntityStateEventListenable<T>
public void addPostLoadListener(PostLoadListener<T> listener)
addPostLoadListener
in interface EntityStateEventListenable<T>
public void removePreInsertListener(PreInsertListener<T> listener)
removePreInsertListener
in interface EntityStateEventListenable<T>
public void removePreDeleteListener(PreDeleteListener<T> listener)
removePreDeleteListener
in interface EntityStateEventListenable<T>
public void removePreUpdateListener(PreUpdateListener<T> listener)
removePreUpdateListener
in interface EntityStateEventListenable<T>
public void removePostInsertListener(PostInsertListener<T> listener)
removePostInsertListener
in interface EntityStateEventListenable<T>
public void removePostDeleteListener(PostDeleteListener<T> listener)
removePostDeleteListener
in interface EntityStateEventListenable<T>
public void removePostUpdateListener(PostUpdateListener<T> listener)
removePostUpdateListener
in interface EntityStateEventListenable<T>
public void removePostLoadListener(PostLoadListener<T> listener)
removePostLoadListener
in interface EntityStateEventListenable<T>