net.aditsu.depeche
public class TableInfo extends ColumnInfo
| Modifier and Type | Method and Description |
|---|---|
Column |
getAutoColumn()
Returns the autoincrement column if it exists and is unique, or null otherwise
|
int |
getAutoColumnIndex()
Returns the index of the autoincrement column if it exists and is unique, or -1 otherwise
|
FKey |
getExpKey(String name)
Returns the exported key with the given name;
it throws an exception if there are zero or multiple such exported keys
|
FKey |
getExpKey(Table t)
Returns the exported key that references the given table;
it throws an exception if there are zero or multiple such exported keys
|
Map<ExpKey,FKey> |
getExpKeys()
Returns this table's exported keys mapped by their fk table and name
|
FKey |
getFKey(String name)
Returns the foreign key with the given name;
it throws an exception if there is no such foreign key
|
FKey |
getFKey(Table t)
Returns the foreign key that references the given table;
it throws an exception if there are zero or multiple such foreign keys
|
Map<String,FKey> |
getFKeys()
Returns this table's foreign keys mapped by their name
|
KeyInfo |
getPKeyInfo()
Returns a KeyInfo object listing this table's primary key columns
|
String |
getPkName()
Returns the name of the primary key constraint (may be null)
|
get, get, getColumnIndex, getColumnLabels, getColumnNames, getLabel, getName, getTable, hasColumn, sizeadd, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subListpublic int getAutoColumnIndex()
public Column getAutoColumn()
public KeyInfo getPKeyInfo()
public String getPkName()
public Map<ExpKey,FKey> getExpKeys()
public FKey getFKey(Table t)
t - primary key tablepublic FKey getFKey(String name)
name - key namepublic FKey getExpKey(Table t)
t - foreign key table