Class 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.
    Dependencies are created as:
    • ViewDescriptor depends on the Providers that its compiled query depends on.
    • ViewDescriptor depends on the privileges required to execute the view.
    Note there are no dependencies created between the ViewDescriptor, TableDecriptor and the ColumnDescriptor's.
    • 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
      • 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