liquibase.dbdoc.PendingChangesWriter 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.dbdoc;
import liquibase.change.Change;
import liquibase.database.Database;
import liquibase.exception.DatabaseException;
import liquibase.exception.DatabaseHistoryException;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.List;
public class PendingChangesWriter extends HTMLWriter {
public PendingChangesWriter(File rootOutputDir, Database database) {
super(new File(rootOutputDir, "pending"), database);
}
@Override
protected String createTitle(Object object) {
return "Pending Changes";
}
@Override
protected void writeBody(FileWriter fileWriter, Object object, List ranChanges, List changesToRun) throws IOException, DatabaseHistoryException, DatabaseException {
writeCustomHTML(fileWriter, object, ranChanges, database);
writeChanges("Pending Changes", fileWriter, changesToRun);
}
@Override
protected void writeCustomHTML(FileWriter fileWriter, Object object, List changes, Database database) throws IOException {
}
}