com.caucho.amber.entity
Interface Listener


public interface Listener

An entity listener instance.


Field Summary
static int POST_LOAD
           
static int POST_PERSIST
           
static int POST_REMOVE
           
static int POST_UPDATE
           
static int PRE_PERSIST
           
static int PRE_REMOVE
           
static int PRE_UPDATE
           
 
Method Summary
 void __caucho_callback(int callbackIndex, java.lang.Object entity)
          Generic callback.
 void __caucho_postLoad(java.lang.Object entity)
          Called after an entity has been loaded into the current persistence context.
 void __caucho_postPersist(java.lang.Object entity)
          Called after the entity has been made persistent.
 void __caucho_postRemove(java.lang.Object entity)
          Called after the entity has been made removed.
 void __caucho_postUpdate(java.lang.Object entity)
          Called after database update operations.
 void __caucho_prePersist(java.lang.Object entity)
          Called before EntityManager.persist().
 void __caucho_preRemove(java.lang.Object entity)
          Called before EntityManager.remove().
 void __caucho_preUpdate(java.lang.Object entity)
          Called before database update operations.
 

Field Detail

PRE_PERSIST

static final int PRE_PERSIST
See Also:
Constant Field Values

POST_PERSIST

static final int POST_PERSIST
See Also:
Constant Field Values

PRE_REMOVE

static final int PRE_REMOVE
See Also:
Constant Field Values

POST_REMOVE

static final int POST_REMOVE
See Also:
Constant Field Values

PRE_UPDATE

static final int PRE_UPDATE
See Also:
Constant Field Values

POST_UPDATE

static final int POST_UPDATE
See Also:
Constant Field Values

POST_LOAD

static final int POST_LOAD
See Also:
Constant Field Values
Method Detail

__caucho_prePersist

void __caucho_prePersist(java.lang.Object entity)
Called before EntityManager.persist().


__caucho_postPersist

void __caucho_postPersist(java.lang.Object entity)
Called after the entity has been made persistent.


__caucho_preRemove

void __caucho_preRemove(java.lang.Object entity)
Called before EntityManager.remove().


__caucho_postRemove

void __caucho_postRemove(java.lang.Object entity)
Called after the entity has been made removed.


__caucho_preUpdate

void __caucho_preUpdate(java.lang.Object entity)
Called before database update operations.


__caucho_postUpdate

void __caucho_postUpdate(java.lang.Object entity)
Called after database update operations.


__caucho_postLoad

void __caucho_postLoad(java.lang.Object entity)
Called after an entity has been loaded into the current persistence context.


__caucho_callback

void __caucho_callback(int callbackIndex,
                       java.lang.Object entity)
Generic callback.