Class CreateView


public class CreateView extends SchemaOwnerCommand
This class represents the statement CREATE VIEW
  • Field Details

    • select

      private Query select
    • viewName

      private String viewName
    • ifNotExists

      private boolean ifNotExists
    • selectSQL

      private String selectSQL
    • columnNames

      private String[] columnNames
    • comment

      private String comment
    • orReplace

      private boolean orReplace
    • force

      private boolean force
    • isTableExpression

      private boolean isTableExpression
  • Constructor Details

  • Method Details

    • setViewName

      public void setViewName(String name)
    • setSelect

      public void setSelect(Query select)
    • setIfNotExists

      public void setIfNotExists(boolean ifNotExists)
    • setSelectSQL

      public void setSelectSQL(String selectSQL)
    • setColumnNames

      public void setColumnNames(String[] cols)
    • setComment

      public void setComment(String comment)
    • setOrReplace

      public void setOrReplace(boolean orReplace)
    • setForce

      public void setForce(boolean force)
    • setTableExpression

      public void setTableExpression(boolean isTableExpression)
    • update

      long update(Schema schema)
      Specified by:
      update in class SchemaOwnerCommand
    • getType

      public int getType()
      Description copied from class: Prepared
      Get the command type as defined in CommandInterface
      Specified by:
      getType in class Prepared
      Returns:
      the statement type