org.compass.core.mapping.osem
Class AbstractAccessorMapping

java.lang.Object
  extended by org.compass.core.mapping.AbstractMapping
      extended by org.compass.core.mapping.osem.AbstractAccessorMapping
All Implemented Interfaces:
Mapping, ObjectMapping, OsemMapping
Direct Known Subclasses:
AbstractCollectionMapping, AbstractRefAliasMapping, ParentMapping, PlainCascadeMapping

public abstract class AbstractAccessorMapping
extends AbstractMapping
implements ObjectMapping

Author:
kimchy

Constructor Summary
AbstractAccessorMapping()
           
 
Method Summary
protected  void copy(AbstractAccessorMapping copy)
           
 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()
           
 boolean hasAccessors()
           
 void setAccessor(String accessor)
          Sets the accessor type for this mapping.
 void setDefinedInAlias(String definedInAlias)
          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 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.osem.ObjectMapping
canBeCollectionWrapped
 
Methods inherited from interface org.compass.core.mapping.Mapping
controlsObjectNullability, copy, getConverter, getConverterName, getName, getPath, setConverter, setConverterName, setName, setPath
 

Constructor Detail

AbstractAccessorMapping

public AbstractAccessorMapping()
Method Detail

copy

protected void copy(AbstractAccessorMapping copy)

hasAccessors

public boolean hasAccessors()
Specified by:
hasAccessors in interface OsemMapping

getGetter

public Getter getGetter()
Specified by:
getGetter in interface ObjectMapping

setGetter

public void setGetter(Getter getter)
Specified by:
setGetter in interface ObjectMapping

getSetter

public Setter getSetter()
Specified by:
getSetter in interface ObjectMapping

setSetter

public void setSetter(Setter setter)
Specified by:
setSetter in interface ObjectMapping

getAccessor

public String getAccessor()
Description copied from interface: ObjectMapping
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.

Specified by:
getAccessor in interface ObjectMapping

setAccessor

public void setAccessor(String accessor)
Description copied from interface: ObjectMapping
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.

Specified by:
setAccessor in interface ObjectMapping

getPropertyName

public String getPropertyName()
Description copied from interface: ObjectMapping
Returns the class property name of the object mapping.

Specified by:
getPropertyName in interface ObjectMapping

setPropertyName

public void setPropertyName(String propertyName)
Description copied from interface: ObjectMapping
Sets the class property name of the object mapping.

Specified by:
setPropertyName in interface ObjectMapping

getDefinedInAlias

public String getDefinedInAlias()
Description copied from interface: ObjectMapping
Returns which alias (or if not present, the FQN of the class name) this object property is defined at.

Specified by:
getDefinedInAlias in interface ObjectMapping

setDefinedInAlias

public void setDefinedInAlias(String definedInAlias)
Description copied from interface: ObjectMapping
Sets which alias (or if not present, the FQN of the class name) this object property is defined at.

Specified by:
setDefinedInAlias in interface ObjectMapping


Copyright (c) 2004-2008 The Compass Project.