Class CreateSchema


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

      • schemaName

        private java.lang.String schemaName
      • authorization

        private java.lang.String authorization
      • ifNotExists

        private boolean ifNotExists
      • tableEngineParams

        private java.util.ArrayList<java.lang.String> tableEngineParams
    • Constructor Detail

      • CreateSchema

        public CreateSchema​(SessionLocal session)
    • Method Detail

      • 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​(java.lang.String name)
      • setAuthorization

        public void setAuthorization​(java.lang.String userName)
      • setTableEngineParams

        public void setTableEngineParams​(java.util.ArrayList<java.lang.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