org.compass.core.mapping.osem
Interface ObjectMapping

All Superinterfaces:
Mapping, OsemMapping
All Known Subinterfaces:
InternalObjectMapping, InternalRefAliasObjectMapping, RefAliasObjectMapping
All Known Implementing Classes:
AbstractAccessorMapping, AbstractAccessorMultipleMapping, AbstractCollectionMapping, AbstractRefAliasMapping, ArrayMapping, ClassBoostPropertyMapping, ClassDynamicPropertyMapping, 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()
          Returns the getter of the property.
 String getPropertyName()
          Returns the class property name of the object mapping.
 Setter getSetter()
          Returns the setter of the proeprty.
 
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
 

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.


getPropertyName

String getPropertyName()
Returns 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.


getGetter

Getter getGetter()
Returns the getter of the property.


getSetter

Setter getSetter()
Returns the setter of the proeprty.


canBeCollectionWrapped

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



Copyright (c) 2004-2009 The Compass Project.