org.compass.core.mapping.osem
Class ClassPropertyMapping

java.lang.Object
  extended by org.compass.core.mapping.AbstractMapping
      extended by org.compass.core.mapping.AbstractMultipleMapping
          extended by org.compass.core.mapping.osem.AbstractAccessorMultipleMapping
              extended by org.compass.core.mapping.osem.ClassPropertyMapping
All Implemented Interfaces:
Mapping, MultipleMapping, ObjectMapping, OverrideByNameMapping
Direct Known Subclasses:
ClassIdPropertyMapping, ClassPropertyAnalyzerController

public class ClassPropertyMapping
extends AbstractAccessorMultipleMapping
implements OverrideByNameMapping

Author:
kimchy

Nested Class Summary
static class ClassPropertyMapping.ManagedId
           
 
Field Summary
 
Fields inherited from class org.compass.core.mapping.AbstractMultipleMapping
mappings, mappingsMap
 
Constructor Summary
ClassPropertyMapping()
           
 
Method Summary
 boolean canBeCollectionWrapped()
           
 Mapping copy()
          Copies over the mapping definition into a newly instanciated Mapping object.
protected  void copy(ClassPropertyMapping mapping)
           
 String getAccessor()
           
 String getAnalyzer()
           
 float getBoost()
           
 String getClassName()
           
 String getColClassName()
           
 ClassPropertyMetaDataMapping getIdMapping()
           
 int getIdPropertyIndex()
           
 ClassPropertyMapping.ManagedId getManagedId()
           
 Converter getManagedIdConverter()
           
 String getManagedIdConverterName()
           
 Property.Index getManagedIdIndex()
           
 Class getObjClass()
           
 String getPropertyName()
           
 boolean isExcludeFromAll()
           
 boolean isIdPropertySet()
           
 boolean isOverrideByName()
           
 void setAccessor(String accessor)
           
 void setAnalyzer(String analyzer)
           
 void setBoost(float boost)
           
 void setClassName(String className)
           
 void setColClassName(String colClassName)
           
 void setExcludeFromAll(boolean excludeFromAll)
           
 void setIdPropertyIndex(int idPropertyIndex)
           
 void setManagedId(ClassPropertyMapping.ManagedId managedId)
           
 void setManagedIdConverter(Converter managedIdConverter)
           
 void setManagedIdConverterName(String managedIdConverterName)
           
 void setManagedIdIndex(Property.Index managedIdIndex)
           
 void setObjClass(Class objClass)
           
 void setOverrideByName(boolean overrideByName)
           
 void setPropertyName(String propertyName)
           
 
Methods inherited from class org.compass.core.mapping.osem.AbstractAccessorMultipleMapping
copy, getGetter, getSetter, setGetter, setSetter
 
Methods inherited from class org.compass.core.mapping.AbstractMultipleMapping
addMapping, clearMappings, copy, getMapping, getMapping, mappingsIt, mappingsSize, removeExistingByName, removeExistingByPath, shallowCopy
 
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.Mapping
controlsObjectNullability, getConverter, getConverterName, getName, getPath, setConverter, setConverterName, setName, setPath
 

Constructor Detail

ClassPropertyMapping

public ClassPropertyMapping()
Method Detail

copy

protected void copy(ClassPropertyMapping mapping)

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

getIdMapping

public ClassPropertyMetaDataMapping getIdMapping()

getBoost

public float getBoost()

setBoost

public void setBoost(float boost)

getManagedId

public ClassPropertyMapping.ManagedId getManagedId()

setManagedId

public void setManagedId(ClassPropertyMapping.ManagedId managedId)

getClassName

public String getClassName()

setClassName

public void setClassName(String className)

getIdPropertyIndex

public int getIdPropertyIndex()

setIdPropertyIndex

public void setIdPropertyIndex(int idPropertyIndex)

isIdPropertySet

public boolean isIdPropertySet()

isExcludeFromAll

public boolean isExcludeFromAll()

setExcludeFromAll

public void setExcludeFromAll(boolean excludeFromAll)

getAnalyzer

public String getAnalyzer()

setAnalyzer

public void setAnalyzer(String analyzer)

isOverrideByName

public boolean isOverrideByName()
Specified by:
isOverrideByName in interface OverrideByNameMapping

setOverrideByName

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

getManagedIdIndex

public Property.Index getManagedIdIndex()

setManagedIdIndex

public void setManagedIdIndex(Property.Index managedIdIndex)

getColClassName

public String getColClassName()

setColClassName

public void setColClassName(String colClassName)

getAccessor

public String getAccessor()
Specified by:
getAccessor in interface ObjectMapping

setAccessor

public void setAccessor(String accessor)
Specified by:
setAccessor in interface ObjectMapping

getObjClass

public Class getObjClass()
Specified by:
getObjClass in interface ObjectMapping

setObjClass

public void setObjClass(Class objClass)
Specified by:
setObjClass in interface ObjectMapping

getPropertyName

public String getPropertyName()
Specified by:
getPropertyName in interface ObjectMapping

setPropertyName

public void setPropertyName(String propertyName)
Specified by:
setPropertyName in interface ObjectMapping

getManagedIdConverter

public Converter getManagedIdConverter()

setManagedIdConverter

public void setManagedIdConverter(Converter managedIdConverter)

getManagedIdConverterName

public String getManagedIdConverterName()

setManagedIdConverterName

public void setManagedIdConverterName(String managedIdConverterName)


Copyright (c) 2004-2006 The Compass Project.