|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjimm.datavision.source.Table
public class Table
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.
Column,
DataSource| Field Summary | |
|---|---|
protected java.util.TreeMap |
columns
|
protected DataSource |
dataSource
|
protected java.lang.String |
name
|
| Constructor Summary | |
|---|---|
Table(DataSource dataSource,
java.lang.String name)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addColumn(Column col)
Adds a column to the collection, using the column's id as the key. |
java.util.Iterator |
columns()
Returns an iterator over the columns in this table. |
Column |
findColumn(java.lang.Object id)
Given a column id, returns the column that has that id. |
java.lang.Object |
getId()
Returns the table id. |
java.lang.String |
getName()
Returns the table name. |
void |
setName(java.lang.String name)
A table's name is immutable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DataSource dataSource
protected java.lang.String name
protected java.util.TreeMap columns
| Constructor Detail |
|---|
public Table(DataSource dataSource,
java.lang.String name)
dataSource - the data source in which this table residesname - the table's name| Method Detail |
|---|
public Column findColumn(java.lang.Object id)
null.
null if no column with the specified
id existspublic java.lang.Object getId()
getId in interface Identitypublic java.lang.String getName()
getName in interface Nameablepublic void setName(java.lang.String name)
setName in interface Nameablename - the new namepublic void addColumn(Column col)
col - a columnpublic java.util.Iterator columns()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||