org.compass.gps.device.jdbc.mapping
Interface ColumnMapping

All Known Subinterfaces:
ColumnToPropertyMapping
All Known Implementing Classes:
AbstractColumnMapping, AbstractColumnToPropertyMapping, AbstractConstantColumnToPropertyMapping, DataColumnToPropertyMapping, IdColumnToPropertyMapping, VersionColumnMapping

public interface ColumnMapping

A general interface for a jdbc column mapping. Holds the column index OR the column name.

Author:
kimchy

Method Summary
 int getColumnIndex()
          Returns the column index.
 String getColumnName()
          Returns the column name.
 boolean isUsingColumnIndex()
          Returns true if using the column index to map the column, false if using the column name.
 

Method Detail

getColumnName

String getColumnName()
Returns the column name.

Returns:
The column name.

getColumnIndex

int getColumnIndex()
Returns the column index.

Returns:
The column index.

isUsingColumnIndex

boolean isUsingColumnIndex()
Returns true if using the column index to map the column, false if using the column name.

Returns:
If using colum index (otherwise using column name).


Copyright (c) 2004-2008 The Compass Project.