|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.mapping.support.AbstractMapping
org.compass.core.mapping.support.AbstractMultipleMapping
org.compass.core.mapping.osem.AbstractAccessorMultipleMapping
org.compass.core.mapping.osem.ClassPropertyMapping
public class ClassPropertyMapping
| Nested Class Summary | |
|---|---|
static class |
ClassPropertyMapping.ManagedId
|
| Field Summary |
|---|
| Fields inherited from class org.compass.core.mapping.support.AbstractMultipleMapping |
|---|
mappings, mappingsByNameMap |
| Constructor Summary | |
|---|---|
ClassPropertyMapping()
|
|
| 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(ClassPropertyMapping mapping)
|
String |
getAccessor()
Returns the accessor type for this mapping. |
String |
getAnalyzer()
|
float |
getBoost()
|
String |
getClassName()
|
String |
getColClassName()
|
String |
getDefinedInAlias()
Returns which alias (or if not present, the FQN of the class name) this object property is defined at. |
ResourcePropertyMapping.ExcludeFromAllType |
getExcludeFromAll()
|
ClassPropertyMetaDataMapping |
getIdMapping()
|
int |
getIdPropertyIndex()
|
ClassPropertyMapping.ManagedId |
getManagedId()
|
Converter |
getManagedIdConverter()
|
String |
getManagedIdConverterName()
|
Property.Index |
getManagedIdIndex()
|
String |
getPropertyName()
Returns the class property name of the object mapping. |
boolean |
isIdPropertySet()
|
boolean |
isOverrideByName()
Returns true to control of this mapping overrides by name anotehr mapping
within the same multiple mapping container. |
boolean |
requiresIdProcessing()
Returns if the mapping must have id processing performed on it (even, for example, when support unmarshall is set to false). |
void |
setAccessor(String accessor)
Sets the accessor type for this mapping. |
void |
setAnalyzer(String analyzer)
|
void |
setBoost(float boost)
|
void |
setClassName(String className)
|
void |
setColClassName(String colClassName)
|
void |
setDefinedInAlias(String definedInAlias)
Sets which alias (or if not present, the FQN of the class name) this object property is defined at. |
void |
setExcludeFromAll(ResourcePropertyMapping.ExcludeFromAllType excludeFromAll)
|
void |
setIdPropertyIndex(int idPropertyIndex)
|
void |
setManagedId(ClassPropertyMapping.ManagedId managedId)
|
void |
setManagedIdConverter(Converter managedIdConverter)
|
void |
setManagedIdConverterName(String managedIdConverterName)
|
void |
setManagedIdIndex(Property.Index managedIdIndex)
|
void |
setOverrideByName(boolean overrideByName)
|
void |
setPropertyName(String propertyName)
Sets the class property name of the object mapping. |
| Methods inherited from class org.compass.core.mapping.osem.AbstractAccessorMultipleMapping |
|---|
copy, getGetter, getSetter, hasAccessors, setGetter, setSetter |
| Methods inherited from class org.compass.core.mapping.support.AbstractMultipleMapping |
|---|
addMapping, addMappings, clearMappings, copy, getMapping, getMapping, mappingsIt, mappingsSize, removeExistingByName, replaceMappings, shallowCopy |
| 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.Mapping |
|---|
controlsObjectNullability, getConverter, getConverterName, getName, getPath |
| Methods inherited from interface org.compass.core.mapping.internal.InternalMapping |
|---|
setConverter, setConverterName, setName, setPath |
| Methods inherited from interface org.compass.core.mapping.Mapping |
|---|
controlsObjectNullability, getConverter, getConverterName, getName, getPath |
| Constructor Detail |
|---|
public ClassPropertyMapping()
| Method Detail |
|---|
protected void copy(ClassPropertyMapping mapping)
public Mapping copy()
Mapping
copy in interface Mappingpublic boolean canBeCollectionWrapped()
ObjectMappingtrue if this object mapping can be wrapped
with a Collection or an Array.
canBeCollectionWrapped in interface ObjectMappingpublic ClassPropertyMetaDataMapping getIdMapping()
public float getBoost()
public void setBoost(float boost)
public ClassPropertyMapping.ManagedId getManagedId()
public void setManagedId(ClassPropertyMapping.ManagedId managedId)
public String getClassName()
public void setClassName(String className)
public int getIdPropertyIndex()
public void setIdPropertyIndex(int idPropertyIndex)
public boolean isIdPropertySet()
public ResourcePropertyMapping.ExcludeFromAllType getExcludeFromAll()
public void setExcludeFromAll(ResourcePropertyMapping.ExcludeFromAllType excludeFromAll)
public String getAnalyzer()
public void setAnalyzer(String analyzer)
public boolean isOverrideByName()
OverrideByNameMappingtrue to control of this mapping overrides by name anotehr mapping
within the same multiple mapping container.
isOverrideByName in interface OverrideByNameMappingpublic void setOverrideByName(boolean overrideByName)
setOverrideByName in interface InternalOverrideByNameMappingpublic Property.Index getManagedIdIndex()
public void setManagedIdIndex(Property.Index managedIdIndex)
public String getColClassName()
public void setColClassName(String colClassName)
public String getAccessor()
ObjectMappingPropertyAccessor
(this can be either the FQN of the class name or a regsitered type in the configuration, see
PropertyAccessorFactory.
getAccessor in interface ObjectMappingpublic void setAccessor(String accessor)
InternalObjectMappingPropertyAccessor
(this can be either the FQN of the class name or a regsitered type in the configuration, see
PropertyAccessorFactory.
setAccessor in interface InternalObjectMappingpublic String getPropertyName()
ObjectMapping
getPropertyName in interface ObjectMappingpublic void setPropertyName(String propertyName)
InternalObjectMapping
setPropertyName in interface InternalObjectMappingpublic Converter getManagedIdConverter()
public void setManagedIdConverter(Converter managedIdConverter)
public String getManagedIdConverterName()
public void setManagedIdConverterName(String managedIdConverterName)
public String getDefinedInAlias()
ObjectMapping
getDefinedInAlias in interface ObjectMappingpublic void setDefinedInAlias(String definedInAlias)
InternalObjectMapping
setDefinedInAlias in interface InternalObjectMappingpublic boolean requiresIdProcessing()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||