java.io.Externalizable, java.io.Serializable, Formatable, TypedFormatpublic class FKInfo extends java.lang.Object implements Formatable
| Modifier and Type | Field | Description |
|---|---|---|
(package private) int[] |
colArray |
|
(package private) boolean[] |
deferrable |
|
(package private) long[] |
fkConglomNumbers |
|
(package private) java.lang.String[] |
fkConstraintNames |
|
(package private) UUID[] |
fkIds |
|
(package private) boolean[] |
fkIsSelfReferencing |
|
private UUID[] |
fkUUIDs |
|
static int |
FOREIGN_KEY |
This class implements Formatable.
|
(package private) int[] |
raRules |
|
(package private) long |
refConglomNumber |
|
(package private) UUID |
refConstraintID |
|
(package private) boolean |
refConstraintIsDeferrable |
|
static int |
REFERENCED_KEY |
|
(package private) UUID |
refUUID |
|
(package private) RowLocation |
rowLocation |
|
(package private) java.lang.String |
schemaName |
|
(package private) int |
stmtType |
|
(package private) java.lang.String |
tableName |
|
(package private) int |
type |
| Constructor | Description |
|---|---|
FKInfo() |
Niladic constructor for Formattable
|
FKInfo(java.lang.String[] fkConstraintNames,
java.lang.String schemaName,
java.lang.String tableName,
int stmtType,
int type,
UUID refUUID,
long refConglomNumber,
UUID refConstraintID,
boolean refConstraintIsDeferrable,
UUID[] fkUUIDs,
long[] fkConglomNumbers,
boolean[] fkIsSelfReferencing,
int[] colArray,
RowLocation rowLocation,
int[] raRules,
boolean[] deferrable,
UUID[] fkIds) |
Constructor for FKInfo
|
| Modifier and Type | Method | Description |
|---|---|---|
static FKInfo[] |
chooseRelevantFKInfos(FKInfo[] fkInfo,
int[] cols,
boolean addAllTypeIsFK) |
Comb through the FKInfo structures and pick out the
ones that have columns that intersect with the input
columns.
|
int |
getTypeFormatId() |
Get the formatID which corresponds to this class.
|
void |
readExternal(java.io.ObjectInput in) |
Read this object from a stream of stored objects.
|
java.lang.String |
toString() |
|
void |
writeExternal(java.io.ObjectOutput out) |
Write this object out
|
public static final int FOREIGN_KEY
public static final int REFERENCED_KEY
java.lang.String schemaName
java.lang.String tableName
int type
UUID refUUID
long refConglomNumber
UUID refConstraintID
boolean refConstraintIsDeferrable
int stmtType
RowLocation rowLocation
java.lang.String[] fkConstraintNames
private UUID[] fkUUIDs
long[] fkConglomNumbers
UUID[] fkIds
boolean[] fkIsSelfReferencing
int[] colArray
int[] raRules
boolean[] deferrable
public FKInfo()
public FKInfo(java.lang.String[] fkConstraintNames,
java.lang.String schemaName,
java.lang.String tableName,
int stmtType,
int type,
UUID refUUID,
long refConglomNumber,
UUID refConstraintID,
boolean refConstraintIsDeferrable,
UUID[] fkUUIDs,
long[] fkConglomNumbers,
boolean[] fkIsSelfReferencing,
int[] colArray,
RowLocation rowLocation,
int[] raRules,
boolean[] deferrable,
UUID[] fkIds)
fkConstraintNames - the foreign key constraint namesschemaName - the name of the schema of the table being modifiedtableName - the name of the table being modifiedstmtType - the type of the statement: e.g. StatementType.INSERTtype - either FKInfo.REFERENCED_KEY or FKInfo.FOREIGN_KEYrefUUID - UUID of the referenced constraint's supporting indexrefConglomNumber - conglomerate number of the referenced keyrefConstraintID - UUID of the referenced constraintrefConstraintIsDeferrable - true iff the referenced key
constraint is deferrablefkUUIDs - an array of fkUUIDs of backing indexes. if
FOREIGN_KEY, then just one element, the backing
index of the referenced keys. if REFERENCED_KEY,
then all the foreign keysfkConglomNumbers - array of conglomerate numbers, corresponds
to fkUUIDsfkIsSelfReferencing - array of conglomerate booleans indicating
whether the foreign key references a key in the same tablecolArray - map of columns to the base row that DML
is changing. 1 based. Note that this maps the
constraint index to a row in the target table of
the current DML operation.rowLocation - a row location template for the target table
used to pass in a template row to tc.openScan()raRules - referential action rulesdeferrable - the corresponding constraint is deferrablefkIds - the foreign key constraints' uuids.public static FKInfo[] chooseRelevantFKInfos(FKInfo[] fkInfo, int[] cols, boolean addAllTypeIsFK)
fkInfo - array of fkinfoscols - array of columnsaddAllTypeIsFK - take all with type == FOREIGN_KEYpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - write bytes herejava.io.IOException - thrown on errorpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablein - read this.java.io.IOException - thrown on errorjava.lang.ClassNotFoundException - thrown on errorpublic int getTypeFormatId()
getTypeFormatId in interface TypedFormatpublic java.lang.String toString()
toString in class java.lang.ObjectApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.