Package liquibase.parser.core.sql
Class SqlChangeLogParser
java.lang.Object
liquibase.parser.core.sql.SqlChangeLogParser
- All Implemented Interfaces:
ChangeLogParser
,LiquibaseParser
,PrioritizedService
-
Field Summary
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
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.
-
Constructor Details
-
SqlChangeLogParser
public SqlChangeLogParser()
-
-
Method Details
-
supports
Description copied from interface:ChangeLogParser
Checks if the file format is supported by an implementing ChangeLogParser and returns true if that is the case.- Specified by:
supports
in interfaceChangeLogParser
- Parameters:
changeLogFile
- the location of the changelog fileresourceAccessor
- the resource accessor- Returns:
- true if the file format is supported, false if it is not.
-
getPriority
public int getPriority()- Specified by:
getPriority
in interfacePrioritizedService
-
parse
public DatabaseChangeLog parse(String physicalChangeLogLocation, ChangeLogParameters changeLogParameters, ResourceAccessor resourceAccessor) throws ChangeLogParseException Description copied from interface:ChangeLogParser
Parses a Liquibase database changelog and returns the parsed form as an object.- Specified by:
parse
in interfaceChangeLogParser
- Parameters:
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 accessor- Returns:
- the parsed ChangeLog in object form
- Throws:
ChangeLogParseException
- if an error occurs during parsing of the ChangeLog
-