public interface PersistenceListener
| Modifier and Type | Method and Description |
|---|---|
boolean |
onLoad(java.io.Serializable id,
java.lang.Object[] state,
java.lang.String[] propertyNames) |
boolean |
onSave(java.io.Serializable id,
java.lang.Object[] state,
java.lang.String[] propertyNames)
This method is called when EntityManager.persist is called.
|
void |
preFlush()
preFlush is called either EntityManager.flush is called or as part of commit.
|
boolean onLoad(java.io.Serializable id,
java.lang.Object[] state,
java.lang.String[] propertyNames)
boolean onSave(java.io.Serializable id,
java.lang.Object[] state,
java.lang.String[] propertyNames)
id - The primary key objectstate - statepropertyNames - property namesvoid preFlush()