public abstract class AbstractEntityUnload extends Object implements liquibase.change.custom.CustomTaskChange
| Modifier and Type | Field and Description |
|---|---|
static String |
RELATIVE_PATH |
| Constructor and Description |
|---|
AbstractEntityUnload() |
| Modifier and Type | Method and Description |
|---|---|
protected com.fasterxml.jackson.databind.JsonNode |
asJson(com.fasterxml.jackson.databind.ObjectMapper mapper,
ResultSet resultSet,
String column) |
protected File |
buildDirectory(String... children) |
protected com.fasterxml.jackson.databind.ObjectMapper |
createMapper() |
void |
execute(liquibase.database.Database database) |
String |
getConfirmationMessage() |
String |
getPath() |
void |
setFileOpener(liquibase.resource.ResourceAccessor resourceAccessor) |
void |
setPath(String path) |
void |
setUp() |
protected abstract void |
unload(liquibase.database.jvm.JdbcConnection connection) |
liquibase.exception.ValidationErrors |
validate(liquibase.database.Database database) |
public static final String RELATIVE_PATH
public String getPath()
public void setPath(String path)
public void execute(liquibase.database.Database database)
throws liquibase.exception.CustomChangeException
execute in interface liquibase.change.custom.CustomTaskChangeliquibase.exception.CustomChangeExceptionprotected abstract void unload(liquibase.database.jvm.JdbcConnection connection)
throws Exception
Exceptionpublic String getConfirmationMessage()
getConfirmationMessage in interface liquibase.change.custom.CustomChangepublic void setUp()
throws liquibase.exception.SetupException
setUp in interface liquibase.change.custom.CustomChangeliquibase.exception.SetupExceptionpublic void setFileOpener(liquibase.resource.ResourceAccessor resourceAccessor)
setFileOpener in interface liquibase.change.custom.CustomChangepublic liquibase.exception.ValidationErrors validate(liquibase.database.Database database)
validate in interface liquibase.change.custom.CustomChangeprotected com.fasterxml.jackson.databind.JsonNode asJson(com.fasterxml.jackson.databind.ObjectMapper mapper,
ResultSet resultSet,
String column)
throws Exception
Exceptionprotected com.fasterxml.jackson.databind.ObjectMapper createMapper()
Copyright © 2018–2021 Tesler. All rights reserved.