Class CreateTableConstantAction
java.lang.Object
org.apache.derby.impl.sql.execute.DDLConstantAction
org.apache.derby.impl.sql.execute.CreateTableConstantAction
- All Implemented Interfaces:
ConstantAction
This class describes actions that are ALWAYS performed for a
CREATE TABLE Statement at Execution time.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ColumnInfo[]
private CreateConstraintConstantAction[]
private char
private boolean
private boolean
private Properties
private String
private String
private int
Fields inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction
WHEN_MATCHED_THEN_DELETE, WHEN_MATCHED_THEN_UPDATE, WHEN_NOT_MATCHED_THEN_INSERT
-
Constructor Summary
ConstructorsConstructorDescriptionCreateTableConstantAction
(String schemaName, String tableName, int tableType, ColumnInfo[] columnInfo, CreateConstraintConstantAction[] constraintActions, Properties properties, char lockGranularity, boolean onCommitDeleteRows, boolean onRollbackDeleteRows) Make the ConstantAction for a CREATE TABLE statement. -
Method Summary
Modifier and TypeMethodDescriptionvoid
executeConstantAction
(Activation activation) This is the guts of the Execution-time logic for CREATE TABLE.static CreateSequenceConstantAction
makeCSCA
(ColumnInfo info, String sequenceName) Create a sequence generator for an identity columntoString()
Methods inherited from class org.apache.derby.impl.sql.execute.DDLConstantAction
addColumnDependencies, adjustUDTDependencies, adjustUDTDependencies, constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, storeConstraintDependenciesOnPrivileges, storeViewTriggerDependenciesOnPrivileges
-
Field Details
-
lockGranularity
private char lockGranularity -
onCommitDeleteRows
private boolean onCommitDeleteRows -
onRollbackDeleteRows
private boolean onRollbackDeleteRows -
tableName
-
schemaName
-
tableType
private int tableType -
columnInfo
-
constraintActions
-
properties
-
-
Constructor Details
-
CreateTableConstantAction
CreateTableConstantAction(String schemaName, String tableName, int tableType, ColumnInfo[] columnInfo, CreateConstraintConstantAction[] constraintActions, Properties properties, char lockGranularity, boolean onCommitDeleteRows, boolean onRollbackDeleteRows) Make the ConstantAction for a CREATE TABLE statement.- Parameters:
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 value
-
-
Method Details
-
toString
-
executeConstantAction
This is the guts of the Execution-time logic for CREATE TABLE.- Parameters:
activation
- The execution environment for this constant action.- Throws:
StandardException
- Thrown on failure- See Also:
-
makeCSCA
public static CreateSequenceConstantAction makeCSCA(ColumnInfo info, String sequenceName) throws StandardException Create a sequence generator for an identity column- Throws:
StandardException
-