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

pack-priv Class CreateViewConstantAction

extends DDLConstantAction
Class Inheritance
Imports
org.apache.derby.iapi.sql.execute.ConstantAction, org.apache.derby.iapi.sql.dictionary.DataDescriptorGenerator, .DataDictionary, .ColumnDescriptor, .ColumnDescriptorList, .SchemaDescriptor, .TableDescriptor, .ViewDescriptor, org.apache.derby.iapi.sql.depend.DependencyManager, .Provider, .ProviderInfo, org.apache.derby.iapi.store.access.TransactionController, 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 VIEW Statement at Execution time. A view is represented as: Dependencies are created as: Note there are no dependencies created between the ViewDescriptor, TableDecriptor and the ColumnDescriptor's.

Field Summary

Modifier and TypeField and Description
private final int
private final ColumnInfo[]
private final UUID
private final ProviderInfo[]
private final String
private final String
private final int
private final String

Constructor Summary

AccessConstructor and Description
pack-priv
CreateViewConstantAction(String
name for the schema that view lives in.
schemaName
,
String
Name of view.
tableName
,
int
Type of table (ie. TableDescriptor.VIEW_TYPE).
tableType
,
String
Text of query expression for view definition
viewText
,
int
Check option type
checkOption
,
ColumnInfo[]
Information on all the columns in the table.
columnInfo
,
ProviderInfo[]
Information on all the Providers
providerInfo
,
UUID
Compilation Schema Id
compSchemaId
)

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

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

checkOptionback to summary
private final int checkOption
columnInfoback to summary
private final ColumnInfo[] columnInfo
compSchemaIdback to summary
private final UUID compSchemaId
providerInfoback to summary
private final ProviderInfo[] providerInfo
schemaNameback to summary
private final String schemaName
tableNameback to summary
private final String tableName
tableTypeback to summary
private final int tableType
viewTextback to summary
private final String viewText

Constructor Detail

CreateViewConstantActionback to summary
pack-priv CreateViewConstantAction(String schemaName, String tableName, int tableType, String viewText, int checkOption, ColumnInfo[] columnInfo, ProviderInfo[] providerInfo, UUID compSchemaId)

Make the ConstantAction for a CREATE VIEW statement.

Parameters
schemaName:String

name for the schema that view lives in.

tableName:String

Name of view.

tableType:int

Type of table (ie. TableDescriptor.VIEW_TYPE).

viewText:String

Text of query expression for view definition

checkOption:int

Check option type

columnInfo:ColumnInfo[]

Information on all the columns in the table.

providerInfo:ProviderInfo[]

Information on all the Providers

compSchemaId:UUID

Compilation Schema 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 VIEW.

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