public class JsonNoSqlChangeLogParser extends Object implements liquibase.parser.ChangeLogParser
| Modifier and Type | Field and Description |
|---|---|
protected liquibase.logging.Logger |
log |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
static String |
RAW_JSON_FIELD |
| Constructor and Description |
|---|
JsonNoSqlChangeLogParser() |
| Modifier and Type | Method and Description |
|---|---|
liquibase.logging.Logger |
getLogger() |
int |
getPriority() |
protected String[] |
getSupportedFileExtensions() |
liquibase.changelog.DatabaseChangeLog |
parse(String physicalChangeLogLocation,
liquibase.changelog.ChangeLogParameters changeLogParameters,
liquibase.resource.ResourceAccessor resourceAccessor)
Parses a Liquibase database changelog and returns the parsed form as an object.
|
protected void |
replaceParameters(com.fasterxml.jackson.core.TreeNode obj,
liquibase.changelog.ChangeLogParameters changeLogParameters,
liquibase.changelog.DatabaseChangeLog changeLog) |
boolean |
supports(String changeLogFile,
liquibase.resource.ResourceAccessor resourceAccessor)
Checks if the file format is supported by an implementing ChangeLogParser and returns true if that is the case.
|
public static final String RAW_JSON_FIELD
protected liquibase.logging.Logger log
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
public int getPriority()
getPriority in interface liquibase.servicelocator.PrioritizedServicepublic boolean supports(String changeLogFile, liquibase.resource.ResourceAccessor resourceAccessor)
supports in interface liquibase.parser.ChangeLogParserchangeLogFile - the location of the changelog fileresourceAccessor - the resource accessorprotected String[] getSupportedFileExtensions()
public liquibase.logging.Logger getLogger()
public liquibase.changelog.DatabaseChangeLog parse(String physicalChangeLogLocation, liquibase.changelog.ChangeLogParameters changeLogParameters, liquibase.resource.ResourceAccessor resourceAccessor) throws liquibase.exception.ChangeLogParseException
parse in interface liquibase.parser.ChangeLogParserphysicalChangeLogLocation - the physical location of the changelog. The exakt 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 accessorliquibase.exception.ChangeLogParseException - if an error occurs during parsing of the ChangeLogprotected void replaceParameters(com.fasterxml.jackson.core.TreeNode obj,
liquibase.changelog.ChangeLogParameters changeLogParameters,
liquibase.changelog.DatabaseChangeLog changeLog)
Copyright © 2021 Liquibase.org. All rights reserved.