Package org.apache.cayenne.map
Class CallbackDescriptor
java.lang.Object
org.apache.cayenne.map.CallbackDescriptor
- All Implemented Interfaces:
Serializable
A mapping descriptor of a single callback event.
- Since:
- 3.0
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCallbackMethod
(String methodName) void
clear()
Removes all callback methods.Returns all callback methods for this callback event.boolean
moveMethod
(String callbackMethod, int destinationIndex) Moves specified callback method to the specified positionvoid
removeCallbackMethod
(String methodName) void
setCallbackMethodAt
(int index, String method) Replaces a callback method at the specified position
-
Field Details
-
callbackType
-
callbackMethods
-
-
Constructor Details
-
CallbackDescriptor
-
-
Method Details
-
clear
public void clear()Removes all callback methods. -
getCallbackMethods
Returns all callback methods for this callback event.- Returns:
- Returns all callback methods
-
addCallbackMethod
-
removeCallbackMethod
-
getCallbackType
-
moveMethod
Moves specified callback method to the specified position- Parameters:
callbackMethod
- callbacm method name (should exist)destinationIndex
- destinationi index (should be valid)- Returns:
- true if any changes were made
-
setCallbackMethodAt
Replaces a callback method at the specified position- Parameters:
index
- callback method indexmethod
- new callback method
-