ConstantActionpublic class CreateConstraintConstantAction extends ConstraintConstantAction
| Modifier and Type | Field | Description |
|---|---|---|
private ClassFactory |
cf |
|
private boolean[] |
characteristics |
|
private java.lang.String[] |
columnNames |
|
private java.lang.String |
constraintText |
|
private boolean |
enabled |
|
private boolean |
forCreateTable |
|
private ConstraintInfo |
otherConstraintInfo |
|
private ProviderInfo[] |
providerInfo |
WHEN_MATCHED_THEN_DELETE, WHEN_MATCHED_THEN_UPDATE, WHEN_NOT_MATCHED_THEN_INSERTconstraintId, constraintName, constraintType, indexAction, schemaId, schemaName, tableNametableId| Constructor | Description |
|---|---|
CreateConstraintConstantAction(java.lang.String constraintName,
int constraintType,
boolean[] characteristics,
boolean forCreateTable,
java.lang.String tableName,
UUID tableId,
java.lang.String schemaName,
java.lang.String[] columnNames,
IndexConstantAction indexAction,
java.lang.String constraintText,
ConstraintInfo otherConstraint,
ProviderInfo[] providerInfo) |
Make one of these puppies.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
executeConstantAction(Activation activation) |
This is the guts of the Execution-time logic for CREATE CONSTRAINT.
|
private int[] |
genColumnPositions(TableDescriptor td,
boolean columnsMustBeOrderable) |
Generate an array of column positions for the column list in
the constraint.
|
(package private) java.lang.String |
getConstraintText() |
Get the text defining this constraint.
|
(package private) boolean |
isForeignKeyConstraint() |
Is the constant action for a foreign key
|
(package private) boolean |
isInitiallyDeferred() |
|
java.lang.String |
toString() |
getConstraintId, getConstraintName, getConstraintType, getIndexAction, validateConstraint, validateFKConstraintaddColumnDependencies, adjustUDTDependencies, adjustUDTDependencies, constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, storeConstraintDependenciesOnPrivileges, storeViewTriggerDependenciesOnPrivilegesdropConglomerate, dropConglomerate, dropConstraint, dropConstraint, dropConstraint, executeConglomReplacement, getConglomReplacementAction, recreateUniqueConstraintBackingIndexAsUniqueWhenNotNullprivate final boolean forCreateTable
private java.lang.String[] columnNames
private java.lang.String constraintText
private ConstraintInfo otherConstraintInfo
private ClassFactory cf
private boolean enabled
private boolean[] characteristics
private ProviderInfo[] providerInfo
CreateConstraintConstantAction(java.lang.String constraintName,
int constraintType,
boolean[] characteristics,
boolean forCreateTable,
java.lang.String tableName,
UUID tableId,
java.lang.String schemaName,
java.lang.String[] columnNames,
IndexConstantAction indexAction,
java.lang.String constraintText,
ConstraintInfo otherConstraint,
ProviderInfo[] providerInfo)
constraintName - Constraint name.constraintType - Constraint type.characteristics - Constraint characteristicsforCreateTable - Constraint is being added for a CREATE TABLEtableName - Table name.tableId - UUID of table.schemaName - the schema that table and constraint lives in.columnNames - String[] for column namesindexAction - IndexConstantAction for constraint (if necessary)constraintText - Text for check constraintotherConstraint - information about the constraint that this referencesproviderInfo - Information on all the Providerspublic void executeConstantAction(Activation activation) throws StandardException
A constraint is represented as:
activation - The execution environment for this constant action.StandardException - Thrown on failureConstraintDescriptor,
CreateIndexConstantAction,
ConstantAction.executeConstantAction(org.apache.derby.iapi.sql.Activation)boolean isForeignKeyConstraint()
boolean isInitiallyDeferred()
private int[] genColumnPositions(TableDescriptor td, boolean columnsMustBeOrderable) throws StandardException
td - The TableDescriptor for the table in questioncolumnsMustBeOrderable - true for primaryKey and unique constraintsStandardExceptionjava.lang.String getConstraintText()
public java.lang.String toString()
toString in class java.lang.ObjectApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.