|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.cpa.persistence.sql.engine.info.ForeignKeyInfo
public final class ForeignKeyInfo
Class representing a foreign key from one table to another.
| Constructor Summary | |
|---|---|
protected |
ForeignKeyInfo(int fieldIndex,
String fieldName,
TableInfo fromTable,
EntityTableInfo toTable,
String toAlias)
Construct a foreign key. |
| Method Summary | |
|---|---|
protected void |
addFromColumn(ColumnInfo column)
Add from column. |
int |
getFieldIndex()
Get index of the field in array of field values. |
String |
getFieldName()
Get name of field in mapping. |
List<ColumnInfo> |
getFromColumns()
Method returning list of columns of the foreign key. |
TableInfo |
getFromTable()
Method returning the table that holds the foreign key. |
String |
getToAlias()
Method returning the alias of the table referenced by the foreign key. |
EntityTableInfo |
getToTable()
Method returning the table referenced by the foreign key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ForeignKeyInfo(int fieldIndex,
String fieldName,
TableInfo fromTable,
EntityTableInfo toTable,
String toAlias)
fieldIndex - Index of the field in array of field values.fieldName - Name of field in mapping.fromTable - Table that holds the foreign key.toTable - Table referenced by the foreign key.toAlias - Alias of the table referenced by the foreign key.| Method Detail |
|---|
protected void addFromColumn(ColumnInfo column)
column - Column to add to from columns.public int getFieldIndex()
public String getFieldName()
public TableInfo getFromTable()
public List<ColumnInfo> getFromColumns()
public EntityTableInfo getToTable()
public String getToAlias()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||