|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kodo.jdbc.schema.NameSet | +--kodo.jdbc.schema.Table
Represents a database table.
Constructor Summary | |
Table()
Default constructor. |
|
Table(String name,
Schema schema)
Constructor. |
Method Summary | |
Column |
addColumn(String name)
Add a column to the table. |
ForeignKey |
addForeignKey()
Add a foreign key to the table. |
ForeignKey |
addForeignKey(String name)
Add a foreign key to the table. |
Index |
addIndex(String name)
Add an index to the table. |
PrimaryKey |
addPrimaryKey()
Set the primary key for the table. |
PrimaryKey |
addPrimaryKey(String name)
Set the primary key for the table. |
int |
compareTo(Object other)
|
Column[] |
getAutoIncrementColumns()
Return this table's auto-increment columns. |
Column |
getColumn(String name)
Return the column with the given name, or null if none. |
Column[] |
getColumns()
Return the table's columns, in alphabetical order. |
ForeignKey |
getForeignKey(String name)
Return the foreign key with the given name. |
ForeignKey[] |
getForeignKeys()
Return all foreign keys for the table. |
String |
getFullName()
Return the table name, including schema, using '.' as the catalog separator. |
Index |
getIndex(String name)
Return the index with the given name, or null if none. |
Index[] |
getIndexes()
Return the table's indexes. |
String |
getName()
Return the name of the table. |
PrimaryKey |
getPrimaryKey()
Return the primary key for the table, if any. |
Schema |
getSchema()
Return the schema for the table. |
String |
getSchemaName()
The table's schema name. |
File |
getSourceFile()
Return the source file the table was parsed from, if any. |
String |
getTrackedResourceName()
|
Column |
importColumn(Column col)
Import a column from another table. |
ForeignKey |
importForeignKey(ForeignKey fk)
Import a foreign key; column names must match columns of this table. |
Index |
importIndex(Index idx)
Import an index; column names must match columns of this table. |
PrimaryKey |
importPrimaryKey(PrimaryKey pk)
Import a primary key; column names must match columns of this table. |
boolean |
removeColumn(Column col)
Remove the given column from the table. |
boolean |
removeForeignKey(ForeignKey fk)
Remove the given foreign key from the table. |
boolean |
removeIndex(Index idx)
Remove the given index from the table. |
boolean |
removePrimaryKey()
Remove the primary key from this table. |
void |
setName(String name)
Set the name of the table. |
void |
setSchemaName(String name)
The table's schema name. |
void |
setSourceFile(File source)
Set the source file the table was parsed from, if any. |
String |
toString()
|
Methods inherited from class kodo.jdbc.schema.NameSet |
addName, isNameTaken, removeName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Table()
public Table(String name, Schema schema)
name
- the table nameschema
- the table schemaMethod Detail |
public Schema getSchema()
public String getSchemaName()
public void setSchemaName(String name)
public String getName()
public void setName(String name)
public String getFullName()
public File getSourceFile()
getSourceFile
in interface SourceTracker
public String getTrackedResourceName()
getTrackedResourceName
in interface SourceTracker
public void setSourceFile(File source)
public Column[] getColumns()
public Column[] getAutoIncrementColumns()
public Column getColumn(String name)
public Column addColumn(String name)
public boolean removeColumn(Column col)
public Column importColumn(Column col)
public PrimaryKey getPrimaryKey()
public PrimaryKey addPrimaryKey()
public PrimaryKey addPrimaryKey(String name)
public boolean removePrimaryKey()
public PrimaryKey importPrimaryKey(PrimaryKey pk)
public ForeignKey getForeignKey(String name)
public ForeignKey[] getForeignKeys()
public ForeignKey addForeignKey()
public ForeignKey addForeignKey(String name)
public boolean removeForeignKey(ForeignKey fk)
public ForeignKey importForeignKey(ForeignKey fk)
public Index[] getIndexes()
public Index getIndex(String name)
public Index addIndex(String name)
public boolean removeIndex(Index idx)
public Index importIndex(Index idx)
public int compareTo(Object other)
compareTo
in interface Comparable
public String toString()
toString
in class Object
|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |