Class DropTable

    • Constructor Detail

      • DropTable

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

      • ifExists

        public DropTable ifExists()
        Add IF EXISTS clause into a DROP TABLE statement.
        Returns:
        this for fluent programming
      • cascadeConstraints

        public DropTable cascadeConstraints()
        Add CASCADE CONSTRAINTS clause into a DROP TABLE statement.
        Returns:
        this for fluent programming
      • getTableName

        protected String getTableName()
        Get the table name.
        Returns:
        table name
      • hasIfExistsModifier

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

        protected CascadeConstraints getCascadeConstraints()
        Get the CASCADE CONSTRAINTS option.
        Returns:
        CASCADE CONSTRAINTS option