org.compass.core.mapping.osem
Class ComponentMapping
java.lang.Object
org.compass.core.mapping.support.AbstractMapping
org.compass.core.mapping.osem.AbstractAccessorMapping
org.compass.core.mapping.osem.AbstractRefAliasMapping
org.compass.core.mapping.osem.ComponentMapping
- All Implemented Interfaces:
- CascadeMapping, InternalCascadeMapping, InternalMapping, InternalOverrideByNameMapping, Mapping, InternalObjectMapping, InternalOsemMapping, InternalRefAliasObjectMapping, ObjectMapping, OsemMapping, RefAliasObjectMapping, OverrideByNameMapping
- Direct Known Subclasses:
- IdComponentMapping
public class ComponentMapping
- extends AbstractRefAliasMapping
- implements InternalOverrideByNameMapping, RefAliasObjectMapping
- Author:
- kimchy
| Methods inherited from class org.compass.core.mapping.osem.AbstractRefAliasMapping |
copy, getCascades, getCascadeValue, getRefAliases, getRefClass, getRefClassMapping, getRefClassMappings, hasAtLeastOneRefAlias, hasRefAlias, setCascades, setRefAliases, setRefClass, setRefClassMappings, shouldCascade, shouldCascadeCreate, shouldCascadeDelete, shouldCascadeSave |
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentMapping
public ComponentMapping()
copy
public Mapping copy()
- Description copied from interface:
Mapping
- Copies over the mapping definition into a newly instanciated Mapping object.
- Specified by:
copy in interface Mapping
copy
protected void copy(ComponentMapping componentMapping)
canBeCollectionWrapped
public boolean canBeCollectionWrapped()
- Description copied from interface:
ObjectMapping
- Returns
true if this object mapping can be wrapped
with a Collection or an Array.
- Specified by:
canBeCollectionWrapped in interface ObjectMapping
isOverrideByName
public boolean isOverrideByName()
- Description copied from interface:
OverrideByNameMapping
- Returns
true to control of this mapping overrides by name anotehr mapping
within the same multiple mapping container.
- Specified by:
isOverrideByName in interface OverrideByNameMapping
setOverrideByName
public void setOverrideByName(boolean overrideByName)
- Specified by:
setOverrideByName in interface InternalOverrideByNameMapping
getMaxDepth
public int getMaxDepth()
setMaxDepth
public void setMaxDepth(int maxDepth)
getPrefix
public String getPrefix()
setPrefix
public void setPrefix(String prefix)
Copyright (c) 2004-2008 The Compass Project.