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

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

 class CreateViewConstantAction
extends DDLConstantAction

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
private  int checkOption
           
private  ColumnInfo[] columnInfo
           
private  UUID compSchemaId
           
private  ProviderInfo[] providerInfo
           
private  java.lang.String schemaName
           
private  java.lang.String tableName
           
private  int tableType
           
private  java.lang.String viewText
           
 
Constructor Summary
CreateViewConstantAction(java.lang.String schemaName, java.lang.String tableName, int tableType, java.lang.String viewText, int checkOption, ColumnInfo[] columnInfo, ProviderInfo[] providerInfo, UUID compSchemaId)
          Make the ConstantAction for a CREATE VIEW statement.
 
Method Summary
 void executeConstantAction(Activation activation)
          This is the guts of the Execution-time logic for CREATE VIEW.
 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

tableName

private final java.lang.String tableName

schemaName

private final java.lang.String schemaName

viewText

private final java.lang.String viewText

tableType

private final int tableType

checkOption

private final int checkOption

columnInfo

private final ColumnInfo[] columnInfo

providerInfo

private final ProviderInfo[] providerInfo

compSchemaId

private final UUID compSchemaId
Constructor Detail

CreateViewConstantAction

CreateViewConstantAction(java.lang.String schemaName,
                         java.lang.String tableName,
                         int tableType,
                         java.lang.String viewText,
                         int checkOption,
                         ColumnInfo[] columnInfo,
                         ProviderInfo[] providerInfo,
                         UUID compSchemaId)
Make the ConstantAction for a CREATE VIEW statement.

Parameters:
schemaName - name for the schema that view lives in.
tableName - Name of view.
tableType - Type of table (ie. TableDescriptor.VIEW_TYPE).
viewText - Text of query expression for view definition
checkOption - Check option type
columnInfo - Information on all the columns in the table.
providerInfo - Information on all the Providers
compSchemaId - Compilation Schema Id
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 VIEW.

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 2010-12-23 20:49:13+0000, from revision ???

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