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

liquibase.logging.mdc.customobjects.SimpleStatus Maven / Gradle / Ivy

The newest version!
package liquibase.logging.mdc.customobjects;

import liquibase.changelog.ChangeSet;
import liquibase.logging.mdc.CustomMdcObject;

import java.util.List;

public class SimpleStatus implements CustomMdcObject {

    private String message;
    private String liquibaseTargetUrl;
    private int changesetCount;

    public SimpleStatus() {
    }

    public SimpleStatus(String message, String url, List unrunChangeSets) {
        this.message = message;
        this.liquibaseTargetUrl = url;
        this.changesetCount = unrunChangeSets.size();
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getLiquibaseTargetUrl() {
        return liquibaseTargetUrl;
    }

    public void setLiquibaseTargetUrl(String liquibaseTargetUrl) {
        this.liquibaseTargetUrl = liquibaseTargetUrl;
    }

    public int getChangesetCount() {
        return changesetCount;
    }

    public void setChangesetCount(int changesetCount) {
        this.changesetCount = changesetCount;
    }

    @Override
    public String toString() {
        return "SimpleStatus{" +
                "message='" + message + '\'' +
                ", liquibaseTargetUrl='" + liquibaseTargetUrl + '\'' +
                ", changesetCount=" + changesetCount +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy