es.unex.sextante.dataObjects
Class AbstractTable

java.lang.Object
  extended by es.unex.sextante.dataObjects.AbstractTable
All Implemented Interfaces:
IDataObject, ITable

public abstract class AbstractTable
extends java.lang.Object
implements ITable

A convenience class which implements some of the methods of the ITable interface. Extending this class is recommended instead of implementing the interface directly

Author:
volaya

Constructor Summary
AbstractTable()
           
 
Method Summary
 java.lang.Object getBaseDataObject()
          Returns the base data object (i.e. the object that this class wraps, which contains the data itself)
 int getFieldIndexByName(java.lang.String sFieldName)
          Returns the index of a field from its name.
 java.lang.String[] getFieldNames()
          Returns an array with the names of all the fields in the table
 java.lang.Class[] getFieldTypes()
          Returns an array with data types of all the fields in the table
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface es.unex.sextante.dataObjects.ITable
addRecord, getFieldCount, getFieldName, getFieldType, getRecordCount, iterator
 
Methods inherited from interface es.unex.sextante.dataObjects.IDataObject
close, getFilename, getName, open, postProcess, setName
 

Constructor Detail

AbstractTable

public AbstractTable()
Method Detail

getBaseDataObject

public java.lang.Object getBaseDataObject()
Description copied from interface: IDataObject
Returns the base data object (i.e. the object that this class wraps, which contains the data itself)

Specified by:
getBaseDataObject in interface IDataObject
Returns:
the base data object

getFieldNames

public java.lang.String[] getFieldNames()
Description copied from interface: ITable
Returns an array with the names of all the fields in the table

Specified by:
getFieldNames in interface ITable
Returns:
an array with the names of all the fields in the table

getFieldTypes

public java.lang.Class[] getFieldTypes()
Description copied from interface: ITable
Returns an array with data types of all the fields in the table

Specified by:
getFieldTypes in interface ITable
Returns:
an array with data types of all the fields in the table

getFieldIndexByName

public int getFieldIndexByName(java.lang.String sFieldName)
Description copied from interface: ITable
Returns the index of a field from its name. Returns -1 if there is not a field with that name.

Specified by:
getFieldIndexByName in interface ITable
Parameters:
sFieldName - the name of the field
Returns:
the index of the given field

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object