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

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

public abstract class AbstractConstantColumnToPropertyMapping
extends AbstractColumnToPropertyMapping

A helper base class which has all the property options as constants and immutables except for the property name.

The PropertyIndex is Property.Index.UN_TOKENIZED. the PropertyStore is Property.Store.YES, the PropertyTermVector is Property.TermVector.NO and the Boost is 1.0f.

Author:
kimchy

Constructor Summary
AbstractConstantColumnToPropertyMapping()
           
AbstractConstantColumnToPropertyMapping(int columnIndex, String propertyName)
           
AbstractConstantColumnToPropertyMapping(String columnName, String propertyName)
           
 
Method Summary
 float getBoost()
          Returns the property boost level.
 Property.Index getPropertyIndex()
          Returns the property index option.
 Property.Store getPropertyStore()
          Returns the property store option.
 Property.TermVector getPropertyTermVector()
          Returns the property termVector option.
 
Methods inherited from class org.compass.gps.device.jdbc.mapping.AbstractColumnToPropertyMapping
getAnalyzer, getConverter, getPropertyName, isExcludeFromAll, setAnalyzer, setConverter, setExcludeFromAll, setPropertyName, 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.ColumnMapping
getColumnIndex, getColumnName, isUsingColumnIndex
 

Constructor Detail

AbstractConstantColumnToPropertyMapping

public AbstractConstantColumnToPropertyMapping()

AbstractConstantColumnToPropertyMapping

public AbstractConstantColumnToPropertyMapping(String columnName,
                                               String propertyName)

AbstractConstantColumnToPropertyMapping

public AbstractConstantColumnToPropertyMapping(int columnIndex,
                                               String propertyName)
Method Detail

getPropertyIndex

public Property.Index getPropertyIndex()
Description copied from interface: ColumnToPropertyMapping
Returns the property index option.


getPropertyStore

public Property.Store getPropertyStore()
Description copied from interface: ColumnToPropertyMapping
Returns the property store option.


getPropertyTermVector

public Property.TermVector getPropertyTermVector()
Description copied from interface: ColumnToPropertyMapping
Returns the property termVector option.


getBoost

public float getBoost()
Description copied from interface: ColumnToPropertyMapping
Returns the property boost level.



Copyright (c) 2004-2008 The Compass Project.