ConstantActionclass CreateTableConstantAction extends DDLConstantAction
| Modifier and Type | Field | Description |
|---|---|---|
private ColumnInfo[] |
columnInfo |
|
private CreateConstraintConstantAction[] |
constraintActions |
|
private char |
lockGranularity |
|
private boolean |
onCommitDeleteRows |
|
private boolean |
onRollbackDeleteRows |
|
private java.util.Properties |
properties |
|
private java.lang.String |
schemaName |
|
private java.lang.String |
tableName |
|
private int |
tableType |
WHEN_MATCHED_THEN_DELETE, WHEN_MATCHED_THEN_UPDATE, WHEN_NOT_MATCHED_THEN_INSERT| Constructor | Description |
|---|---|
CreateTableConstantAction(java.lang.String schemaName,
java.lang.String tableName,
int tableType,
ColumnInfo[] columnInfo,
CreateConstraintConstantAction[] constraintActions,
java.util.Properties properties,
char lockGranularity,
boolean onCommitDeleteRows,
boolean onRollbackDeleteRows) |
Make the ConstantAction for a CREATE TABLE statement.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
executeConstantAction(Activation activation) |
This is the guts of the Execution-time logic for CREATE TABLE.
|
static CreateSequenceConstantAction |
makeCSCA(ColumnInfo info,
java.lang.String sequenceName) |
Create a sequence generator for an identity column
|
java.lang.String |
toString() |
addColumnDependencies, adjustUDTDependencies, adjustUDTDependencies, constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, storeConstraintDependenciesOnPrivileges, storeViewTriggerDependenciesOnPrivilegesprivate char lockGranularity
private boolean onCommitDeleteRows
private boolean onRollbackDeleteRows
private java.lang.String tableName
private java.lang.String schemaName
private int tableType
private ColumnInfo[] columnInfo
private CreateConstraintConstantAction[] constraintActions
private java.util.Properties properties
CreateTableConstantAction(java.lang.String schemaName,
java.lang.String tableName,
int tableType,
ColumnInfo[] columnInfo,
CreateConstraintConstantAction[] constraintActions,
java.util.Properties properties,
char lockGranularity,
boolean onCommitDeleteRows,
boolean onRollbackDeleteRows)
schemaName - name for the schema that table lives in.tableName - Name of table.tableType - Type of table (e.g., BASE, global temporary table).columnInfo - Information on all the columns in the table.
(REMIND tableDescriptor ignored)constraintActions - CreateConstraintConstantAction[] for constraintsproperties - Optional table propertieslockGranularity - The lock granularity.onCommitDeleteRows - If true, on commit delete rows else on commit preserve rows of temporary table.onRollbackDeleteRows - If true, on rollback, delete rows from temp tables which were logically modified. true is the only supported valuepublic java.lang.String toString()
toString in class java.lang.Objectpublic 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 static CreateSequenceConstantAction makeCSCA(ColumnInfo info, java.lang.String sequenceName) throws StandardException
StandardExceptionApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.