| Package | Description | 
|---|---|
| org.apache.cayenne.map | Contains O/R mapping classes that store relational database 
metadata information and map it to Java classes. | 
| org.apache.cayenne.reflect | 
| Modifier and Type | Field and Description | 
|---|---|
| protected LifecycleEvent | CallbackDescriptor. callbackType | 
| Modifier and Type | Method and Description | 
|---|---|
| LifecycleEvent | CallbackDescriptor. getCallbackType() | 
| static LifecycleEvent | LifecycleEvent. valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static LifecycleEvent[] | LifecycleEvent. values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
| Modifier and Type | Method and Description | 
|---|---|
| CallbackDescriptor | CallbackMap. getCallbackDescriptor(LifecycleEvent callbackType) | 
| Constructor and Description | 
|---|
| CallbackDescriptor(LifecycleEvent callbackType) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | LifecycleCallbackRegistry. addCallback(LifecycleEvent type,
           Class<?> entityClass,
           String methodName)Registers a callback method to be invoked on an entity class instances
 when a lifecycle event occurs. | 
| void | LifecycleCallbackRegistry. addDefaultListener(LifecycleEvent type,
                  Object listener,
                  String methodName)Registers a callback method to be invoked on a provided non-entity object
 when a lifecycle event occurs on any entity that does not suppress
 default callbacks. | 
| void | LifecycleCallbackRegistry. addListener(LifecycleEvent type,
           Class<?> entityClass,
           Object listener,
           String methodName)Registers callback method to be invoked on a provided non-entity object
 when a lifecycle event occurs for a specific entity. | 
| void | LifecycleCallbackRegistry. addListener(LifecycleEvent type,
           Class<?> entityClass,
           String methodName)Deprecated.  | 
| boolean | LifecycleCallbackRegistry. isEmpty(LifecycleEvent type)Returns true if there are no listeners for a specific event type. | 
| void | LifecycleCallbackRegistry. performCallbacks(LifecycleEvent type,
                Collection<?> objects)Invokes callbacks of a specific type for a collection of entity objects. | 
| void | LifecycleCallbackRegistry. performCallbacks(LifecycleEvent type,
                Persistent object)Invokes callbacks of a specific type for a given entity object. | 
Copyright © 2001–2023 Apache Cayenne. All rights reserved.