org.compass.core.mapping.osem
Class ComponentMapping

java.lang.Object
  extended by org.compass.core.mapping.AbstractMapping
      extended by org.compass.core.mapping.osem.AbstractAccessorMapping
          extended by org.compass.core.mapping.osem.AbstractRefAliasMapping
              extended by org.compass.core.mapping.osem.ComponentMapping
All Implemented Interfaces:
CascadeMapping, Mapping, HasRefAliasMapping, ObjectMapping, OsemMapping, OverrideByNameMapping
Direct Known Subclasses:
IdComponentMapping

public class ComponentMapping
extends AbstractRefAliasMapping
implements OverrideByNameMapping, HasRefAliasMapping

Author:
kimchy

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.compass.core.mapping.CascadeMapping
CascadeMapping.Cascade
 
Constructor Summary
ComponentMapping()
           
 
Method Summary
 boolean canBeCollectionWrapped()
          Returns true if this object mapping can be wrapped with a Collection or an Array.
 Mapping copy()
          Copies over the mapping definition into a newly instanciated Mapping object.
protected  void copy(ComponentMapping componentMapping)
           
 int getMaxDepth()
           
 boolean isOverrideByName()
           
 void setMaxDepth(int maxDepth)
           
 void setOverrideByName(boolean overrideByName)
           
 
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 org.compass.core.mapping.AbstractMapping
controlsObjectNullability, 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.osem.HasRefAliasMapping
getRefAliases, getRefClass, getRefClassMapping, getRefClassMappings, hasAtLeastOneRefAlias, hasRefAlias, setRefAliases, setRefClass, setRefClassMappings
 
Methods inherited from interface org.compass.core.mapping.osem.ObjectMapping
getAccessor, getDefinedInAlias, getGetter, getPropertyName, getSetter, setAccessor, setDefinedInAlias, setGetter, setPropertyName, setSetter
 
Methods inherited from interface org.compass.core.mapping.osem.OsemMapping
hasAccessors
 

Constructor Detail

ComponentMapping

public ComponentMapping()
Method Detail

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()
Specified by:
isOverrideByName in interface OverrideByNameMapping

setOverrideByName

public void setOverrideByName(boolean overrideByName)
Specified by:
setOverrideByName in interface OverrideByNameMapping

getMaxDepth

public int getMaxDepth()

setMaxDepth

public void setMaxDepth(int maxDepth)


Copyright (c) 2004-2008 The Compass Project.