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 - Indicates a problem happened during callbackboolean onUpdate(Session s) throws CallbackException
s - the sessionCallbackException - Indicates a problem happened during callbackboolean onDelete(Session s) throws CallbackException
s - the sessionCallbackException - Indicates a problem happened during callbackvoid onLoad(Session s, Serializable id)
s - the sessionid - the identifierCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.