|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.impl.sql.execute.FKInfo
public class FKInfo
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.
| Field Summary | |
|---|---|
int[] |
colArray
|
long[] |
fkConglomNumbers
|
java.lang.String[] |
fkConstraintNames
|
boolean[] |
fkIsSelfReferencing
|
UUID[] |
fkUUIDs
|
static int |
FOREIGN_KEY
This class implements Formatable. |
int[] |
raRules
|
long |
refConglomNumber
|
static int |
REFERENCED_KEY
|
UUID |
refUUID
|
RowLocation |
rowLocation
|
int |
stmtType
|
java.lang.String |
tableName
|
int |
type
|
| Constructor Summary | |
|---|---|
FKInfo()
Niladic constructor for Formattable |
|
FKInfo(java.lang.String[] fkConstraintNames,
java.lang.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 |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int FOREIGN_KEY
public static final int REFERENCED_KEY
public java.lang.String[] fkConstraintNames
public java.lang.String tableName
public int type
public UUID refUUID
public long refConglomNumber
public UUID[] fkUUIDs
public long[] fkConglomNumbers
public boolean[] fkIsSelfReferencing
public int[] colArray
public int stmtType
public RowLocation rowLocation
public int[] raRules
| Constructor Detail |
|---|
public FKInfo()
public FKInfo(java.lang.String[] fkConstraintNames,
java.lang.String tableName,
int stmtType,
int type,
UUID refUUID,
long refConglomNumber,
UUID[] fkUUIDs,
long[] fkConglomNumbers,
boolean[] fkIsSelfReferencing,
int[] colArray,
RowLocation rowLocation,
int[] raRules)
fkConstraintNames - the foreign key constraint namestableName - 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 constraintrefConglomNumber - congomerate number of the referenced keyfkUUIDs - an array of fkUUIDs of backing indexes. if
FOREIGN_KEY, then just one element, the backing
index of the referrenced keys. if REFERENCED_KEY,
then all the foreign keysfkConglomNumbers - array of conglomerate numbers, corresponds
to fkUUIDsfkIsSelfReferencing - array of conglomerate booleans indicating
whether the fk 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()| Method Detail |
|---|
public static FKInfo[] chooseRelevantFKInfos(FKInfo[] fkInfo,
int[] cols,
boolean addAllTypeIsFK)
fkInfo - array of fkinfoscols - array of columnsaddAllTypeIsFK - take all with type == FORIEGN_KEY
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - write bytes here
java.io.IOException - thrown on error
public 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 error
java.lang.ClassNotFoundException - thrown on errorpublic int getTypeFormatId()
getTypeFormatId in interface TypedFormatpublic java.lang.String toString()
toString in class java.lang.Object
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||