liquibase.dbdoc.RecentChangesWriter Maven / Gradle / Ivy
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.IOException;
import java.io.Writer;
import java.util.List;
public class RecentChangesWriter extends HTMLWriter {
public RecentChangesWriter(File rootOutputDir, Database database) {
super(new File(rootOutputDir, "recent"), database);
}
@Override
protected String createTitle(Object object) {
return "Recent Changes";
}
@Override
protected void writeBody(Writer fileWriter, Object object, List ranChanges, List changesToRun) throws IOException, DatabaseHistoryException, DatabaseException {
writeCustomHTML(fileWriter, object, ranChanges, database);
writeChanges("Most Recent Changes", fileWriter, ranChanges);
}
@Override
protected void writeCustomHTML(Writer fileWriter, Object object, List changes, Database database) throws IOException {
}
}