Class StandardChangelogPrintService
java.lang.Object
liquibase.diff.output.changelog.core.StandardChangelogPrintService
- All Implemented Interfaces:
ChangelogPrintService,Plugin
OSS implementation of the ChangelogPrintService, which supports print
operations that occurring GenerateChangeLog and DiffChangelog operations
-
Field Summary
FieldsFields inherited from interface liquibase.plugin.Plugin
PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidprint(Resource ignored, PrintStream out, ChangeLogSerializer changeLogSerializer) voidprintChangeSets(ChangeLogSerializer changeLogSerializer, Resource file, List<ChangeLogChild> changelogChildren, OpenOptions openOptions) Write passed ChangeLogChild objects to the changelog.voidprintNew(ChangeLogSerializer changeLogSerializer, Resource file) Print change sets to a new changelog file during generateChangelog and diffChangelogvoidprintToExisting(ChangeLogSerializer changeLogSerializer, Resource file, boolean overwriteOutputFile) Append new change sets to an existing changelogsetDiffChangelog(DiffToChangeLog diffToChangeLog)
-
Field Details
-
diffToChangeLog
-
-
Constructor Details
-
StandardChangelogPrintService
public StandardChangelogPrintService()
-
-
Method Details
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceChangelogPrintService
-
setDiffChangelog
- Specified by:
setDiffChangelogin interfaceChangelogPrintService
-
printNew
public void printNew(ChangeLogSerializer changeLogSerializer, Resource file) throws ParserConfigurationException, IOException, DatabaseException Print change sets to a new changelog file during generateChangelog and diffChangelog- Specified by:
printNewin interfaceChangelogPrintService- Parameters:
changeLogSerializer- The ChangeLogSerializer used to write the change setsfile- The changelog file to write- Throws:
ParserConfigurationException- ThrownIOException- ThrownDatabaseException- Thrown
-
printToExisting
public void printToExisting(ChangeLogSerializer changeLogSerializer, Resource file, boolean overwriteOutputFile) throws ParserConfigurationException, IOException, DatabaseException Append new change sets to an existing changelog- Specified by:
printToExistingin interfaceChangelogPrintService- Parameters:
changeLogSerializer- The ChangeLogSerializer used to write the change setsfile- The changelog file to writeoverwriteOutputFile- Overwrite the existing file if true- Throws:
ParserConfigurationException- ThrownIOException- ThrownDatabaseException- Thrown
-
printChangeSets
public void printChangeSets(ChangeLogSerializer changeLogSerializer, Resource file, List<ChangeLogChild> changelogChildren, OpenOptions openOptions) throws IOException Write passed ChangeLogChild objects to the changelog. The ChangeLogChild type allows the list fo hold both ChangeSet and Include object types- Specified by:
printChangeSetsin interfaceChangelogPrintService- Parameters:
changeLogSerializer- The ChangeLogSerializer used to write the change setsfile- The changelog file to writechangelogChildren- The List of ChangelogChild to printopenOptions- OpenOptions to use when opening the file- Throws:
IOException- Thrown
-
print
public void print(Resource ignored, PrintStream out, ChangeLogSerializer changeLogSerializer) throws ParserConfigurationException, IOException, DatabaseException - Specified by:
printin interfaceChangelogPrintService- Parameters:
ignored- Not usedout- The stream to write tochangeLogSerializer- The ChangeLogSerializer used to write the change sets- Throws:
ParserConfigurationException- ThrownIOException- ThrownDatabaseException- Thrown
-