public interface Lifecycle
CallbackException
Modifier and Type | Field and Description |
---|---|
static boolean |
NO_VETO
Return value to accept the action (false)
|
static boolean |
VETO
Return value to veto the action (true)
|
Modifier and Type | Method and Description |
---|---|
boolean |
onDelete(Session s)
Called when an entity is deleted.
|
void |
onLoad(Session s,
Serializable id)
Called after an entity is loaded.
|
boolean |
onSave(Session s)
Called when an entity is saved.
|
boolean |
onUpdate(Session s)
Called when an entity is passed to Session.update().
|
static final boolean VETO
static final boolean NO_VETO
boolean onSave(Session s) throws CallbackException
s
- the sessionCallbackException
boolean onUpdate(Session s) throws CallbackException
s
- the sessionCallbackException
boolean onDelete(Session s) throws CallbackException
s
- the sessionCallbackException
void onLoad(Session s, Serializable id)
s
- the sessionid
- the identifierCopyright © 2018 JBoss by Red Hat. All rights reserved.