| java.lang.Object org.apache.derby.impl.sql.execute.FKInfo
FKInfo | public class FKInfo implements Formatable(Code) | | This is a simple class used to store the run time information
about a foreign key. Used by DML to figure out what to
check.
author: jamie |
Constructor Summary | |
public | FKInfo() | public | FKInfo(String[] fkConstraintNames, String tableName, int stmtType, int type, UUID refUUID, long refConglomNumber, UUID[] fkUUIDs, long[] fkConglomNumbers, boolean[] fkIsSelfReferencing, int[] colArray, RowLocation rowLocation, int[] raRules) Consructor for FKInfo
Parameters: fkConstraintNames - the foreign key constraint names Parameters: tableName - the name of the table being modified Parameters: stmtType - the type of the statement: e.g. |
FOREIGN_KEY | final public static int FOREIGN_KEY(Code) | | This class implements Formatable. That means that it
can write itself to and from a formatted stream. If
you add more fields to this class, make sure that you
also write/read them with the writeExternal()/readExternal()
methods.
If, inbetween releases, you add more fields to this class,
then you should bump the version number emitted by the getTypeFormatId()
method. OR, since this is something that is used
in stored prepared statements, it is ok to change it
if you make sure that stored prepared statements are
invalidated across releases.
|
REFERENCED_KEY | final public static int REFERENCED_KEY(Code) | | |
colArray | public int[] colArray(Code) | | |
fkConglomNumbers | public long[] fkConglomNumbers(Code) | | |
fkIsSelfReferencing | public boolean[] fkIsSelfReferencing(Code) | | |
raRules | public int[] raRules(Code) | | |
refConglomNumber | public long refConglomNumber(Code) | | |
stmtType | public int stmtType(Code) | | |
FKInfo | public FKInfo()(Code) | | Niladic constructor for Formattable
|
FKInfo | public FKInfo(String[] fkConstraintNames, String tableName, int stmtType, int type, UUID refUUID, long refConglomNumber, UUID[] fkUUIDs, long[] fkConglomNumbers, boolean[] fkIsSelfReferencing, int[] colArray, RowLocation rowLocation, int[] raRules)(Code) | | Consructor for FKInfo
Parameters: fkConstraintNames - the foreign key constraint names Parameters: tableName - the name of the table being modified Parameters: stmtType - the type of the statement: e.g. StatementType.INSERT Parameters: type - either FKInfo.REFERENCED_KEY or FKInfo.FOREIGN_KEY Parameters: refUUID - UUID of the referenced constraint Parameters: refConglomNumber - congomerate number of the referenced key Parameters: fkUUIDs - an array of fkUUIDs of backing indexes. ifFOREIGN_KEY, then just one element, the backingindex of the referrenced keys. if REFERENCED_KEY,then all the foreign keys Parameters: fkConglomNumbers - array of conglomerate numbers, correspondsto fkUUIDs Parameters: fkIsSelfReferencing - array of conglomerate booleans indicatingwhether the fk references a key in the same table Parameters: colArray - map of columns to the base row that DMLis changing. 1 based. Note that this maps theconstraint index to a row in the target table ofthe current dml operation. Parameters: rowLocation - a row location template for the target tableused to pass in a template row to tc.openScan() |
chooseRelevantFKInfos | public static FKInfo[] chooseRelevantFKInfos(FKInfo[] fkInfo, int[] cols, boolean addAllTypeIsFK)(Code) | | Comb through the FKInfo structures and pick out the
ones that have columns that intersect with the input
columns.
Parameters: fkInfo - array of fkinfos Parameters: cols - array of columns Parameters: addAllTypeIsFK - take all with type == FORIEGN_KEY array of relevant fkinfos |
getTypeFormatId | public int getTypeFormatId()(Code) | | Get the formatID which corresponds to this class.
the formatID of this class |
|
|