org.compass.core.mapping.osem
Class ReferenceMapping

java.lang.Object
  extended by org.compass.core.mapping.support.AbstractMapping
      extended by org.compass.core.mapping.osem.AbstractAccessorMapping
          extended by org.compass.core.mapping.osem.AbstractRefAliasMapping
              extended by org.compass.core.mapping.osem.ReferenceMapping
All Implemented Interfaces:
CascadeMapping, InternalCascadeMapping, InternalMapping, InternalOverrideByNameMapping, Mapping, InternalLazyMapping, InternalObjectMapping, InternalOsemMapping, InternalRefAliasObjectMapping, LazyMapping, ObjectMapping, OsemMapping, RefAliasObjectMapping, OverrideByNameMapping

public class ReferenceMapping
extends AbstractRefAliasMapping
implements InternalOverrideByNameMapping, RefAliasObjectMapping, InternalLazyMapping

Author:
kimchy

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.compass.core.mapping.CascadeMapping
CascadeMapping.Cascade
 
Constructor Summary
ReferenceMapping()
           
 
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(ReferenceMapping copy)
           
 String getRefCompAlias()
           
 ClassMapping getRefCompMapping()
           
 Boolean isLazy()
          Returns true if this mapping is lazy.
 boolean isOverrideByName()
          Returns true to control of this mapping overrides by name anotehr mapping within the same multiple mapping container.
 void setLazy(Boolean lazy)
          Set to true if this mapping is lazy.
 void setOverrideByName(boolean overrideByName)
           
 void setRefCompAlias(String refCompAlias)
           
 void setRefCompMapping(ClassMapping refCompMapping)
           
 
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.support.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.internal.InternalMapping
setConverter, setConverterName, setName, setPath
 
Methods inherited from interface org.compass.core.mapping.osem.RefAliasObjectMapping
getRefAliases, getRefClass, getRefClassMapping, getRefClassMappings, hasAtLeastOneRefAlias, hasRefAlias
 
Methods inherited from interface org.compass.core.mapping.osem.ObjectMapping
getAccessor, getDefinedInAlias, getGetter, getPropertyName, getSetter
 
Methods inherited from interface org.compass.core.mapping.osem.OsemMapping
hasAccessors
 
Methods inherited from interface org.compass.core.mapping.osem.internal.InternalObjectMapping
setAccessor, setDefinedInAlias, setGetter, setPropertyName, setSetter
 

Constructor Detail

ReferenceMapping

public ReferenceMapping()
Method Detail

copy

protected void copy(ReferenceMapping copy)

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

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

isLazy

public Boolean isLazy()
Description copied from interface: LazyMapping
Returns true if this mapping is lazy.

Specified by:
isLazy in interface LazyMapping

setLazy

public void setLazy(Boolean lazy)
Description copied from interface: InternalLazyMapping
Set to true if this mapping is lazy.

Specified by:
setLazy in interface InternalLazyMapping

getRefCompAlias

public String getRefCompAlias()

setRefCompAlias

public void setRefCompAlias(String refCompAlias)

getRefCompMapping

public ClassMapping getRefCompMapping()

setRefCompMapping

public void setRefCompMapping(ClassMapping refCompMapping)


Copyright (c) 2004-2008 The Compass Project.