|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.derby.impl.sql.execute.GenericConstantAction
org.apache.derby.impl.sql.execute.DDLConstantAction
org.apache.derby.impl.sql.execute.DDLSingleTableConstantAction
org.apache.derby.impl.sql.execute.ConstraintConstantAction
org.apache.derby.impl.sql.execute.CreateConstraintConstantAction
This class describes actions that are ALWAYS performed for a constraint creation at Execution time.
| Field Summary | |
private ClassFactory |
cf
|
java.lang.String[] |
columnNames
|
java.lang.String |
constraintText
|
private boolean |
enabled
|
private ConstraintInfo |
otherConstraintInfo
|
private ProviderInfo[] |
providerInfo
|
| Fields inherited from class org.apache.derby.impl.sql.execute.ConstraintConstantAction |
constraintName, constraintType, indexAction, schemaId, schemaName, tableId, tableName |
| Fields inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction |
RUNTIMESTATISTICS, STATISTICSTIMING |
| Constructor Summary | |
(package private) |
CreateConstraintConstantAction(java.lang.String constraintName,
int constraintType,
java.lang.String tableName,
UUID tableId,
java.lang.String schemaName,
java.lang.String[] columnNames,
IndexConstantAction indexAction,
java.lang.String constraintText,
boolean enabled,
ConstraintInfo otherConstraint,
ProviderInfo[] providerInfo)
Make one of these puppies. |
| Method Summary | |
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. |
java.lang.String[] |
getColumnNames()
Get the names of the columns touched by this constraint. |
java.lang.String |
getConstraintText()
Get the text defining this constraint. |
boolean |
isForeignKeyConstraint()
Is the constant action for a foreign key |
java.lang.String |
toString()
|
| Methods inherited from class org.apache.derby.impl.sql.execute.ConstraintConstantAction |
getConstraintName, getConstraintType, getIndexAction, modifiesTableId, validateConstraint, validateFKConstraint |
| Methods inherited from class org.apache.derby.impl.sql.execute.DDLConstantAction |
constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, readExternal, upToDate, writeExternal |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public java.lang.String[] columnNames
public java.lang.String constraintText
private ConstraintInfo otherConstraintInfo
private ClassFactory cf
private boolean enabled
private ProviderInfo[] providerInfo
| Constructor Detail |
CreateConstraintConstantAction(java.lang.String constraintName,
int constraintType,
java.lang.String tableName,
UUID tableId,
java.lang.String schemaName,
java.lang.String[] columnNames,
IndexConstantAction indexAction,
java.lang.String constraintText,
boolean enabled,
ConstraintInfo otherConstraint,
ProviderInfo[] providerInfo)
constraintName - Constraint name.constraintType - Constraint type.tableName - 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 constraint
RESOLVE - the next parameter should go away once we use UUIDs
(Generated constraint names will be based off of uuids)enabled - Should the constraint be created as enabled
(enabled == true), or disabled (enabled == false).otherConstraint - information about the constraint that this referencesproviderInfo - Information on all the Providers| Method Detail |
public void executeConstantAction(Activation activation)
throws StandardException
activation - The execution environment for this constant action.
StandardException - Thrown on failureConstantAction.executeConstantAction(org.apache.derby.iapi.sql.Activation)public boolean isForeignKeyConstraint()
private int[] genColumnPositions(TableDescriptor td,
boolean columnsMustBeOrderable)
throws StandardException
td - The TableDescriptor for the table in questioncolumnsMustBeOrderable - true for primaryKey and unique constraints
StandardExceptionpublic java.lang.String[] getColumnNames()
public java.lang.String getConstraintText()
public java.lang.String toString()
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||