org.apache.derby.impl.sql.execute
Class CreateTableConstantAction

java.lang.Object
  extended by org.apache.derby.impl.sql.execute.DDLConstantAction
      extended by org.apache.derby.impl.sql.execute.CreateTableConstantAction
All Implemented Interfaces:
ConstantAction

 class CreateTableConstantAction
extends DDLConstantAction

This class describes actions that are ALWAYS performed for a CREATE TABLE Statement at Execution time.


Field Summary
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
           
 
Constructor Summary
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.
 
Method Summary
 void executeConstantAction(Activation activation)
          This is the guts of the Execution-time logic for CREATE TABLE.
 java.lang.String toString()
           
 
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, wait, wait, wait
 

Field Detail

lockGranularity

private char lockGranularity

onCommitDeleteRows

private boolean onCommitDeleteRows

onRollbackDeleteRows

private boolean onRollbackDeleteRows

tableName

private java.lang.String tableName

schemaName

private java.lang.String schemaName

tableType

private int tableType

columnInfo

private ColumnInfo[] columnInfo

constraintActions

private CreateConstraintConstantAction[] constraintActions

properties

private java.util.Properties properties
Constructor Detail

CreateTableConstantAction

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.

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 constraints
properties - Optional table properties
lockGranularity - 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 Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

executeConstantAction

public void executeConstantAction(Activation activation)
                           throws StandardException
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:
ConstantAction.executeConstantAction(org.apache.derby.iapi.sql.Activation)

Built on Thu 2012-03-29 21:53:33+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.