org.compass.gps.device.jdbc.mapping
Class AbstractColumnToPropertyMapping

java.lang.Object
  extended by org.compass.gps.device.jdbc.mapping.AbstractColumnMapping
      extended by org.compass.gps.device.jdbc.mapping.AbstractColumnToPropertyMapping
All Implemented Interfaces:
ColumnMapping, ColumnToPropertyMapping
Direct Known Subclasses:
AbstractConstantColumnToPropertyMapping, DataColumnToPropertyMapping

public abstract class AbstractColumnToPropertyMapping
extends AbstractColumnMapping
implements ColumnToPropertyMapping

A helper base class for mappings from a jdbc column to a Compass Property. Holds the property name that the column maps to.

Author:
kimchy

Constructor Summary
AbstractColumnToPropertyMapping()
           
AbstractColumnToPropertyMapping(int columnIndex, String propertyName)
           
AbstractColumnToPropertyMapping(String columnName, String propertyName)
           
 
Method Summary
 String getAnalyzer()
          The analyzer that will be used to analyzer this property.
 String getConverter()
          Returns the converter lookup name that will be used to convert this property.
 ExcludeFromAll getExcludeFromAll()
          Should this property be excluded from the all property.
 String getPropertyName()
          Returns the Resource property name.
 void setAnalyzer(String analyzer)
           
 void setConverter(String converter)
           
 void setExcludeFromAll(String excludeFromAll)
           
 void setPropertyName(String property)
          Sets the Resource property name
 String toString()
           
 
Methods inherited from class org.compass.gps.device.jdbc.mapping.AbstractColumnMapping
getColumnIndex, getColumnName, isUsingColumnIndex, setColumnIndex, setColumnName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.compass.gps.device.jdbc.mapping.ColumnToPropertyMapping
getBoost, getPropertyIndex, getPropertyStore, getPropertyTermVector
 
Methods inherited from interface org.compass.gps.device.jdbc.mapping.ColumnMapping
getColumnIndex, getColumnName, isUsingColumnIndex
 

Constructor Detail

AbstractColumnToPropertyMapping

public AbstractColumnToPropertyMapping()

AbstractColumnToPropertyMapping

public AbstractColumnToPropertyMapping(String columnName,
                                       String propertyName)

AbstractColumnToPropertyMapping

public AbstractColumnToPropertyMapping(int columnIndex,
                                       String propertyName)
Method Detail

getPropertyName

public String getPropertyName()
Description copied from interface: ColumnToPropertyMapping
Returns the Resource property name.

Specified by:
getPropertyName in interface ColumnToPropertyMapping
Returns:
the proeprty name.

setPropertyName

public void setPropertyName(String property)
Description copied from interface: ColumnToPropertyMapping
Sets the Resource property name

Specified by:
setPropertyName in interface ColumnToPropertyMapping

getExcludeFromAll

public ExcludeFromAll getExcludeFromAll()
Description copied from interface: ColumnToPropertyMapping
Should this property be excluded from the all property.

Specified by:
getExcludeFromAll in interface ColumnToPropertyMapping

setExcludeFromAll

public void setExcludeFromAll(String excludeFromAll)

getAnalyzer

public String getAnalyzer()
Description copied from interface: ColumnToPropertyMapping
The analyzer that will be used to analyzer this property.

Specified by:
getAnalyzer in interface ColumnToPropertyMapping

setAnalyzer

public void setAnalyzer(String analyzer)

getConverter

public String getConverter()
Description copied from interface: ColumnToPropertyMapping
Returns the converter lookup name that will be used to convert this property.

Specified by:
getConverter in interface ColumnToPropertyMapping

setConverter

public void setConverter(String converter)

toString

public String toString()
Overrides:
toString in class AbstractColumnMapping


Copyright (c) 2004-2009 The Compass Project.