|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.tools.workbench.base.Relationship
This class implements a relationship 1 : { private static final java.lang.String COPYRIGHT = "Licensed Materials - Property of IBM "+ "5648-D89 "+ "(C) Copyright IBM Corp. 2000 All Rights Reserved. "+ "US Government Users Restricted Rights - Use, duplication or disclosure "+ "restricted by GSA ADP Schedule Contract with IBM Corp "; 1 | n } from a table to another
Field Summary | |
protected int[] |
columnsFrom
The list of columns for the first table |
protected int[] |
columnsTo
The list of columns for the second table |
protected boolean |
propagate
Indicator to control the cascading in delete and copy |
protected Table |
tableFrom
The first table |
protected Table |
tableTo
The second table |
Constructor Summary | |
Relationship(Table tableFrom,
Table tableTo,
int[] columnsFrom,
int[] columnsTo)
This constructor creates a Relationship object. |
Method Summary | |
int[] |
getColumnsFrom()
Returns the list of column identifiers for the first table |
int[] |
getColumnsTo()
Returns the list of column identifiers for the second table |
Table |
getTableFrom()
Returns the table that has the foreign key |
Table |
getTableTo()
Returns the table referred by the foreign key |
boolean |
mustPropagate()
Returns the propagation indicator |
void |
setPropagate(boolean prop)
Sets the propagation indicator |
java.lang.String |
toString()
This method returns a String representation of the Relationship object |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected Table tableFrom
protected int[] columnsFrom
protected Table tableTo
protected int[] columnsTo
protected boolean propagate
Constructor Detail |
public Relationship(Table tableFrom, Table tableTo, int[] columnsFrom, int[] columnsTo) throws WBInvalidArgumentException
tableFrom
- com.ibm.dse.tools.workbench.base.Table The table that has the foreign key.tableTo
- com.ibm.dse.tools.workbench.base.Table The table referred by the foreign key.columnsFrom
- int[] The list of columns for the first table.columnsTo
- int[] The list of columns for the second table.Method Detail |
public int[] getColumnsFrom()
public int[] getColumnsTo()
public Table getTableFrom()
public Table getTableTo()
public boolean mustPropagate()
public void setPropagate(boolean prop)
prop
- booleanpublic java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |