org.compass.core.mapping.osem
Class ClassIdPropertyMapping

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
                  extended by org.compass.core.mapping.osem.ClassIdPropertyMapping
All Implemented Interfaces:
Mapping, MultipleMapping, ObjectMapping, OsemMapping, OverrideByNameMapping, ResourceIdMappingProvider

public class ClassIdPropertyMapping
extends ClassPropertyMapping
implements ResourceIdMappingProvider

Author:
kimchy

Nested Class Summary
 
Nested classes/interfaces inherited from class org.compass.core.mapping.osem.ClassPropertyMapping
ClassPropertyMapping.ManagedId
 
Field Summary
 
Fields inherited from class org.compass.core.mapping.AbstractMultipleMapping
mappings, mappingsByNameMap
 
Constructor Summary
ClassIdPropertyMapping()
           
 
Method Summary
 Mapping copy()
          Copies over the mapping definition into a newly instanciated Mapping object.
 Mapping[] getIdMappings()
           
 Property.Index getManagedIdIndex()
          The id of the class property id must be UN_TOKENIZED so we will be able to look it up.
 ResourcePropertyMapping[] getResourceIdMappings()
           
 
Methods inherited from class org.compass.core.mapping.osem.ClassPropertyMapping
canBeCollectionWrapped, copy, getAccessor, getAnalyzer, getBoost, getClassName, getColClassName, getDefinedInAlias, getExcludeFromAll, getIdMapping, getIdPropertyIndex, getManagedId, getManagedIdConverter, getManagedIdConverterName, getPropertyName, isIdPropertySet, isOverrideByName, setAccessor, setAnalyzer, setBoost, setClassName, setColClassName, setDefinedInAlias, setExcludeFromAll, setIdPropertyIndex, setManagedId, setManagedIdConverter, setManagedIdConverterName, setManagedIdIndex, setOverrideByName, setPropertyName
 
Methods inherited from class org.compass.core.mapping.osem.AbstractAccessorMultipleMapping
copy, getGetter, getSetter, hasAccessors, setGetter, setSetter
 
Methods inherited from class org.compass.core.mapping.AbstractMultipleMapping
addMapping, addMappings, clearMappings, copy, getMapping, getMapping, mappingsIt, mappingsSize, removeExistingByName, replaceMappings, 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

ClassIdPropertyMapping

public ClassIdPropertyMapping()
Method Detail

getIdMappings

public Mapping[] getIdMappings()
Specified by:
getIdMappings in interface ResourceIdMappingProvider

getResourceIdMappings

public ResourcePropertyMapping[] getResourceIdMappings()
Specified by:
getResourceIdMappings in interface ResourceIdMappingProvider

getManagedIdIndex

public Property.Index getManagedIdIndex()
The id of the class property id must be UN_TOKENIZED so we will be able to look it up.

Overrides:
getManagedIdIndex in class ClassPropertyMapping

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
Overrides:
copy in class ClassPropertyMapping


Copyright (c) 2004-2008 The Compass Project.