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

pack-priv Class CreateSchemaConstantAction

extends DDLConstantAction
Class Inheritance
Imports
org.apache.derby.iapi.sql.execute.ConstantAction, org.apache.derby.iapi.store.access.TransactionController, org.apache.derby.iapi.sql.dictionary.DataDescriptorGenerator, .DataDictionary, .SchemaDescriptor, org.apache.derby.iapi.sql.conn.LanguageConnectionContext, org.apache.derby.shared.common.reference.SQLState, org.apache.derby.iapi.sql.Activation, org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.catalog.UUID

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

Field Summary

Modifier and TypeField and Description
private final String
private final String

Constructor Summary

AccessConstructor and Description
pack-priv
CreateSchemaConstantAction(String
Name of table.
schemaName
,
String
Authorizaton id
aid
)

Make the ConstantAction for a CREATE SCHEMA 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 SCHEMA.

public void
executeConstantAction(Activation
current activation
activation
,
TransactionController
transaction controller
tc
)

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

private void
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

aidback to summary
private final String aid
schemaNameback to summary
private final String schemaName

Constructor Detail

CreateSchemaConstantActionback to summary
pack-priv CreateSchemaConstantAction(String schemaName, String aid)

Make the ConstantAction for a CREATE SCHEMA statement. When executed, will set the default schema to the new schema if the setToDefault parameter is set to true.

Parameters
schemaName:String

Name of table.

aid:String

Authorizaton id

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 SCHEMA.

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
executeConstantActionback to summary
public void executeConstantAction(Activation activation, TransactionController tc) throws StandardException

This is the guts of the Execution-time logic for CREATE SCHEMA. This is variant is used when we to pass in a tc other than the default used in executeConstantAction(Activation).

Parameters
activation:Activation

current activation

tc:TransactionController

transaction controller

Exceptions
StandardException:
Thrown on failure
executeConstantActionMinionback to summary
private void executeConstantActionMinion(Activation activation, TransactionController tc) throws StandardException
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