liquibase.license.LicenseInstallResult 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.
The newest version!
package liquibase.license;
import java.util.ArrayList;
import java.util.List;
/**
* encapsulates overall install result and any messages.
*/
public class LicenseInstallResult {
public int code;
public List messages;
public LicenseInstallResult(int code) {
this.code = code;
this.messages = new ArrayList<>();
}
public LicenseInstallResult(int code, String message) {
this.code = code;
this.messages = new ArrayList<>();
messages.add(message);
}
public LicenseInstallResult(int code, List results) {
this.code = code;
this.messages = new ArrayList<>();
messages.addAll(results);
}
public void add(LicenseInstallResult result) {
if (result.code != 0) {
this.code = result.code;
}
this.messages.addAll(result.messages);
}
}