ConstantAction
class CreateViewConstantAction extends DDLConstantAction
Modifier and Type | Field | Description |
---|---|---|
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 |
WHEN_MATCHED_THEN_DELETE, WHEN_MATCHED_THEN_UPDATE, WHEN_NOT_MATCHED_THEN_INSERT
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.
|
Modifier and Type | Method | Description |
---|---|---|
void |
executeConstantAction(Activation activation) |
This is the guts of the Execution-time logic for CREATE VIEW.
|
java.lang.String |
toString() |
addColumnDependencies, adjustUDTDependencies, adjustUDTDependencies, constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, storeConstraintDependenciesOnPrivileges, storeViewTriggerDependenciesOnPrivileges
private final java.lang.String tableName
private final java.lang.String schemaName
private final java.lang.String viewText
private final int tableType
private final int checkOption
private final ColumnInfo[] columnInfo
private final ProviderInfo[] providerInfo
private final UUID compSchemaId
CreateViewConstantAction(java.lang.String schemaName, java.lang.String tableName, int tableType, java.lang.String viewText, int checkOption, ColumnInfo[] columnInfo, ProviderInfo[] providerInfo, UUID compSchemaId)
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 Idpublic java.lang.String toString()
toString
in class java.lang.Object
public void executeConstantAction(Activation activation) throws StandardException
activation
- The execution environment for this constant action.StandardException
- Thrown on failureConstantAction.executeConstantAction(org.apache.derby.iapi.sql.Activation)
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.