|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.jdc.lang.Object
|
+--com.jdc.lang.SerializableObject
|
+--com.jdc.rdb.Table
A default implementation of Table. All application database
table classes should subclass this database Table class or one
of its subclasses.
Table is defined by its attributes. The following are
attributes of database tables:
com.jdc.rdb.tbl.Columns - The database table columns.
com.jdc.rdb.tbl.Column,
Serialized Form| Field Summary |
| Fields inherited from class com.jdc.lang.Object |
string |
| Constructor Summary | |
protected |
Table(String name,
String alias,
Column[] columns,
Column[] primaryKeys)
Constructs a new database table Table object for the specified
database table name, alias, column definitions, and primary key columns. |
protected |
Table(String name,
String alias,
Column[] columns,
Column[][] keys)
Constructs a new database table Table object for the specified
database table name, alias, column definitions, and primary and
secondary key columns. |
| Method Summary | |
boolean |
equals(Object object)
Compares this Table object to the specified object. |
protected void |
finalize()
cleans up system resources. |
String |
getAlias()
Returns the database table alias. |
Column |
getColumn(String name)
Returns the database table Column definition for a specified table
column name (or table column alias). |
Column[] |
getColumns()
Returns the database table Column definitions. |
Column[][] |
getKeyColumns()
Returns the database table key Column definitions. |
String |
getName()
Returns the database table name. |
abstract Schema |
getSchema()
Returns the database table Schema. |
int |
hashCode()
Returns a hash code value for this Table object. |
String |
toString()
Returns a String representing this Table object. |
| Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected Table(String name,
String alias,
Column[] columns,
Column[] primaryKeys)
Table object for the specified
database table name, alias, column definitions, and primary key columns.
protected Table(String name,
String alias,
Column[] columns,
Column[][] keys)
Table object for the specified
database table name, alias, column definitions, and primary and
secondary key columns.
| Method Detail |
public boolean equals(Object object)
Table object to the specified object. Returns
true if the specified object is equivalent to this table object.
equals in class ObjectTrue if a specified object is equal to this table object. False if the specified object is not equal to this table object.hashCode()protected void finalize()
finalize in class Objectpublic String getAlias()
getAlias in interface Tablepublic Column getColumn(String name)
TableColumn definition for a specified table
column name (or table column alias).
getColumn in interface TableColumn definition.public Column[] getColumns()
TableColumn definitions.
getColumns in interface TableColumn definitions.public Column[][] getKeyColumns()
TableColumn definitions.
getKeyColumns in interface TableColumn definitions.public String getName()
Table
getName in interface Tablepublic abstract Schema getSchema()
TableSchema.
getSchema in interface TableSchema.public int hashCode()
Table object. This
method is supported for the benefit of hashtables such as those provided
by Hashtable.
hashCode in class Objectequals(java.lang.Object)public String toString()
String representing this Table object.
toString in class ObjectString representing this Table object.
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||