public class FormattedSqlChangeLogParser extends Object implements ChangeLogParser
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
Constructor and Description |
---|
FormattedSqlChangeLogParser() |
Modifier and Type | Method and Description |
---|---|
int |
getPriority() |
protected InputStream |
openChangeLogFile(String physicalChangeLogLocation,
ResourceAccessor resourceAccessor) |
DatabaseChangeLog |
parse(String physicalChangeLogLocation,
ChangeLogParameters changeLogParameters,
ResourceAccessor resourceAccessor)
Parses a Liquibase database changelog and returns the parsed form as an object.
|
boolean |
supports(String changeLogFile,
ResourceAccessor resourceAccessor)
Checks if the file format is supported by an implementing ChangeLogParser and returns true if that is the case.
|
protected boolean |
supportsExtension(String changelogFile) |
public boolean supports(String changeLogFile, ResourceAccessor resourceAccessor)
ChangeLogParser
supports
in interface ChangeLogParser
changeLogFile
- the location of the changelog fileresourceAccessor
- the resource accessorpublic int getPriority()
getPriority
in interface PrioritizedService
public DatabaseChangeLog parse(String physicalChangeLogLocation, ChangeLogParameters changeLogParameters, ResourceAccessor resourceAccessor) throws ChangeLogParseException
ChangeLogParser
parse
in interface ChangeLogParser
physicalChangeLogLocation
- the physical location of the changelog. The exact file formats and locations
where can load changelog files from depend on the implementations and capabilities of the implementing parsers.changeLogParameters
- parameters given by the end user that should be applied while parsing the changelog
(i.e. replacement of ${placeholders} inside the changelogs with user-defined content)resourceAccessor
- a Java resource accessorChangeLogParseException
- if an error occurs during parsing of the ChangeLogprotected boolean supportsExtension(String changelogFile)
protected InputStream openChangeLogFile(String physicalChangeLogLocation, ResourceAccessor resourceAccessor) throws IOException
IOException
Copyright © 2023 Liquibase.org. All rights reserved.