liquibase.logging.mdc.customobjects.Status Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-core Show documentation
Show all versions of liquibase-core Show documentation
Liquibase is a tool for managing and executing database changes.
package liquibase.logging.mdc.customobjects;
import liquibase.changelog.ChangeSet;
import liquibase.logging.mdc.CustomMdcObject;
import java.util.List;
import java.util.stream.Collectors;
public class Status extends SimpleStatus implements CustomMdcObject {
private List undeployedChangesets;
public Status() {
}
public Status(String message, String url, List unrunChangeSets) {
super(message, url, unrunChangeSets);
this.undeployedChangesets = unrunChangeSets.stream().map(urcs -> new Changeset(urcs.getFilePath(), urcs.getAuthor(), urcs.getId())).collect(Collectors.toList());
}
public List getUndeployedChangesets() {
return undeployedChangesets;
}
public void setUndeployedChangesets(List undeployedChangesets) {
this.undeployedChangesets = undeployedChangesets;
}
public static class Changeset {
private String changelogPath;
private String changesetAuthor;
private String changesetId;
public Changeset() {
}
public Changeset(String changelogPath, String changesetAuthor, String changesetId) {
this.changelogPath = changelogPath;
this.changesetAuthor = changesetAuthor;
this.changesetId = changesetId;
}
public String getChangelogPath() {
return changelogPath;
}
public void setChangelogPath(String changelogPath) {
this.changelogPath = changelogPath;
}
public String getChangesetAuthor() {
return changesetAuthor;
}
public void setChangesetAuthor(String changesetAuthor) {
this.changesetAuthor = changesetAuthor;
}
public String getChangesetId() {
return changesetId;
}
public void setChangesetId(String changesetId) {
this.changesetId = changesetId;
}
}
}