Class CreateViewConstantAction
- java.lang.Object
-
- org.apache.derby.impl.sql.execute.DDLConstantAction
-
- 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:- TableDescriptor with the name of the view and type VIEW_TYPE
- Set of ColumnDescriptor's for the column names and types
- ViewDescriptor describing the SQL query that makes up the view.
- ViewDescriptor depends on the Providers that its compiled query depends on.
- ViewDescriptor depends on the privileges required to execute the view.
-
-
Field Summary
Fields Modifier and Type Field Description private intcheckOptionprivate ColumnInfo[]columnInfoprivate UUIDcompSchemaIdprivate ProviderInfo[]providerInfoprivate java.lang.StringschemaNameprivate java.lang.StringtableNameprivate inttableTypeprivate java.lang.StringviewText-
Fields inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction
WHEN_MATCHED_THEN_DELETE, WHEN_MATCHED_THEN_UPDATE, WHEN_NOT_MATCHED_THEN_INSERT
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecuteConstantAction(Activation activation)This is the guts of the Execution-time logic for CREATE VIEW.java.lang.StringtoString()-
Methods inherited from class org.apache.derby.impl.sql.execute.DDLConstantAction
addColumnDependencies, adjustUDTDependencies, adjustUDTDependencies, constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, storeConstraintDependenciesOnPrivileges, storeViewTriggerDependenciesOnPrivileges
-
-
-
-
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 definitioncheckOption- Check option typecolumnInfo- Information on all the columns in the table.providerInfo- Information on all the ProviderscompSchemaId- Compilation Schema Id
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.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)
-
-