public class DiffToChangeLog extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DATABASE_CHANGE_LOG_CLOSING_XML_TAG |
static String |
DIFF_OUTPUT_CONTROL_SCOPE_KEY |
static String |
DIFF_SNAPSHOT_DATABASE |
static String |
EXTERNAL_FILE_DIR_SCOPE_KEY |
static String |
ORDER_ATTRIBUTE |
Constructor and Description |
---|
DiffToChangeLog(DiffOutputControl diffOutputControl) |
DiffToChangeLog(DiffResult diffResult,
DiffOutputControl diffOutputControl) |
Modifier and Type | Method and Description |
---|---|
protected void |
addDependencies(DependencyUtil.DependencyGraph<String> graph,
List<String> schemas,
Database database)
Adds dependencies to the graph as schema.object_name.
|
List<ChangeSet> |
generateChangeSets() |
protected String |
generateId(Change[] changes) |
protected String |
getChangeSetAuthor() |
String |
getChangeSetPath() |
protected List<Class<? extends DatabaseObject>> |
getOrderedOutputTypes(Class<? extends ChangeGenerator> generatorType) |
void |
print(PrintStream out) |
void |
print(PrintStream out,
ChangeLogSerializer changeLogSerializer)
Prints changeLog that would bring the target database to be the same as
the reference database
|
void |
print(String changeLogFile) |
void |
print(String changeLogFile,
Boolean overwriteOutputFile) |
void |
print(String changeLogFile,
ChangeLogSerializer changeLogSerializer) |
void |
print(String changeLogFile,
ChangeLogSerializer changeLogSerializer,
Boolean overwriteOutputFile) |
void |
printNew(ChangeLogSerializer changeLogSerializer,
Resource file)
Prints changeLog that would bring the target database to be the same as
the reference database
|
void |
setChangeSetAuthor(String changeSetAuthor) |
void |
setChangeSetContext(String changeSetContext) |
void |
setChangeSetPath(String changeSetPath) |
void |
setDiffResult(DiffResult diffResult) |
void |
setIdRoot(String idRoot) |
protected boolean |
supportsSortingObjects(Database database)
Used by
sortMissingObjects(Collection, Database) to determine whether to go into the sorting logic. |
protected boolean |
useSeparateChangeSets(Change[] changes) |
public static final String ORDER_ATTRIBUTE
public static final String DATABASE_CHANGE_LOG_CLOSING_XML_TAG
public static final String EXTERNAL_FILE_DIR_SCOPE_KEY
public static final String DIFF_OUTPUT_CONTROL_SCOPE_KEY
public static final String DIFF_SNAPSHOT_DATABASE
public DiffToChangeLog(DiffResult diffResult, DiffOutputControl diffOutputControl)
public DiffToChangeLog(DiffOutputControl diffOutputControl)
public void setDiffResult(DiffResult diffResult)
public void setChangeSetContext(String changeSetContext)
public void print(String changeLogFile) throws ParserConfigurationException, IOException, DatabaseException
public void print(String changeLogFile, Boolean overwriteOutputFile) throws ParserConfigurationException, IOException, DatabaseException
public void print(PrintStream out) throws ParserConfigurationException, IOException, DatabaseException
public void print(String changeLogFile, ChangeLogSerializer changeLogSerializer) throws ParserConfigurationException, IOException, DatabaseException
public void print(String changeLogFile, ChangeLogSerializer changeLogSerializer, Boolean overwriteOutputFile) throws ParserConfigurationException, IOException, DatabaseException
public void printNew(ChangeLogSerializer changeLogSerializer, Resource file) throws ParserConfigurationException, IOException, DatabaseException
public void print(PrintStream out, ChangeLogSerializer changeLogSerializer) throws ParserConfigurationException, IOException, DatabaseException
protected boolean supportsSortingObjects(Database database)
sortMissingObjects(Collection, Database)
to determine whether to go into the sorting logic.protected void addDependencies(DependencyUtil.DependencyGraph<String> graph, List<String> schemas, Database database) throws DatabaseException
DatabaseException
protected List<Class<? extends DatabaseObject>> getOrderedOutputTypes(Class<? extends ChangeGenerator> generatorType)
protected boolean useSeparateChangeSets(Change[] changes)
protected String getChangeSetAuthor()
public void setChangeSetAuthor(String changeSetAuthor)
public String getChangeSetPath()
public void setChangeSetPath(String changeSetPath)
public void setIdRoot(String idRoot)
Copyright © 2023 Liquibase.org. All rights reserved.