|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.perdues.db.TableInfo
Class holding information about a table of a database.
Field Summary | |
static boolean |
debug
|
Method Summary | |
ColumnInfo |
getColumn(java.lang.String name)
Returns the ColumnInfo having the given, unqualified name. |
DBInfo |
getDatabase()
The Database of this table. |
java.lang.String |
getEnoughName()
Adequately-qualified name of table based. |
TableInfo |
getExtends()
Returns the TableInfo of the table that this extends, or null if none. |
ColumnInfo |
getForeignKey(TableInfo table)
Returns the column that is the foreign key into the given Table, or null if none. |
java.lang.String |
getFullName()
Fully-qualified name of the table. |
java.lang.String |
getName()
Unqualified name of the table. |
ColumnInfo |
getPrimaryColumn()
Returns the column that is the primary key. |
java.lang.String |
getPrimaryKey()
Returns the name of the primary key field, or null if there is none. |
java.lang.String |
getShorthand()
Shorthand name of the table. |
boolean |
hasShorthand()
Returns true iff this table has a shorthand. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean debug
Method Detail |
public java.lang.String getName()
public java.lang.String getFullName()
public java.lang.String getEnoughName()
public boolean hasShorthand()
public java.lang.String getShorthand()
public DBInfo getDatabase()
public ColumnInfo getColumn(java.lang.String name)
public java.lang.String getPrimaryKey()
public ColumnInfo getPrimaryColumn()
public TableInfo getExtends()
public ColumnInfo getForeignKey(TableInfo table)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |