|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.solarmetric.rd.kodo.impl.jdbc.schema.NameSet
|
+--com.solarmetric.rd.kodo.impl.jdbc.schema.Table
Represents a database table.
| Method Summary | |
com.solarmetric.rd.kodo.impl.jdbc.schema.Column |
addColumn(java.lang.String name)
Add a column to the table. |
com.solarmetric.rd.kodo.impl.jdbc.schema.ForeignKey |
addForeignKey()
Add a foreign key to the table. |
com.solarmetric.rd.kodo.impl.jdbc.schema.ForeignKey |
addForeignKey(java.lang.String name)
Add a foreign key to the table. |
com.solarmetric.rd.kodo.impl.jdbc.schema.Index |
addIndex(java.lang.String name)
Add an index to the table. |
com.solarmetric.rd.kodo.impl.jdbc.schema.PrimaryKey |
addPrimaryKey()
Set the primary key for the table. |
com.solarmetric.rd.kodo.impl.jdbc.schema.PrimaryKey |
addPrimaryKey(java.lang.String name)
Set the primary key for the table. |
int |
compareTo(java.lang.Object other)
|
com.solarmetric.rd.kodo.impl.jdbc.schema.Column |
getColumn(java.lang.String name)
Return the column with the given name, or null if none. |
com.solarmetric.rd.kodo.impl.jdbc.schema.Column[] |
getColumns()
Return the table's columns, in alphabetical order. |
com.solarmetric.rd.kodo.impl.jdbc.schema.ForeignKey |
getForeignKey(java.lang.String name)
Return the foreign key with the given name. |
com.solarmetric.rd.kodo.impl.jdbc.schema.ForeignKey[] |
getForeignKeys()
Return all foreign keys for the table. |
java.lang.String |
getFullName()
Return the table name, including schema. |
com.solarmetric.rd.kodo.impl.jdbc.schema.Index |
getIndex(java.lang.String name)
Return the index with the given name, or null if none. |
com.solarmetric.rd.kodo.impl.jdbc.schema.Index[] |
getIndexes()
Return the table's indexes. |
java.lang.String |
getName()
Return the name of the table. |
com.solarmetric.rd.kodo.impl.jdbc.schema.PrimaryKey |
getPrimaryKey()
Return the primary key for the table, if any. |
com.solarmetric.rd.kodo.impl.jdbc.schema.Schema |
getSchema()
Return the schema for the table. |
java.io.File |
getSourceFile()
Return the source file the table was parsed from, if any. |
com.solarmetric.rd.kodo.impl.jdbc.schema.Column |
importColumn(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Import a column from another table. |
com.solarmetric.rd.kodo.impl.jdbc.schema.ForeignKey |
importForeignKey(com.solarmetric.rd.kodo.impl.jdbc.schema.ForeignKey fk)
Import a foreign key; column names must match columns of this table. |
com.solarmetric.rd.kodo.impl.jdbc.schema.Index |
importIndex(com.solarmetric.rd.kodo.impl.jdbc.schema.Index idx)
Import an index; column names must match columns of this table. |
com.solarmetric.rd.kodo.impl.jdbc.schema.PrimaryKey |
importPrimaryKey(com.solarmetric.rd.kodo.impl.jdbc.schema.PrimaryKey pk)
Import a primary key; column names must match columns of this table. |
boolean |
removeColumn(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Remove the given column from the table. |
boolean |
removeForeignKey(com.solarmetric.rd.kodo.impl.jdbc.schema.ForeignKey fk)
Remove the given foreign key from the table. |
boolean |
removeIndex(com.solarmetric.rd.kodo.impl.jdbc.schema.Index idx)
Remove the given index from the table. |
boolean |
removePrimaryKey()
Remove the primary key from this table. |
void |
setSourceFile(java.io.File source)
Set the source file the table was parsed from, if any. |
java.lang.String |
toString()
|
| Methods inherited from class com.solarmetric.rd.kodo.impl.jdbc.schema.NameSet |
addName, isNameTaken, removeName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public com.solarmetric.rd.kodo.impl.jdbc.schema.Schema getSchema()
public java.lang.String getName()
public java.lang.String getFullName()
public java.io.File getSourceFile()
getSourceFile in interface SourceTrackerpublic void setSourceFile(java.io.File source)
public com.solarmetric.rd.kodo.impl.jdbc.schema.Column[] getColumns()
public com.solarmetric.rd.kodo.impl.jdbc.schema.Column getColumn(java.lang.String name)
public com.solarmetric.rd.kodo.impl.jdbc.schema.Column addColumn(java.lang.String name)
public boolean removeColumn(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
public com.solarmetric.rd.kodo.impl.jdbc.schema.Column importColumn(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
public com.solarmetric.rd.kodo.impl.jdbc.schema.PrimaryKey getPrimaryKey()
public com.solarmetric.rd.kodo.impl.jdbc.schema.PrimaryKey addPrimaryKey()
public com.solarmetric.rd.kodo.impl.jdbc.schema.PrimaryKey addPrimaryKey(java.lang.String name)
public boolean removePrimaryKey()
public com.solarmetric.rd.kodo.impl.jdbc.schema.PrimaryKey importPrimaryKey(com.solarmetric.rd.kodo.impl.jdbc.schema.PrimaryKey pk)
public com.solarmetric.rd.kodo.impl.jdbc.schema.ForeignKey getForeignKey(java.lang.String name)
public com.solarmetric.rd.kodo.impl.jdbc.schema.ForeignKey[] getForeignKeys()
public com.solarmetric.rd.kodo.impl.jdbc.schema.ForeignKey addForeignKey()
public com.solarmetric.rd.kodo.impl.jdbc.schema.ForeignKey addForeignKey(java.lang.String name)
public boolean removeForeignKey(com.solarmetric.rd.kodo.impl.jdbc.schema.ForeignKey fk)
public com.solarmetric.rd.kodo.impl.jdbc.schema.ForeignKey importForeignKey(com.solarmetric.rd.kodo.impl.jdbc.schema.ForeignKey fk)
public com.solarmetric.rd.kodo.impl.jdbc.schema.Index[] getIndexes()
public com.solarmetric.rd.kodo.impl.jdbc.schema.Index getIndex(java.lang.String name)
public com.solarmetric.rd.kodo.impl.jdbc.schema.Index addIndex(java.lang.String name)
public boolean removeIndex(com.solarmetric.rd.kodo.impl.jdbc.schema.Index idx)
public com.solarmetric.rd.kodo.impl.jdbc.schema.Index importIndex(com.solarmetric.rd.kodo.impl.jdbc.schema.Index idx)
public int compareTo(java.lang.Object other)
compareTo in interface java.lang.Comparablepublic java.lang.String toString()
toString in class java.lang.Object
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||