|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.map.CallbackDescriptor
public class CallbackDescriptor
A mapping descriptor of a single callback event.
Field Summary | |
---|---|
protected Set<String> |
callbackMethods
|
protected LifecycleEvent |
callbackType
|
Constructor Summary | |
---|---|
CallbackDescriptor(LifecycleEvent callbackType)
|
Method Summary | |
---|---|
void |
addCallbackMethod(String methodName)
|
void |
clear()
Removes all callback methods. |
Collection<String> |
getCallbackMethods()
Returns all callback methods for this callback event. |
LifecycleEvent |
getCallbackType()
|
boolean |
moveMethod(String callbackMethod,
int destinationIndex)
moves specified callback method to the specified position |
void |
removeCallbackMethod(String methodName)
|
void |
setCallbackMethodAt(int index,
String method)
Replaces a callback method at the specified position |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected LifecycleEvent callbackType
protected Set<String> callbackMethods
Constructor Detail |
---|
public CallbackDescriptor(LifecycleEvent callbackType)
Method Detail |
---|
public void clear()
public Collection<String> getCallbackMethods()
public void addCallbackMethod(String methodName)
public void removeCallbackMethod(String methodName)
public LifecycleEvent getCallbackType()
public boolean moveMethod(String callbackMethod, int destinationIndex)
callbackMethod
- callbacm method name (should exist)destinationIndex
- destinationi index (should be valid)
public void setCallbackMethodAt(int index, String method)
index
- callback method indexmethod
- new callback method
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |