All Packages Class Hierarchy This Package Previous Next Index
Class de.tudarmstadt.ito.xmldbms.Table
java.lang.Object
|
+----de.tudarmstadt.ito.xmldbms.Table
- public class Table
- extends Object
Describes a table; not for general
use.
Table contains information about a table. Tables are included in
TableMaps and in the array of tables in Map.
-
columns
- An array of Columns describing the columns in the table.
-
name
- The table name.
-
number
- The table number.
-
Table()
- Construct a Table.
-
Table(Column[], String, int)
- Construct a Table with the specified Columns, name, and number.
-
getColumn(String)
- Get a Column object for the named column.
-
getColumns(String[])
- Get an array of Column objects for the named columns.
columns
public Column columns[]
- An array of Columns describing the columns in the table.
name
public String name
- The table name.
number
public int number
- The table number. Table numbers are 0-based.
Table
public Table()
- Construct a Table.
Table
public Table(Column columns[],
String name,
int number)
- Construct a Table with the specified Columns, name, and number.
getColumns
public Column[] getColumns(String columnNames[]) throws InvalidMapException
- Get an array of Column objects for the named columns. Note that this
method is not efficient, performing a linear search for each column.
- Parameters:
- columnNames - Names of the columns to find. If this is null,
getColumns returns a null.
- Returns:
- An array of Column objects for the specified columns.
- Throws: InvalidMapException
- Thrown if any columns are not found.
getColumn
public Column getColumn(String columnName) throws InvalidMapException
- Get a Column object for the named column. Note that this method is not
efficient, performing a linear search for the column.
- Parameters:
- columnName - Name of the column to find. If this is null, getColumn
returns a null.
- Returns:
- Column object for the specified column.
- Throws: InvalidMapException
- Thrown if the column is not found.
All Packages Class Hierarchy This Package Previous Next Index