|
||||||||||
| 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.ForeignReferenceInfo
public final class ForeignReferenceInfo
Class representing a foreign reference from one table to another.
| Constructor Summary | |
|---|---|
protected |
ForeignReferenceInfo(int fieldIndex,
String fieldName,
EntityTableInfo toTable,
TableInfo fromTable,
String fromAlias)
Construct a foreign reference. |
| 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. |
String |
getFromAlias()
Method returning the alias of the table that holds the foreign key. |
List<ColumnInfo> |
getFromColumns()
Method returning list of columns of the foreign key. |
TableInfo |
getFromTable()
Method returning the table that holds 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 ForeignReferenceInfo(int fieldIndex,
String fieldName,
EntityTableInfo toTable,
TableInfo fromTable,
String fromAlias)
fieldIndex - Index of the field in array of field values.fieldName - Name of field in mapping.toTable - Table referenced by the foreign key.fromTable - Table that holds the foreign key.fromAlias - Alias of the table that holds the foreign key.| Method Detail |
|---|
protected void addFromColumn(ColumnInfo column)
column - Column to add to from columns.public int getFieldIndex()
public String getFieldName()
public EntityTableInfo getToTable()
public TableInfo getFromTable()
public String getFromAlias()
public List<ColumnInfo> getFromColumns()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||