Class CreateSchema

java.lang.Object
net.sf.jsqlparser.statement.create.schema.CreateSchema
All Implemented Interfaces:
Serializable, Model, Statement

public class CreateSchema extends Object implements Statement
See Also:
  • Field Details

    • authorization

      private String authorization
    • schemaName

      private String schemaName
    • schemaPath

      private List<String> schemaPath
    • statements

      private List<Statement> statements
  • Constructor Details

    • CreateSchema

      public CreateSchema()
  • Method Details

    • accept

      public void accept(StatementVisitor statementVisitor)
      Specified by:
      accept in interface Statement
    • 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 String getAuthorization()
      The owner of the schema.
      Returns:
      Owner name
    • getSchemaName

      public String getSchemaName()
      The name of the schema
      Returns:
      Schema name
    • getSchemaPath

      public List<String> getSchemaPath()
      The path of the schema
      Returns:
      Schema path
    • getStatements

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

      public void setAuthorization(String authorization)
      The owner of the schems.
      Parameters:
      authorization - Owner name
    • setSchemaName

      public void setSchemaName(String schemaName)
      Set the name of the schema
      Parameters:
      schemaName - Schema name
    • setSchemaPath

      public void setSchemaPath(List<String> schemaPath)
      Set the path of the schema
      Parameters:
      schemaPath - Schema path
    • toString

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

      public CreateSchema withAuthorization(String authorization)
    • withSchemaName

      public CreateSchema withSchemaName(String schemaName)
    • withSchemaPath

      public CreateSchema withSchemaPath(List<String> schemaPath)
    • addSchemaPath

      public CreateSchema addSchemaPath(String... schemaPath)
    • addSchemaPath

      public CreateSchema addSchemaPath(Collection<String> schemaPath)