net.aditsu.depeche
public class FKey extends Object implements Serializable
| Modifier and Type | Method and Description |
|---|---|
int |
findFKColumn(String name)
Returns the index of the foreign key column with a given name, within this foreign key
|
int |
findPKColumn(String name)
Returns the index of the primary key column with a given name, within this foreign key
|
int |
getDeferrability()
Returns the deferrability setting of this foreign key
|
KeyRule |
getDeleteRule()
Returns the rule used to handle DELETE on a row referenced by this foreign key
|
String |
getFKColumn(int x)
Returns the name of the foreign key column with a given index, within this foreign key
|
KeyInfo |
getFKeyInfo()
Returns a KeyInfo object listing the foreign key columns within this foreign key
|
Table |
getFKTable()
Returns the foreign/child table
|
String |
getName()
Returns the name of this foreign key
|
String |
getPKColumn(int x)
Returns the name of the primary key column with a given index, within this foreign key
|
KeyInfo |
getPKeyInfo()
Returns a KeyInfo object listing the primary key columns within this foreign key
|
Table |
getPKTable()
Returns the primary/parent table
|
KeyRule |
getUpdateRule()
Returns the rule used to handle UPDATE on a row referenced by this foreign key
|
boolean |
isDeferrable()
Returns true if this foreign key is deferrable
|
boolean |
isInitiallyDeferred()
Returns true if this foreign key is deferrable and initially deferred
|
int |
size()
Returns the number of columns used by this foreign key
|
String |
toString() |
public String getFKColumn(int x)
public String getPKColumn(int x)
public int findFKColumn(String name)
public int findPKColumn(String name)
public int size()
public KeyInfo getFKeyInfo()
public KeyInfo getPKeyInfo()
public Table getPKTable()
public Table getFKTable()
public String getName()
public KeyRule getUpdateRule()
public KeyRule getDeleteRule()
public int getDeferrability()
public boolean isDeferrable()
public boolean isInitiallyDeferred()