Class CreateSchema


public class CreateSchema extends DefineCommand
This class represents the statement CREATE SCHEMA
  • Field Details

    • schemaName

      private String schemaName
    • authorization

      private String authorization
    • ifNotExists

      private boolean ifNotExists
    • tableEngineParams

      private ArrayList<String> tableEngineParams
  • Constructor Details

  • Method Details

    • setIfNotExists

      public void setIfNotExists(boolean ifNotExists)
    • update

      public long update()
      Description copied from class: Prepared
      Execute the statement.
      Overrides:
      update in class Prepared
      Returns:
      the update count
    • setSchemaName

      public void setSchemaName(String name)
    • setAuthorization

      public void setAuthorization(String userName)
    • setTableEngineParams

      public void setTableEngineParams(ArrayList<String> tableEngineParams)
    • 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