Top Constructors Methods
liquibase.parser.core.sql

public Class SqlChangeLogParser

extends Object
implements ChangeLogParser
Class Inheritance
All Implemented Interfaces
liquibase.parser.ChangeLogParser, liquibase.parser.LiquibaseParser, liquibase.servicelocator.PrioritizedService
Annotations
@SuppressWarnings:java:S2583
Imports
liquibase.Scope, liquibase.change.core.RawSQLChange, liquibase.changelog.ChangeLogParameters, .ChangeSet, .DatabaseChangeLog, liquibase.changeset.ChangeSetService, .ChangeSetServiceFactory, liquibase.database.ObjectQuotingStrategy, liquibase.exception.ChangeLogParseException, liquibase.parser.ChangeLogParser, liquibase.resource.Resource, .ResourceAccessor, liquibase.util.StreamUtil, .StringUtil, java.io.IOException

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
public DatabaseChangeLog
parse(String
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.
physicalChangeLogLocation
,
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)
changeLogParameters
,
ResourceAccessor
a Java resource accessor
resourceAccessor
)

Implements liquibase.parser.ChangeLogParser.parse.

Parses a Liquibase database changelog and returns the parsed form as an object.

public boolean
supports(String
the location of the changelog file
changeLogFile
,
ResourceAccessor
the resource accessor
resourceAccessor
)

Implements liquibase.parser.ChangeLogParser.supports.

Checks if the file format is supported by an implementing ChangeLogParser and returns true if that is the case.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SqlChangeLogParserback to summary
public SqlChangeLogParser()

Method Detail

getPriorityback to summary
public int getPriority()

Implements liquibase.servicelocator.PrioritizedService.getPriority.

Annotations
@Override
parseback to summary
public DatabaseChangeLog parse(String physicalChangeLogLocation, ChangeLogParameters changeLogParameters, ResourceAccessor resourceAccessor) throws ChangeLogParseException

Implements liquibase.parser.ChangeLogParser.parse.

Doc from liquibase.parser.ChangeLogParser.parse.

Parses a Liquibase database changelog and returns the parsed form as an object.

Parameters
physicalChangeLogLocation:String

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: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:ResourceAccessor

a Java resource accessor

Returns:DatabaseChangeLog

the parsed ChangeLog in object form

Annotations
@Override
Exceptions
ChangeLogParseException:
if an error occurs during parsing of the ChangeLog
supportsback to summary
public boolean supports(String changeLogFile, ResourceAccessor resourceAccessor)

Implements liquibase.parser.ChangeLogParser.supports.

Doc from liquibase.parser.ChangeLogParser.supports.

Checks if the file format is supported by an implementing ChangeLogParser and returns true if that is the case.

Parameters
changeLogFile:String

the location of the changelog file

resourceAccessor:ResourceAccessor

the resource accessor

Returns:boolean

true if the file format is supported, false if it is not.

Annotations
@Override