|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.turbine.torque.engine.database.model.ForeignKey
A Class for information about foreign keys of a table
Field Summary | |
private java.util.List |
foreignColumns
|
private java.lang.String |
foreignTableName
|
private java.util.List |
localColumns
|
private Table |
parentTable
|
Constructor Summary | |
ForeignKey()
Default Constructor |
Method Summary | |
void |
addReference(org.xml.sax.Attributes attrib)
adds a new reference entry to the foreign key |
void |
addReference(java.lang.String local,
java.lang.String foreign)
adds a new reference entry to the foreign key |
java.lang.String |
getForeignColumnNames()
Return a comma delimited string of foreign column names |
java.util.List |
getForeignColumns()
Return the vector of local columns. |
java.util.Hashtable |
getForeignLocalMapping()
Utility method to get local column to foreign column mapping for this foreign key. |
java.lang.String |
getForeignTableName()
Get the foreignTableName of the FK |
java.lang.String |
getLocalColumnNames()
Return a comma delimited string of local column names |
java.util.List |
getLocalColumns()
Return the vector of local columns. |
java.util.Hashtable |
getLocalForeignMapping()
Utility method to get local column to foreign column mapping for this foreign key. |
Table |
getTable()
Get the parent Table of the foreign key |
java.lang.String |
getTableName()
Returns the Name of the table the foreign key is in |
void |
loadFromXML(org.xml.sax.Attributes attrib)
Imports foreign key from an XML specification |
private java.lang.String |
makeColumnList(java.util.List cols)
Creates a list of columns delimited by commas |
void |
setForeignTableName(java.lang.String tableName)
Set the foreignTableName of the FK |
void |
setTable(Table parent)
Set the parent Table of the foreign key |
java.lang.String |
toString()
String representation of the foreign key. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.lang.String foreignTableName
private Table parentTable
private java.util.List localColumns
private java.util.List foreignColumns
Constructor Detail |
public ForeignKey()
Method Detail |
public void loadFromXML(org.xml.sax.Attributes attrib)
public java.lang.String getForeignTableName()
public void setForeignTableName(java.lang.String tableName)
public void setTable(Table parent)
public Table getTable()
public java.lang.String getTableName()
public void addReference(org.xml.sax.Attributes attrib)
public void addReference(java.lang.String local, java.lang.String foreign)
private java.lang.String makeColumnList(java.util.List cols)
public java.lang.String getLocalColumnNames()
public java.lang.String getForeignColumnNames()
public java.util.List getLocalColumns()
public java.util.Hashtable getLocalForeignMapping()
public java.util.List getForeignColumns()
public java.util.Hashtable getForeignLocalMapping()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |