public class TableDocumentITable
extends es.unex.sextante.dataObjects.AbstractTable
Constructor and Description |
---|
TableDocumentITable() |
Modifier and Type | Method and Description |
---|---|
void |
addRecord(java.lang.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(java.lang.String sName,
java.lang.String sFilename,
java.lang.Class<?>[] types,
java.lang.String[] sFields) |
void |
create(TableDocument table) |
void |
free()
This method deallocates memory used by the data object.
|
java.lang.Object |
getBaseDataObject()
Returns the base data object (i.e. the object that this class wraps, which contains the data itself)
|
FeatureStore |
getFeatureStore() |
int |
getFieldCount()
Returns the total number of fields
|
java.lang.String |
getFieldName(int i)
Returns the name of a field
|
java.lang.Class<?> |
getFieldType(int i)
Returns the data type of a field
|
java.lang.String |
getFilename() |
java.lang.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(java.lang.String name)
Sets a new name for this object
|
public java.lang.String getName()
es.unex.sextante.dataObjects.IDataObject
public void create(TableDocument table)
public FeatureStore getFeatureStore()
getFeatureStore
in interface es.unex.sextante.dataObjects.ITable
getFeatureStore
in class es.unex.sextante.dataObjects.AbstractTable
public void create(java.lang.String sName, java.lang.String sFilename, java.lang.Class<?>[] types, java.lang.String[] sFields)
public void addRecord(java.lang.Object[] record)
es.unex.sextante.dataObjects.ITable
record
- the values of the recordpublic es.unex.sextante.dataObjects.IRecordsetIterator iterator()
es.unex.sextante.dataObjects.ITable
public java.lang.String getFieldName(int i)
es.unex.sextante.dataObjects.ITable
i
- the field. zero-basedpublic java.lang.Class<?> getFieldType(int i)
es.unex.sextante.dataObjects.ITable
i
- the field. zero-basedpublic int getFieldCount()
es.unex.sextante.dataObjects.ITable
public long getRecordCount()
es.unex.sextante.dataObjects.ITable
public void postProcess()
es.unex.sextante.dataObjects.IDataObject
public void open()
es.unex.sextante.dataObjects.IDataObject
public void close()
es.unex.sextante.dataObjects.IDataObject
public java.lang.String getFilename()
public void setName(java.lang.String name)
es.unex.sextante.dataObjects.IDataObject
name
- the new namepublic java.lang.Object getBaseDataObject()
es.unex.sextante.dataObjects.IDataObject
public void free()
es.unex.sextante.dataObjects.IDataObject
public es.unex.sextante.outputs.IOutputChannel getOutputChannel()
es.unex.sextante.dataObjects.IDataObject