com.solarmetric.kodo.impl.jdbc.schema
Class Table
java.lang.Object
|
+--com.solarmetric.kodo.impl.jdbc.schema.Table
- All Implemented Interfaces:
- Comparable
- public class Table
- extends Object
- implements Comparable
Represents a database table.
Methods inherited from class java.lang.Object |
, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Table
public Table(String name)
getName
public String getName()
getColumns
public Column[] getColumns()
addColumn
public Column addColumn(Column template)
- Creates a new column based on
template
. If a
column with the same name as template
is already
associated with this column, returns that column and makes no
changes to it.
addColumn
public Column addColumn(String name)
addColumn
public Column addColumn(String name,
int type)
removeColumn
public boolean removeColumn(Column col)
clone
public Object clone()
- Overrides:
clone
in class Object
compareTo
public int compareTo(Object other)
- Specified by:
compareTo
in interface Comparable
Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.