org.compass.core.mapping.osem
Class AbstractAccessorMapping

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

public abstract class AbstractAccessorMapping
extends AbstractMapping
implements InternalObjectMapping

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()
          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.
 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)
          Sests the getter for the property.
 void setPropertyName(String propertyName)
          Sets the class property name of the object mapping.
 void setSetter(Setter setter)
          Sets the setter for the property.
 
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.osem.ObjectMapping
canBeCollectionWrapped
 
Methods inherited from interface org.compass.core.mapping.Mapping
controlsObjectNullability, copy, getConverter, getConverterName, getName, getPath
 
Methods inherited from interface org.compass.core.mapping.Mapping
controlsObjectNullability, copy, 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, copy, getConverter, getConverterName, getName, getPath
 

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()
Description copied from interface: ObjectMapping
Returns the getter of the property.

Specified by:
getGetter in interface ObjectMapping

setGetter

public void setGetter(Getter getter)
Description copied from interface: InternalObjectMapping
Sests the getter for the property.

Specified by:
setGetter in interface InternalObjectMapping

getSetter

public Setter getSetter()
Description copied from interface: ObjectMapping
Returns the setter of the proeprty.

Specified by:
getSetter in interface ObjectMapping

setSetter

public void setSetter(Setter setter)
Description copied from interface: InternalObjectMapping
Sets the setter for the property.

Specified by:
setSetter in interface InternalObjectMapping

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: InternalObjectMapping
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 InternalObjectMapping

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: InternalObjectMapping
Sets the class property name of the object mapping.

Specified by:
setPropertyName in interface InternalObjectMapping

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: InternalObjectMapping
Sets which alias (or if not present, the FQN of the class name) this object property is defined at.

Specified by:
setDefinedInAlias in interface InternalObjectMapping


Copyright (c) 2004-2009 The Compass Project.