liquibase.diff.output.changelog
Class DiffToChangeLog

java.lang.Object
  extended by liquibase.diff.output.changelog.DiffToChangeLog

public class DiffToChangeLog
extends Object


Constructor Summary
DiffToChangeLog(DiffOutputControl diffOutputControl)
           
DiffToChangeLog(DiffResult diffResult, DiffOutputControl diffOutputControl)
           
 
Method Summary
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()
           
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, ChangeLogSerializer changeLogSerializer)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiffToChangeLog

public DiffToChangeLog(DiffResult diffResult,
                       DiffOutputControl diffOutputControl)

DiffToChangeLog

public DiffToChangeLog(DiffOutputControl diffOutputControl)
Method Detail

setDiffResult

public void setDiffResult(DiffResult diffResult)

setChangeSetContext

public void setChangeSetContext(String changeSetContext)

print

public void print(String changeLogFile)
           throws ParserConfigurationException,
                  IOException,
                  DatabaseException
Throws:
ParserConfigurationException
IOException
DatabaseException

print

public void print(PrintStream out)
           throws ParserConfigurationException,
                  IOException,
                  DatabaseException
Throws:
ParserConfigurationException
IOException
DatabaseException

print

public void print(String changeLogFile,
                  ChangeLogSerializer changeLogSerializer)
           throws ParserConfigurationException,
                  IOException,
                  DatabaseException
Throws:
ParserConfigurationException
IOException
DatabaseException

print

public void print(PrintStream out,
                  ChangeLogSerializer changeLogSerializer)
           throws ParserConfigurationException,
                  IOException,
                  DatabaseException
Prints changeLog that would bring the target database to be the same as the reference database

Throws:
ParserConfigurationException
IOException
DatabaseException

generateChangeSets

public List<ChangeSet> generateChangeSets()

supportsSortingObjects

protected boolean supportsSortingObjects(Database database)
Used by sortMissingObjects(Collection, Database) to determine whether to go into the sorting logic.


addDependencies

protected void addDependencies(DependencyUtil.DependencyGraph<String> graph,
                               List<String> schemas,
                               Database database)
                        throws DatabaseException
Adds dependencies to the graph as schema.object_name.

Throws:
DatabaseException

getOrderedOutputTypes

protected List<Class<? extends DatabaseObject>> getOrderedOutputTypes(Class<? extends ChangeGenerator> generatorType)

getChangeSetAuthor

protected String getChangeSetAuthor()

setChangeSetAuthor

public void setChangeSetAuthor(String changeSetAuthor)

getChangeSetPath

public String getChangeSetPath()

setChangeSetPath

public void setChangeSetPath(String changeSetPath)

setIdRoot

public void setIdRoot(String idRoot)

generateId

protected String generateId()


Copyright © 2016 Liquibase.org. All rights reserved.