All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liquibase.precondition.core.TableIsEmptyPrecondition Maven / Gradle / Ivy

There is a newer version: 4.29.1
Show newest version
package liquibase.precondition.core;

public class TableIsEmptyPrecondition extends RowCountPrecondition {

    public TableIsEmptyPrecondition() {
        this.setExpectedRows(0);
    }

    @Override
    protected String getFailureMessage(int result, int expectedRows) {
        return "Table "+getTableName()+" is not empty. Contains "+result+" rows";
    }

    @Override
    public String getName() {
        return "tableIsEmpty";
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy