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

liquibase.changelog.ModifyChangeSets Maven / Gradle / Ivy

The newest version!
package liquibase.changelog;

import liquibase.Scope;
import liquibase.parser.core.ParsedNode;
import liquibase.parser.core.ParsedNodeException;

/**
 * Container class to handle the modifyChangeSets tag.
 * Other attributes may be added later
 */
public class ModifyChangeSets {
    private final String runWith;
    private final String runWithSpool;

    /**
     *
     * @param node         The ParsedNode to use
     *
     */
    public ModifyChangeSets(ParsedNode node) throws ParsedNodeException  {
        this.runWith = (String) node.getChildValue(null, "runWith");
        this.runWithSpool = (String) node.getChildValue(null, "runWithSpoolFile");
    }

    /**
     *
     * @param runWith      The native executor to execute all included change sets with. Can be null
     * @param runWithSpool The name of the spool file to be created
     *
     */
    public ModifyChangeSets(String runWith, String runWithSpool) {
        this.runWith = runWith;
        this.runWithSpool = runWithSpool;
    }

    public String getRunWith() {
        return runWith;
    }

    public String getRunWithSpool() {
        return runWithSpool;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy