|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CascadeMapping
Cascade mappings responsible for getting objects for cascading operations as well as marking which operations are allowed to be cascaded.
| Nested Class Summary | |
|---|---|
static class |
CascadeMapping.Cascade
A cascade enumeration of operations allowed for cascading. |
| Method Summary | |
|---|---|
CascadeMapping.Cascade[] |
getCascades()
Returns the cascades of the mapping. |
Object |
getCascadeValue(Object root)
Returns the value that should be cascaded basde on the root object. |
boolean |
shouldCascade(CascadeMapping.Cascade cascade)
Returns true if cascading should be performed for the
cascade parameter. |
boolean |
shouldCascadeCreate()
Returns true if cascading should be performed for create
operations. |
boolean |
shouldCascadeDelete()
Returns true if cascading should be performed for delete
operations. |
boolean |
shouldCascadeSave()
Returns true if cascading should be performed for save
operations. |
| Method Detail |
|---|
Object getCascadeValue(Object root)
throws CompassException
root - The root object to extract the cascaded value from
CompassExceptionCascadeMapping.Cascade[] getCascades()
boolean shouldCascadeDelete()
true if cascading should be performed for delete
operations.
boolean shouldCascadeCreate()
true if cascading should be performed for create
operations.
boolean shouldCascadeSave()
true if cascading should be performed for save
operations.
boolean shouldCascade(CascadeMapping.Cascade cascade)
true if cascading should be performed for the
cascade parameter.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||