public class ForeignKey
extends java.lang.Object
implements java.io.Serializable
| 构造器和说明 |
|---|
ForeignKey() |
| 限定符和类型 | 方法和说明 |
|---|---|
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()
Returns a comma delimited string of foreign column names
|
java.util.List |
getForeignColumns()
Returns the list of foreign column names.
|
java.util.Hashtable |
getForeignLocalMapping()
Utility method to get foreign column names to local column names
mapping for this foreign key.
|
java.lang.String |
getForeignTableName()
Get the foreignTableName of the FK
|
java.lang.String |
getLocalColumnNames()
Returns a comma delimited string of local column names
|
java.util.List |
getLocalColumns()
Returns the list of local column names.
|
java.util.Hashtable |
getLocalForeignMapping()
Utility method to get local column names to foreign column names
mapping for this foreign key.
|
java.lang.String |
getName()
Returns the name attribute.
|
java.lang.String |
getOnDelete()
Returns the onDelete attribute
|
java.lang.String |
getOnUpdate()
Returns the onUpdate attribute
|
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
|
boolean |
hasOnDelete()
Returns whether or not the onDelete attribute is set
|
boolean |
hasOnUpdate()
Returns whether or not the onUpdate attribute is set
|
void |
loadFromXML(org.xml.sax.Attributes attrib)
Imports foreign key from an XML specification
|
void |
setForeignTableName(java.lang.String tableName)
Set the foreignTableName of the FK
|
void |
setName(java.lang.String name)
Sets the name attribute.
|
void |
setOnDelete(java.lang.String value)
Sets the onDelete attribute
|
void |
setOnUpdate(java.lang.String value)
Sets the onUpdate attribute
|
void |
setTable(Table parent)
Set the parent Table of the foreign key
|
java.lang.String |
toString()
String representation of the foreign key.
|
public void loadFromXML(org.xml.sax.Attributes attrib)
attrib - the xml attributespublic boolean hasOnUpdate()
public boolean hasOnDelete()
public java.lang.String getOnUpdate()
public java.lang.String getOnDelete()
public void setOnDelete(java.lang.String value)
value - the onDelete attributepublic void setOnUpdate(java.lang.String value)
value - the onUpdate attributepublic java.lang.String getName()
public void setName(java.lang.String name)
name - the namepublic java.lang.String getForeignTableName()
public void setForeignTableName(java.lang.String tableName)
tableName - the name of the foreign tablepublic void setTable(Table parent)
parent - the tablepublic Table getTable()
public java.lang.String getTableName()
public void addReference(org.xml.sax.Attributes attrib)
attrib - the xml attributespublic void addReference(java.lang.String local,
java.lang.String foreign)
local - name of the local columnforeign - name of the foreign columnpublic 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 在类中 java.lang.Object