Class CreateSchema

    • Field Detail

      • authorization

        private java.lang.String authorization
      • schemaName

        private java.lang.String schemaName
      • schemaPath

        private java.util.List<java.lang.String> schemaPath
      • statements

        private java.util.List<Statement> statements
    • Constructor Detail

      • CreateSchema

        public CreateSchema()
    • Method Detail

      • addStatement

        public boolean addStatement​(Statement statement)
        Add a statement to the schema definition
        Parameters:
        statement - The statement to be added
        Returns:
        true if the operation was successful
      • getAuthorization

        public java.lang.String getAuthorization()
        The owner of the schema.
        Returns:
        Owner name
      • setAuthorization

        public void setAuthorization​(java.lang.String authorization)
        The owner of the schems.
        Parameters:
        authorization - Owner name
      • getSchemaName

        public java.lang.String getSchemaName()
        The name of the schema
        Returns:
        Schema name
      • setSchemaName

        public void setSchemaName​(java.lang.String schemaName)
        Set the name of the schema
        Parameters:
        schemaName - Schema name
      • getSchemaPath

        public java.util.List<java.lang.String> getSchemaPath()
        The path of the schema
        Returns:
        Schema path
      • setSchemaPath

        public void setSchemaPath​(java.util.List<java.lang.String> schemaPath)
        Set the path of the schema
        Parameters:
        schemaPath - Schema path
      • getStatements

        public java.util.List<Statement> getStatements()
        The statements executed as part of the schema creation
        Returns:
        the statements
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • withAuthorization

        public CreateSchema withAuthorization​(java.lang.String authorization)
      • withSchemaName

        public CreateSchema withSchemaName​(java.lang.String schemaName)
      • withSchemaPath

        public CreateSchema withSchemaPath​(java.util.List<java.lang.String> schemaPath)
      • addSchemaPath

        public CreateSchema addSchemaPath​(java.lang.String... schemaPath)
      • addSchemaPath

        public CreateSchema addSchemaPath​(java.util.Collection<java.lang.String> schemaPath)