Top Description Fields Constructors Methods
org.apache.derby.impl.sql.execute

pack-priv Class CreateTableConstantAction

extends DDLConstantAction
Class Inheritance
Imports
org.apache.derby.iapi.sql.execute.ConstantAction, .ExecRow, org.apache.derby.iapi.store.access.TransactionController, org.apache.derby.iapi.sql.conn.LanguageConnectionContext, org.apache.derby.iapi.sql.dictionary.DataDescriptorGenerator, .DataDictionary, .DefaultDescriptor, .ConglomerateDescriptor, .ConglomerateDescriptorList, .ColumnDescriptor, .ColumnDescriptorList, .SchemaDescriptor, .TableDescriptor, org.apache.derby.iapi.sql.depend.Provider, .ProviderInfo, .DependencyManager, org.apache.derby.iapi.sql.Activation, org.apache.derby.iapi.types.DataTypeDescriptor, .TypeId, org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.catalog.DependableFinder, .UUID, org.apache.derby.catalog.types.DefaultInfoImpl, java.util.Properties

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

Field Summary

Modifier and TypeField and Description
private ColumnInfo[]
private CreateConstraintConstantAction[]
private char
private boolean
private boolean
private Properties
private String
private String
private int

Constructor Summary

AccessConstructor and Description
pack-priv
CreateTableConstantAction(String
name for the schema that table lives in.
schemaName
,
String
Name of table.
tableName
,
int
Type of table (e.g., BASE, global temporary table).
tableType
,
ColumnInfo[]
Information on all the columns in the table. (REMIND tableDescriptor ignored)
columnInfo
,
CreateConstraintConstantAction[]
CreateConstraintConstantAction[] for constraints
constraintActions
,
Properties
Optional table properties
properties
,
char
The lock granularity.
lockGranularity
,
boolean
If true, on commit delete rows else on commit preserve rows of temporary table.
onCommitDeleteRows
,
boolean
If true, on rollback, delete rows from temp tables which were logically modified. true is the only supported value
onRollbackDeleteRows
)

Make the ConstantAction for a CREATE TABLE statement.

Method Summary

Modifier and TypeMethod and Description
public void
executeConstantAction(Activation
The execution environment for this constant action.
activation
)

Implements org.apache.derby.iapi.sql.execute.ConstantAction.executeConstantAction.

This is the guts of the Execution-time logic for CREATE TABLE.

public static CreateSequenceConstantAction
makeCSCA(ColumnInfo info, String sequenceName)

Create a sequence generator for an identity column

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.apache.derby.impl.sql.execute.DDLConstantAction:
addColumnDependenciesadjustUDTDependenciesadjustUDTDependenciesconstructToStringgetAndCheckSchemaDescriptorgetSchemaDescriptorForCreatelockTableForDDLstoreConstraintDependenciesOnPrivilegesstoreViewTriggerDependenciesOnPrivileges

Field Detail

columnInfoback to summary
private ColumnInfo[] columnInfo
constraintActionsback to summary
private CreateConstraintConstantAction[] constraintActions
lockGranularityback to summary
private char lockGranularity
onCommitDeleteRowsback to summary
private boolean onCommitDeleteRows
onRollbackDeleteRowsback to summary
private boolean onRollbackDeleteRows
propertiesback to summary
private Properties properties
schemaNameback to summary
private String schemaName
tableNameback to summary
private String tableName
tableTypeback to summary
private int tableType

Constructor Detail

CreateTableConstantActionback to summary
pack-priv 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:String

name for the schema that table lives in.

tableName:String

Name of table.

tableType:int

Type of table (e.g., BASE, global temporary table).

columnInfo:ColumnInfo[]

Information on all the columns in the table. (REMIND tableDescriptor ignored)

constraintActions:CreateConstraintConstantAction[]

CreateConstraintConstantAction[] for constraints

properties:Properties

Optional table properties

lockGranularity:char

The lock granularity.

onCommitDeleteRows:boolean

If true, on commit delete rows else on commit preserve rows of temporary table.

onRollbackDeleteRows:boolean

If true, on rollback, delete rows from temp tables which were logically modified. true is the only supported value

Method Detail

executeConstantActionback to summary
public void executeConstantAction(Activation activation) throws StandardException

Implements org.apache.derby.iapi.sql.execute.ConstantAction.executeConstantAction.

This is the guts of the Execution-time logic for CREATE TABLE.

Parameters
activation:Activation

Doc from org.apache.derby.iapi.sql.execute.ConstantAction.executeConstantAction.

The execution environment for this constant action.

Exceptions
StandardException:
Thrown on failure
See Also
ConstantAction#executeConstantAction
makeCSCAback to summary
public static CreateSequenceConstantAction makeCSCA(ColumnInfo info, String sequenceName) throws StandardException

Create a sequence generator for an identity column

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object