org.compass.core.mapping.osem
Interface ObjectMapping

All Superinterfaces:
Mapping, OsemMapping
All Known Subinterfaces:
HasRefAliasMapping
All Known Implementing Classes:
AbstractAccessorMapping, AbstractAccessorMultipleMapping, AbstractCollectionMapping, AbstractRefAliasMapping, ArrayMapping, ClassBoostPropertyMapping, ClassIdPropertyMapping, ClassPropertyAnalyzerController, ClassPropertyMapping, ClassPropertyMetaDataMapping, CollectionMapping, ComponentMapping, IdComponentMapping, ParentMapping, PlainCascadeMapping, ReferenceMapping

public interface ObjectMapping
extends OsemMapping

Author:
kimchy

Method Summary
 boolean canBeCollectionWrapped()
          Returns true if this object mapping can be wrapped with a Collection or an Array.
 String getAccessor()
          Returns the accessor type for this mapping.
 String getDefinedInAlias()
          Returns which alias (or if not present, the FQN of the class name) this object property is defined at.
 Getter getGetter()
           
 String getPropertyName()
          Returns the class property name of the object mapping.
 Setter getSetter()
           
 void setAccessor(String accessor)
          Sets the accessor type for this mapping.
 void setDefinedInAlias(String alias)
          Sets which alias (or if not present, the FQN of the class name) this object property is defined at.
 void setGetter(Getter getter)
           
 void setPropertyName(String propertyName)
          Sets the class property name of the object mapping.
 void setSetter(Setter setter)
           
 
Methods inherited from interface org.compass.core.mapping.osem.OsemMapping
hasAccessors
 
Methods inherited from interface org.compass.core.mapping.Mapping
controlsObjectNullability, copy, getConverter, getConverterName, getName, getPath, setConverter, setConverterName, setName, setPath
 

Method Detail

getAccessor

String getAccessor()
Returns the accessor type for this mapping. The accessor type can be field, property or a custom implementation of PropertyAccessor (this can be either the FQN of the class name or a regsitered type in the configuration, see PropertyAccessorFactory.


setAccessor

void setAccessor(String accessor)
Sets the accessor type for this mapping. The accessor type can be field, property or a custom implementation of PropertyAccessor (this can be either the FQN of the class name or a regsitered type in the configuration, see PropertyAccessorFactory.


getPropertyName

String getPropertyName()
Returns the class property name of the object mapping.


setPropertyName

void setPropertyName(String propertyName)
Sets the class property name of the object mapping.


getDefinedInAlias

String getDefinedInAlias()
Returns which alias (or if not present, the FQN of the class name) this object property is defined at.


setDefinedInAlias

void setDefinedInAlias(String alias)
Sets which alias (or if not present, the FQN of the class name) this object property is defined at.


getGetter

Getter getGetter()

setGetter

void setGetter(Getter getter)

getSetter

Setter getSetter()

setSetter

void setSetter(Setter setter)

canBeCollectionWrapped

boolean canBeCollectionWrapped()
Returns true if this object mapping can be wrapped with a Collection or an Array.



Copyright (c) 2004-2008 The Compass Project.