|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.mapping.support.AbstractMapping
org.compass.core.mapping.osem.AbstractAccessorMapping
org.compass.core.mapping.osem.ParentMapping
public class ParentMapping
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.compass.core.mapping.CascadeMapping |
|---|
CascadeMapping.Cascade |
| Constructor Summary | |
|---|---|
ParentMapping()
|
|
| Method Summary | |
|---|---|
boolean |
canBeCollectionWrapped()
Returns true if this object mapping can be wrapped
with a Collection or an Array. |
boolean |
controlsObjectNullability()
Returns true if the Mapping controlls the fact that if it has no value, it's
parent might be a candidate for being nullable. |
Mapping |
copy()
Copies over the mapping definition into a newly instanciated Mapping object. |
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. |
void |
setCascades(CascadeMapping.Cascade[] cascades)
Sets the cascade mapping definitions. |
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. |
| Methods inherited from class org.compass.core.mapping.osem.AbstractAccessorMapping |
|---|
copy, getAccessor, getDefinedInAlias, getGetter, getPropertyName, getSetter, hasAccessors, setAccessor, setDefinedInAlias, setGetter, setPropertyName, setSetter |
| Methods inherited from class org.compass.core.mapping.support.AbstractMapping |
|---|
copy, getConverter, getConverterName, getName, getPath, setConverter, setConverterName, setName, setPath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.compass.core.mapping.Mapping |
|---|
getConverter, getConverterName, getName, getPath |
| Methods inherited from interface org.compass.core.mapping.Mapping |
|---|
getConverter, getConverterName, getName, getPath |
| Methods inherited from interface org.compass.core.mapping.internal.InternalMapping |
|---|
setConverter, setConverterName, setName, setPath |
| Methods inherited from interface org.compass.core.mapping.Mapping |
|---|
getConverter, getConverterName, getName, getPath |
| Constructor Detail |
|---|
public ParentMapping()
| Method Detail |
|---|
public Mapping copy()
Mapping
copy in interface Mappingpublic boolean canBeCollectionWrapped()
ObjectMappingtrue if this object mapping can be wrapped
with a Collection or an Array.
canBeCollectionWrapped in interface ObjectMappingpublic boolean controlsObjectNullability()
Mappingtrue if the Mapping controlls the fact that if it has no value, it's
parent might be a candidate for being nullable.
controlsObjectNullability in interface MappingcontrolsObjectNullability in class AbstractMappingpublic CascadeMapping.Cascade[] getCascades()
CascadeMapping
getCascades in interface CascadeMappingpublic void setCascades(CascadeMapping.Cascade[] cascades)
InternalCascadeMapping
setCascades in interface InternalCascadeMapping
public Object getCascadeValue(Object root)
throws CompassException
CascadeMapping
getCascadeValue in interface CascadeMappingroot - The root object to extract the cascaded value from
CompassExceptionpublic boolean shouldCascadeDelete()
CascadeMappingtrue if cascading should be performed for delete
operations.
shouldCascadeDelete in interface CascadeMappingpublic boolean shouldCascadeCreate()
CascadeMappingtrue if cascading should be performed for create
operations.
shouldCascadeCreate in interface CascadeMappingpublic boolean shouldCascadeSave()
CascadeMappingtrue if cascading should be performed for save
operations.
shouldCascadeSave in interface CascadeMappingpublic boolean shouldCascade(CascadeMapping.Cascade cascade)
CascadeMappingtrue if cascading should be performed for the
cascade parameter.
shouldCascade in interface CascadeMapping
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||