|
||||||||||
| 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 java.util.Set<java.lang.String> |
callbackMethods
|
protected LifecycleEvent |
callbackType
|
| Constructor Summary | |
|---|---|
CallbackDescriptor(LifecycleEvent callbackType)
|
|
| Method Summary | |
|---|---|
void |
addCallbackMethod(java.lang.String methodName)
|
void |
clear()
Removes all callback methods. |
java.util.Collection<java.lang.String> |
getCallbackMethods()
Returns all callback methods for this callback event. |
LifecycleEvent |
getCallbackType()
|
boolean |
moveMethod(java.lang.String callbackMethod,
int destinationIndex)
moves specified callback method to the specified position |
void |
removeCallbackMethod(java.lang.String methodName)
|
void |
setCallbackMethodAt(int index,
java.lang.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 java.util.Set<java.lang.String> callbackMethods
| Constructor Detail |
|---|
public CallbackDescriptor(LifecycleEvent callbackType)
| Method Detail |
|---|
public void clear()
public java.util.Collection<java.lang.String> getCallbackMethods()
public void addCallbackMethod(java.lang.String methodName)
public void removeCallbackMethod(java.lang.String methodName)
public LifecycleEvent getCallbackType()
public boolean moveMethod(java.lang.String callbackMethod,
int destinationIndex)
callbackMethod - callbacm method name (should exist)destinationIndex - destinationi index (should be valid)
public void setCallbackMethodAt(int index,
java.lang.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 | |||||||||