public final class TableLink
extends java.lang.Object
| Modifier and Type | Field | Description | 
|---|---|---|
| static int | MANY_TO_MANY | Constant defining many table relation (n:m). | 
| static int | REFERED_BY | Constant defining many key relation (1:m). | 
| static int | REFERS_TO | Constant defining simple table-link (1:1). | 
| Modifier | Constructor | Description | 
|---|---|---|
| protected  | TableLink(TableInfo targetTable,
         int relationType,
         java.lang.String tableAlias,
         java.util.List<ColumnInfo> startColumns,
         int fieldIndex) | Constructor. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | addTargetCol(ColumnInfo col) | Method adding a single targetCol. | 
| void | addTargetCols(java.util.List<ColumnInfo> cols) | Method adding a list of targetCols. | 
| int | getFieldIndex() | Method returning fieldIndex currently set. | 
| java.util.List<java.lang.String> | getManyKey() | Method returning many key. | 
| int | getRelationType() | Method returning relation type currently set. | 
| java.util.List<ColumnInfo> | getStartCols() | Method returning a list of start columns. | 
| java.lang.String | getTableAlias() | Method returning the table alias to be used for a potential join. | 
| java.util.List<ColumnInfo> | getTargetCols() | Method returning a list of target columns. | 
| TableInfo | getTargetTable() | Method returning the right table of the join. | 
| void | setManyKey(java.util.List<java.lang.String> manyKey) | Method given setting many key. | 
public static final int REFERS_TO
public static final int REFERED_BY
public static final int MANY_TO_MANY
protected TableLink(TableInfo targetTable, int relationType, java.lang.String tableAlias, java.util.List<ColumnInfo> startColumns, int fieldIndex)
targetTable - The right table of the join.relationType - The type of the relation.tableAlias - Alias of the table.startColumns - Columns of the left table needed for joins.fieldIndex - Index of the startColumns.public java.util.List<ColumnInfo> getStartCols()
public void addTargetCol(ColumnInfo col)
col - Column to be added as a target column.public void addTargetCols(java.util.List<ColumnInfo> cols)
cols - List of columns to be added as target columns.public java.util.List<ColumnInfo> getTargetCols()
public TableInfo getTargetTable()
public java.lang.String getTableAlias()
public int getRelationType()
public void setManyKey(java.util.List<java.lang.String> manyKey)
manyKey - The many key to be set.public java.util.List<java.lang.String> getManyKey()
public int getFieldIndex()
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com