public class TableDocumentITable
extends es.unex.sextante.dataObjects.AbstractTable
| Constructor and Description |
|---|
TableDocumentITable() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRecord(Object[] record)
adds a new record to the table
|
void |
close()
This method closes the data object, which was opened using the open() method.
|
void |
create(String sName,
String sFilename,
Class<?>[] types,
String[] sFields) |
void |
create(TableDocument table) |
void |
free()
This method deallocates memory used by the data object.
|
Object |
getBaseDataObject()
Returns the base data object (i.e. the object that this class wraps, which contains the data itself)
|
int |
getFieldCount()
Returns the total number of fields
|
String |
getFieldName(int i)
Returns the name of a field
|
Class<?> |
getFieldType(int i)
Returns the data type of a field
|
String |
getFilename() |
String |
getName()
Returns the name of this data object
|
es.unex.sextante.outputs.IOutputChannel |
getOutputChannel()
Returns the channel associated to this data object.
|
long |
getRecordCount()
Returns the total number of records(rows) in the table
|
es.unex.sextante.dataObjects.IRecordsetIterator |
iterator()
Returns an iterator to iterate the table
|
void |
open()
This methods initialize the data object, so it is ready to be accessed
|
void |
postProcess()
This method post-processes the object after it has been created.
|
void |
setName(String name)
Sets a new name for this object
|
public String getName()
es.unex.sextante.dataObjects.IDataObjectpublic void create(TableDocument table)
public void addRecord(Object[] record)
es.unex.sextante.dataObjects.ITablerecord - the values of the recordpublic es.unex.sextante.dataObjects.IRecordsetIterator iterator()
es.unex.sextante.dataObjects.ITablepublic String getFieldName(int i)
es.unex.sextante.dataObjects.ITablei - the field. zero-basedpublic Class<?> getFieldType(int i)
es.unex.sextante.dataObjects.ITablei - the field. zero-basedpublic int getFieldCount()
es.unex.sextante.dataObjects.ITablepublic long getRecordCount()
es.unex.sextante.dataObjects.ITablepublic void postProcess()
es.unex.sextante.dataObjects.IDataObjectpublic void open()
es.unex.sextante.dataObjects.IDataObjectpublic void close()
es.unex.sextante.dataObjects.IDataObjectpublic String getFilename()
public void setName(String name)
es.unex.sextante.dataObjects.IDataObjectname - the new namepublic Object getBaseDataObject()
es.unex.sextante.dataObjects.IDataObjectpublic void free()
es.unex.sextante.dataObjects.IDataObjectpublic es.unex.sextante.outputs.IOutputChannel getOutputChannel()
es.unex.sextante.dataObjects.IDataObject