Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne
Interface LifecycleListener

    public interface LifecycleListener

A callback interface to listen to persistent object lifecycle events. Note that listeners ARE NOT REQUIRED to implement this interface, and in fact most won't. It exists for type safety and for simplifying listener registration. See `LifecycleCallbackRegistry` for details on how to register callbacks.

Since:
  3.0

Method Summary
`void` | `postAdd(Object entity)`
`void` | `postLoad(Object entity)`
`void` | `postPersist(Object entity)`
`void` | `postRemove(Object entity)`
`void` | `postUpdate(Object entity)`
`void` | `prePersist(Object entity)`
`void` | `preRemove(Object entity)`
`void` | `preUpdate(Object entity)`

Method Detail

### postAdd

    void postAdd(Object entity)

### prePersist

    void prePersist(Object entity)

### postPersist

    void postPersist(Object entity)

### preRemove

    void preRemove(Object entity)

### postRemove

    void postRemove(Object entity)

### preUpdate

    void preUpdate(Object entity)

### postUpdate

    void postUpdate(Object entity)

### postLoad

    void postLoad(Object entity)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2010 Apache Cayenne. All Rights Reserved.