| java.lang.Object jimm.datavision.source.Table
All known Subclasses: jimm.datavision.source.sql.SQLTable, jimm.datavision.source.ncsql.NCTable, jimm.datavision.test.TestTable,
Table | public class Table implements Identity,Nameable(Code) | | Represents a table that contains columns. Not all data sources will
use tables. For those that don't, their columns' getTable
method will return null .
author: Jim Menard, jimm@io.com See Also: Column See Also: DataSource |
Table | public Table(DataSource dataSource, String name)(Code) | | Constructor.
Parameters: dataSource - the data source in which this table resides Parameters: name - the table's name |
addColumn | public void addColumn(Column col)(Code) | | Adds a column to the collection, using the column's id as the key.
Parameters: col - a column |
columns | public Iterator columns()(Code) | | Returns an iterator over the columns in this table.
an iterator over the columns in this table |
findColumn | public Column findColumn(Object id)(Code) | | Given a column id, returns the column that has that id. If no column
with the specified id exists, returns null .
a column, or null if no column with the specifiedid exists |
getId | public Object getId()(Code) | | Returns the table id. By default, it's the same as the table name.
the table id |
getName | public String getName()(Code) | | Returns the table name.
the table name |
setName | public void setName(String name)(Code) | | A table's name is immutable.
|
|
|