| Modifier and Type | Field and Description |
|---|---|
| pack-priv ProviderList | |
| pack-priv String | |
| pack-priv UUID | |
| private int | |
| private boolean[] | characteristics
boolean[3]: {deferrable?, initiallyDeferred?, enforced?} |
| pack-priv ValueNode | |
| pack-priv ResultColumnList | |
| private TableName | |
| pack-priv String | |
| protected int | |
| public static final boolean | |
| public static final boolean | |
| public static final boolean | |
| protected Properties | |
| pack-priv UUIDFactory | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv | ConstraintDefinitionNode(TableName constraintName, int constraintType, ResultColumnList rcl, Properties properties, ValueNode checkCondition, String constraintText, int behavior, int verifyType, ContextManager cm)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | acceptChildren(Visitor
the visitor v)Overrides org. Accept a visitor on all child nodes. |
| pack-priv void | bind(DDLStatementNode
the create or alter table node ddlNode, DataDictionary the dd dd)Bind this constraint definition. |
| pack-priv ProviderList | |
| pack-priv String | Returns: name of backing indexGets a unique name for the backing index for this constraint of the form SQLyymmddhhmmssxxn yy - year, mm - month, dd - day of month, hh - hour, mm - minute, ss - second, xx - the first 2 digits of millisec because we don't have enough space to keep the exact millisec value, n - number between 0-9 |
| pack-priv UUID | Returns: a UUID for the constraint. allocates one if this is the first time this method is called.Allocates a UUID if one doesn't already exist for the index backing this constraint. |
| pack-priv boolean[] | |
| pack-priv ValueNode | Returns: The check condition from this node.Get the check condition from this table constraint. |
| pack-priv ResultColumnList | Returns: ResultColumnList The column list from this table constraint.Get the column list from this node. |
| pack-priv String | |
| pack-priv String | |
| pack-priv int | |
| pack-priv int | |
| pack-priv String | getDropSchemaName()
To support dropping existing constraints that may have mismatched schema names we need to support ALTER TABLE S1.T DROP CONSTRAINT S2.C. |
| private static ModuleFactory | |
| pack-priv Properties | Returns: The optional properties for the backing index to this constraintGet the optional properties for the backing index to this constraint. |
| pack-priv int | |
| private UUIDFactory | |
| pack-priv int | Returns: the expected type of the constraint, DataDictionary.DROP_CONSTRAINT if the constraint is to be dropped without checking its type.
|
| pack-priv boolean | Returns: boolean Whether or not this element has a check constraintOverrides org. Does this element have a check constraint. |
| pack-priv boolean | Returns: boolean Whether or not this element has a constraint on itOverrides org. Does this element have a constraint on it. |
| pack-priv boolean | Returns: boolean Whether or not this is a unique key constraintOverrides org. Is this a foreign key constraint. |
| pack-priv boolean | Returns: boolean Whether or not this is a primary key constraintOverrides org. Is this a primary key constraint. |
| pack-priv boolean | Returns: boolean Whether or not this is a unique key constraintOverrides org. Is this a unique key constraint. |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv boolean | Returns: booleantrue if this constraint requires a backing
index, i.e. if is a foreign key, primary key or
unique key constraintDoes this constraint require a backing index for its implementation? |
| pack-priv boolean | Returns: booleantrue if this is a primary key or
unique key constraintIs this a primary key or unique constraint? |
| pack-priv void | setAuxiliaryProviderList(ProviderList
The new auxiliary provider list. apl)Set the auxiliary provider list. |
| pack-priv void | |
| pack-priv void | setCheckCondition(ValueNode
The check condition checkCondition)Set the check condition for this table constraint. |
| pack-priv void | |
| pack-priv void | setProperties(Properties
The optional Properties for this constraint. properties)Set the optional properties for the backing index to this constraint. |
| public String | Returns: This object as a StringOverrides org. Convert this object to a String. |
| apl | back to summary |
|---|---|
| pack-priv ProviderList apl | |
| backingIndexName | back to summary |
|---|---|
| pack-priv String backingIndexName | |
| backingIndexUUID | back to summary |
|---|---|
| pack-priv UUID backingIndexUUID | |
| behavior | back to summary |
|---|---|
| private int behavior | |
| characteristics | back to summary |
|---|---|
| private boolean[] characteristics boolean[3]: {deferrable?, initiallyDeferred?, enforced?} | |
| checkCondition | back to summary |
|---|---|
| pack-priv ValueNode checkCondition | |
| columnList | back to summary |
|---|---|
| pack-priv ResultColumnList columnList | |
| constraintName | back to summary |
|---|---|
| private TableName constraintName | |
| constraintText | back to summary |
|---|---|
| pack-priv String constraintText | |
| constraintType | back to summary |
|---|---|
| protected int constraintType | |
| DEFERRABLE_DEFAULT | back to summary |
|---|---|
| public static final boolean DEFERRABLE_DEFAULT | |
| ENFORCED_DEFAULT | back to summary |
|---|---|
| public static final boolean ENFORCED_DEFAULT | |
| INITIALLY_DEFERRED_DEFAULT | back to summary |
|---|---|
| public static final boolean INITIALLY_DEFERRED_DEFAULT | |
| properties | back to summary |
|---|---|
| protected Properties properties | |
| uuidFactory | back to summary |
|---|---|
| pack-priv UUIDFactory uuidFactory | |
| verifyType | back to summary |
|---|---|
| private int verifyType | |
| ConstraintDefinitionNode | back to summary |
|---|---|
| pack-priv ConstraintDefinitionNode(TableName constraintName, int constraintType, ResultColumnList rcl, Properties properties, ValueNode checkCondition, String constraintText, int behavior, int verifyType, ContextManager cm) | |
| acceptChildren | back to summary |
|---|---|
| pack-priv void acceptChildren(Visitor v) throws StandardException Overrides org. Doc from org. Accept a visitor on all child nodes. All sub-classes that add fields
that should be visited, should override this method and call
| |
| bind | back to summary |
|---|---|
| pack-priv void bind(DDLStatementNode ddlNode, DataDictionary dd) throws StandardException Bind this constraint definition.
| |
| getAuxiliaryProviderList | back to summary |
|---|---|
| pack-priv ProviderList getAuxiliaryProviderList() Return the auxiliary provider list.
| |
| getBackingIndexName | back to summary |
|---|---|
| pack-priv String getBackingIndexName(DataDictionary dd) Gets a unique name for the backing index for this constraint of the form SQLyymmddhhmmssxxn yy - year, mm - month, dd - day of month, hh - hour, mm - minute, ss - second, xx - the first 2 digits of millisec because we don't have enough space to keep the exact millisec value, n - number between 0-9
| |
| getBackingIndexUUID | back to summary |
|---|---|
| pack-priv UUID getBackingIndexUUID() Allocates a UUID if one doesn't already exist for the index backing this constraint. This allows Replication logic to agree with the core compiler on what the UUIDs of indices are.
| |
| getCharacteristics | back to summary |
|---|---|
| pack-priv boolean[] getCharacteristics() | |
| getCheckCondition | back to summary |
|---|---|
| pack-priv ValueNode getCheckCondition() Get the check condition from this table constraint.
| |
| getColumnList | back to summary |
|---|---|
| pack-priv ResultColumnList getColumnList() Get the column list from this node.
| |
| getConstraintMoniker | back to summary |
|---|---|
| pack-priv String getConstraintMoniker() Get the name of the constraint. If the user didn't provide one, we make one up. This allows Replication to agree with the core compiler on the names of constraints.
| |
| getConstraintText | back to summary |
|---|---|
| pack-priv String getConstraintText() Get the text of the constraint. (Only meaningful for check constraints.)
| |
| getConstraintType | back to summary |
|---|---|
| pack-priv int getConstraintType() Get the constraint type
| |
| getDropBehavior | back to summary |
|---|---|
| pack-priv int getDropBehavior() Return the behavior of this constraint.
See
| |
| getDropSchemaName | back to summary |
|---|---|
| pack-priv String getDropSchemaName() To support dropping existing constraints that may have mismatched schema names we need to support ALTER TABLE S1.T DROP CONSTRAINT S2.C. If a constraint name was specified this returns it, otherwise it returns null. | |
| getMonitor | back to summary |
|---|---|
| private static ModuleFactory getMonitor() Must be private so that user code can't call this entry point. | |
| getProperties | back to summary |
|---|---|
| pack-priv Properties getProperties() Get the optional properties for the backing index to this constraint.
| |
| getReferenceCount | back to summary |
|---|---|
| pack-priv int getReferenceCount() Get the count of enabled fks that reference this constraint
| |
| getUUIDFactory | back to summary |
|---|---|
| private UUIDFactory getUUIDFactory() Get the UUID factory
| |
| getVerifyType | back to summary |
|---|---|
pack-priv int getVerifyType()
| |
| hasCheckConstraint | back to summary |
|---|---|
| pack-priv boolean hasCheckConstraint() Overrides org. Does this element have a check constraint.
| |
| hasConstraint | back to summary |
|---|---|
| pack-priv boolean hasConstraint() Overrides org. Does this element have a constraint on it.
| |
| hasForeignKeyConstraint | back to summary |
|---|---|
| pack-priv boolean hasForeignKeyConstraint() Overrides org. Is this a foreign key constraint.
| |
| hasPrimaryKeyConstraint | back to summary |
|---|---|
| pack-priv boolean hasPrimaryKeyConstraint() Overrides org. Is this a primary key constraint.
| |
| hasUniqueKeyConstraint | back to summary |
|---|---|
| pack-priv boolean hasUniqueKeyConstraint() Overrides org. Is this a unique key constraint.
| |
| isEnabled | back to summary |
|---|---|
| pack-priv boolean isEnabled() Is this constraint enabled.
| |
| isReferenced | back to summary |
|---|---|
| pack-priv boolean isReferenced() Is this constraint referenced.
| |
| qualifyNames | back to summary |
|---|---|
| pack-priv void qualifyNames() throws StandardException Qualify all SQL object names in a CHECK constraint with schema name.
| |
| requiresBackingIndex | back to summary |
|---|---|
| pack-priv boolean requiresBackingIndex() Does this constraint require a backing index for its implementation?
| |
| requiresUniqueIndex | back to summary |
|---|---|
| pack-priv boolean requiresUniqueIndex() Is this a primary key or unique constraint?
| |
| setAuxiliaryProviderList | back to summary |
|---|---|
| pack-priv void setAuxiliaryProviderList(ProviderList apl) Set the auxiliary provider list.
| |
| setCharacteristics | back to summary |
|---|---|
| pack-priv void setCharacteristics(boolean[] cc) | |
| setCheckCondition | back to summary |
|---|---|
| pack-priv void setCheckCondition(ValueNode checkCondition) Set the check condition for this table constraint.
| |
| setColumnList | back to summary |
|---|---|
| pack-priv void setColumnList(ResultColumnList columnList) Set the column list for this node. This is useful for check constraints where the list of referenced columns is built at bind time.
| |
| setProperties | back to summary |
|---|---|
| pack-priv void setProperties(Properties properties) Set the optional properties for the backing index to this constraint.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing. | |