org.compass.core.mapping.osem
Class ReferenceMapping

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.ReferenceMapping
All Implemented Interfaces:
Mapping, HasRefAliasMapping, ObjectMapping, OverrideByNameMapping

public class ReferenceMapping
extends AbstractRefAliasMapping
implements OverrideByNameMapping, HasRefAliasMapping

Author:
kimchy

Constructor Summary
ReferenceMapping()
           
 
Method Summary
 boolean canBeCollectionWrapped()
           
 Mapping copy()
          Copies over the mapping definition into a newly instanciated Mapping object.
protected  void copy(ReferenceMapping copy)
           
 String getRefCompAlias()
           
 ClassMapping getRefCompMapping()
           
 boolean isOverrideByName()
           
 void setOverrideByName(boolean overrideByName)
           
 void setRefCompAlias(String refCompAlias)
           
 void setRefCompMapping(ClassMapping refCompMapping)
           
 
Methods inherited from class org.compass.core.mapping.osem.AbstractRefAliasMapping
copy, getRefAlias, getRefClass, getRefClassMapping, setRefAlias, setRefClass, setRefClassMapping
 
Methods inherited from class org.compass.core.mapping.osem.AbstractAccessorMapping
copy, getAccessor, getGetter, getObjClass, getPropertyName, getSetter, setAccessor, setGetter, setObjClass, 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
getRefAlias, getRefClass, getRefClassMapping, setRefAlias, setRefClass, setRefClassMapping
 
Methods inherited from interface org.compass.core.mapping.osem.ObjectMapping
getAccessor, getGetter, getObjClass, getPropertyName, getSetter, setAccessor, setGetter, setObjClass, 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()
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

getRefCompAlias

public String getRefCompAlias()

setRefCompAlias

public void setRefCompAlias(String refCompAlias)

getRefCompMapping

public ClassMapping getRefCompMapping()

setRefCompMapping

public void setRefCompMapping(ClassMapping refCompMapping)


Copyright (c) 2004-2006 The Compass Project.