|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITable
This is the base interface that all table objects have to implement
to be able to be used by SEXTANTE algorithms.
Instead of implementing this class directly, it is recommended to
extend AbstractTable
Method Summary | |
---|---|
void |
addRecord(java.lang.Object[] attributes)
adds a new record to the table |
int |
getFieldCount()
Returns the total number of fields |
int |
getFieldIndexByName(java.lang.String fieldName)
Returns the index of a field from its name. |
java.lang.String |
getFieldName(int i)
Returns the name of a field |
java.lang.String[] |
getFieldNames()
Returns an array with the names of all the fields in the table |
java.lang.Class |
getFieldType(int i)
Returns the data type of a field |
java.lang.Class[] |
getFieldTypes()
Returns an array with data types of all the fields in the table |
long |
getRecordCount()
Returns the total number of records(rows) in the table |
IRecordsetIterator |
iterator()
Returns an iterator to iterate the table |
Methods inherited from interface es.unex.sextante.dataObjects.IDataObject |
---|
close, getBaseDataObject, getFilename, getName, open, postProcess, setName |
Method Detail |
---|
void addRecord(java.lang.Object[] attributes)
attributes
- the values of the recordIRecordsetIterator iterator()
java.lang.String getFieldName(int i)
i
- the field. zero-based
java.lang.Class getFieldType(int i)
i
- the field. zero-based
int getFieldCount()
java.lang.Class[] getFieldTypes()
java.lang.String[] getFieldNames()
long getRecordCount()
int getFieldIndexByName(java.lang.String fieldName)
fieldName
- the name of the field
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |