Class DropSchema

    • Constructor Detail

      • DropSchema

        public DropSchema​(String schemaName)
        Create a new instance of an DropSchema statement.
        Parameters:
        schemaName - name of the table to drop
    • Method Detail

      • ifExists

        public DropSchema ifExists()
        Add IF EXISTS clause into a DROP SCHEMA statement.
        Returns:
        this for fluent programming
      • cascade

        public void cascade()
        Add CASCADE clause to a DROP SCHEMA statement.
      • restrict

        public void restrict()
        Add RESTRICT clause to a DROP SCHEMA statement.
      • getSchemaName

        public String getSchemaName()
        Get the schema name.
        Returns:
        schema name
      • getCascade

        public Cascade getCascade()
        Get the cascade.
        Returns:
        Cascade object
      • getRestrict

        public Restrict getRestrict()
        Get the restriction.
        Returns:
        Restrict object
      • hasIfExistsModifier

        public boolean hasIfExistsModifier()
        Check whether the IF EXISTS clause is present.
        Returns:
        true if IF EXISTS clause is present