|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.impl.sql.execute.DDLConstantAction
org.apache.derby.impl.sql.execute.DDLSingleTableConstantAction
org.apache.derby.impl.sql.execute.ConstraintConstantAction
public abstract class ConstraintConstantAction
This class describes actions that are ALWAYS performed for a constraint creation at Execution time.
| Field Summary | |
|---|---|
protected java.lang.String |
constraintName
|
protected int |
constraintType
|
protected IndexConstantAction |
indexAction
|
protected UUID |
schemaId
|
protected java.lang.String |
schemaName
|
protected java.lang.String |
tableName
|
| Fields inherited from class org.apache.derby.impl.sql.execute.DDLSingleTableConstantAction |
|---|
tableId |
| Constructor Summary | |
|---|---|
ConstraintConstantAction(java.lang.String constraintName,
int constraintType,
java.lang.String tableName,
UUID tableId,
java.lang.String schemaName,
IndexConstantAction indexAction)
Make one of these puppies. |
|
| Method Summary | |
|---|---|
java.lang.String |
getConstraintName()
Get the constraint name |
int |
getConstraintType()
Get the constraint type. |
IndexConstantAction |
getIndexAction()
Get the associated index constant action. |
(package private) static boolean |
validateConstraint(java.lang.String constraintName,
java.lang.String constraintText,
TableDescriptor td,
LanguageConnectionContext lcc,
boolean isCheckConstraint)
Evaluate a check constraint or not null column constraint. |
(package private) static void |
validateFKConstraint(TransactionController tc,
DataDictionary dd,
ForeignKeyConstraintDescriptor fk,
ReferencedKeyConstraintDescriptor refcd,
ExecRow indexTemplateRow)
Make sure that the foreign key constraint is valid with the existing data in the target table. |
| Methods inherited from class org.apache.derby.impl.sql.execute.DDLSingleTableConstantAction |
|---|
dropConglomerate, dropConglomerate, dropConstraint, dropConstraint, dropConstraint, executeConglomReplacement, getConglomReplacementAction, recreateUniqueConstraintBackingIndexAsUniqueWhenNotNull |
| Methods inherited from class org.apache.derby.impl.sql.execute.DDLConstantAction |
|---|
addColumnDependencies, adjustUDTDependencies, adjustUDTDependencies, constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, storeConstraintDependenciesOnPrivileges, storeViewTriggerDependenciesOnPrivileges |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction |
|---|
executeConstantAction |
| Field Detail |
|---|
protected java.lang.String constraintName
protected int constraintType
protected java.lang.String tableName
protected java.lang.String schemaName
protected UUID schemaId
protected IndexConstantAction indexAction
| Constructor Detail |
|---|
ConstraintConstantAction(java.lang.String constraintName,
int constraintType,
java.lang.String tableName,
UUID tableId,
java.lang.String schemaName,
IndexConstantAction indexAction)
constraintName - Constraint name.constraintType - Constraint type.tableName - Table name.tableId - UUID of table.schemaName - schema that table and constraint lives in.indexAction - IndexConstantAction for constraint (if necessary)
RESOLVE - the next parameter should go away once we use UUIDs
(Generated constraint names will be based off of uuids)| Method Detail |
|---|
public int getConstraintType()
public java.lang.String getConstraintName()
public IndexConstantAction getIndexAction()
static void validateFKConstraint(TransactionController tc,
DataDictionary dd,
ForeignKeyConstraintDescriptor fk,
ReferencedKeyConstraintDescriptor refcd,
ExecRow indexTemplateRow)
throws StandardException
tc - transaction controllerdd - data dictionaryfk - foreign key constraintrefcd - referenced keyindexTemplateRow - index template row
StandardException - on error
static boolean validateConstraint(java.lang.String constraintName,
java.lang.String constraintText,
TableDescriptor td,
LanguageConnectionContext lcc,
boolean isCheckConstraint)
throws StandardException
constraintName - constraint nameconstraintText - constraint texttd - referenced tablelcc - the language connection contextisCheckConstraint - the constraint is a check constraint
StandardException - if check constraint fails
|
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 | ||||||||