com.rsmart.kuali.tools.liquibase
Class DiffResult

java.lang.Object
  extended by com.rsmart.kuali.tools.liquibase.DiffResult

public class DiffResult
extends Object


Constructor Summary
DiffResult(liquibase.snapshot.DatabaseSnapshot referenceDatabaseSnapshot, liquibase.snapshot.DatabaseSnapshot targetDatabaseSnapshot)
           
 
Method Summary
 void addChangedColumn(liquibase.database.structure.Column columnName)
           
 void addChangedView(liquibase.database.structure.View viewName)
           
 void addMissingColumn(liquibase.database.structure.Column columnName)
           
 void addMissingForeignKey(liquibase.database.structure.ForeignKey fkName)
           
 void addMissingIndex(liquibase.database.structure.Index fkName)
           
 void addMissingPrimaryKey(liquibase.database.structure.PrimaryKey primaryKey)
           
 void addMissingSequence(liquibase.database.structure.Sequence sequence)
           
 void addMissingTable(liquibase.database.structure.Table table)
           
 void addMissingUniqueConstraint(liquibase.database.structure.UniqueConstraint uniqueConstraint)
           
 void addMissingView(liquibase.database.structure.View viewName)
           
 void addUnexpectedColumn(liquibase.database.structure.Column columnName)
           
 void addUnexpectedForeignKey(liquibase.database.structure.ForeignKey fkName)
           
 void addUnexpectedIndex(liquibase.database.structure.Index fkName)
           
 void addUnexpectedPrimaryKey(liquibase.database.structure.PrimaryKey primaryKey)
           
 void addUnexpectedSequence(liquibase.database.structure.Sequence sequence)
           
 void addUnexpectedTable(liquibase.database.structure.Table table)
           
 void addUnexpectedUniqueConstraint(liquibase.database.structure.UniqueConstraint uniqueConstraint)
           
 void addUnexpectedView(liquibase.database.structure.View viewName)
           
 boolean differencesFound()
           
protected  String generateId()
           
 SortedSet<liquibase.database.structure.Column> getChangedColumns()
           
 SortedSet<liquibase.database.structure.View> getChangedViews()
           
 String getChangeSetContext()
           
 String getDataDir()
           
 SortedSet<liquibase.database.structure.Column> getMissingColumns()
           
 SortedSet<liquibase.database.structure.ForeignKey> getMissingForeignKeys()
           
 SortedSet<liquibase.database.structure.Index> getMissingIndexes()
           
 SortedSet<liquibase.database.structure.PrimaryKey> getMissingPrimaryKeys()
           
 SortedSet<liquibase.database.structure.Sequence> getMissingSequences()
           
 SortedSet<liquibase.database.structure.Table> getMissingTables()
           
 SortedSet<liquibase.database.structure.UniqueConstraint> getMissingUniqueConstraints()
           
 SortedSet<liquibase.database.structure.View> getMissingViews()
           
 liquibase.diff.DiffComparison getProductName()
           
 liquibase.diff.DiffComparison getProductVersion()
           
 SortedSet<liquibase.database.structure.Column> getUnexpectedColumns()
           
 SortedSet<liquibase.database.structure.ForeignKey> getUnexpectedForeignKeys()
           
 SortedSet<liquibase.database.structure.Index> getUnexpectedIndexes()
           
 SortedSet<liquibase.database.structure.PrimaryKey> getUnexpectedPrimaryKeys()
           
 SortedSet<liquibase.database.structure.Sequence> getUnexpectedSequences()
           
 SortedSet<liquibase.database.structure.Table> getUnexpectedTables()
           
 SortedSet<liquibase.database.structure.UniqueConstraint> getUnexpectedUniqueConstraints()
           
 SortedSet<liquibase.database.structure.View> getUnexpectedViews()
           
 void printChangeLog(PrintStream out, liquibase.database.Database targetDatabase)
           
 void printChangeLog(PrintStream out, liquibase.database.Database targetDatabase, liquibase.serializer.ChangeLogSerializer changeLogSerializer)
          Prints changeLog that would bring the target database to be the same as the reference database
 void printChangeLog(String changeLogFile, liquibase.database.Database targetDatabase)
           
 void printChangeLog(String changeLogFile, liquibase.database.Database targetDatabase, liquibase.serializer.ChangeLogSerializer changeLogSerializer)
           
 void printResult(PrintStream out)
           
 void setChangeSetAuthor(String changeSetAuthor)
           
 void setChangeSetContext(String changeSetContext)
           
 void setDataDir(String dataDir)
           
 void setDiffData(boolean diffData)
           
 void setIdRoot(String idRoot)
           
 void setProductName(liquibase.diff.DiffComparison productName)
           
 void setProductVersion(liquibase.diff.DiffComparison product)
           
 boolean shouldDiffData()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiffResult

public DiffResult(liquibase.snapshot.DatabaseSnapshot referenceDatabaseSnapshot,
                  liquibase.snapshot.DatabaseSnapshot targetDatabaseSnapshot)
Method Detail

getProductName

public liquibase.diff.DiffComparison getProductName()

setProductName

public void setProductName(liquibase.diff.DiffComparison productName)

getProductVersion

public liquibase.diff.DiffComparison getProductVersion()

setProductVersion

public void setProductVersion(liquibase.diff.DiffComparison product)

addMissingTable

public void addMissingTable(liquibase.database.structure.Table table)

getMissingTables

public SortedSet<liquibase.database.structure.Table> getMissingTables()

addUnexpectedTable

public void addUnexpectedTable(liquibase.database.structure.Table table)

getUnexpectedTables

public SortedSet<liquibase.database.structure.Table> getUnexpectedTables()

addMissingView

public void addMissingView(liquibase.database.structure.View viewName)

getMissingViews

public SortedSet<liquibase.database.structure.View> getMissingViews()

addUnexpectedView

public void addUnexpectedView(liquibase.database.structure.View viewName)

getUnexpectedViews

public SortedSet<liquibase.database.structure.View> getUnexpectedViews()

addChangedView

public void addChangedView(liquibase.database.structure.View viewName)

getChangedViews

public SortedSet<liquibase.database.structure.View> getChangedViews()

addMissingColumn

public void addMissingColumn(liquibase.database.structure.Column columnName)

getMissingColumns

public SortedSet<liquibase.database.structure.Column> getMissingColumns()

addUnexpectedColumn

public void addUnexpectedColumn(liquibase.database.structure.Column columnName)

getUnexpectedColumns

public SortedSet<liquibase.database.structure.Column> getUnexpectedColumns()

addChangedColumn

public void addChangedColumn(liquibase.database.structure.Column columnName)

getChangedColumns

public SortedSet<liquibase.database.structure.Column> getChangedColumns()

addMissingForeignKey

public void addMissingForeignKey(liquibase.database.structure.ForeignKey fkName)

getMissingForeignKeys

public SortedSet<liquibase.database.structure.ForeignKey> getMissingForeignKeys()

addUnexpectedForeignKey

public void addUnexpectedForeignKey(liquibase.database.structure.ForeignKey fkName)

getUnexpectedForeignKeys

public SortedSet<liquibase.database.structure.ForeignKey> getUnexpectedForeignKeys()

addMissingIndex

public void addMissingIndex(liquibase.database.structure.Index fkName)

getMissingIndexes

public SortedSet<liquibase.database.structure.Index> getMissingIndexes()

addUnexpectedIndex

public void addUnexpectedIndex(liquibase.database.structure.Index fkName)

getUnexpectedIndexes

public SortedSet<liquibase.database.structure.Index> getUnexpectedIndexes()

addMissingPrimaryKey

public void addMissingPrimaryKey(liquibase.database.structure.PrimaryKey primaryKey)

getMissingPrimaryKeys

public SortedSet<liquibase.database.structure.PrimaryKey> getMissingPrimaryKeys()

addUnexpectedPrimaryKey

public void addUnexpectedPrimaryKey(liquibase.database.structure.PrimaryKey primaryKey)

getUnexpectedPrimaryKeys

public SortedSet<liquibase.database.structure.PrimaryKey> getUnexpectedPrimaryKeys()

addMissingSequence

public void addMissingSequence(liquibase.database.structure.Sequence sequence)

getMissingSequences

public SortedSet<liquibase.database.structure.Sequence> getMissingSequences()

addUnexpectedSequence

public void addUnexpectedSequence(liquibase.database.structure.Sequence sequence)

getUnexpectedSequences

public SortedSet<liquibase.database.structure.Sequence> getUnexpectedSequences()

addMissingUniqueConstraint

public void addMissingUniqueConstraint(liquibase.database.structure.UniqueConstraint uniqueConstraint)

getMissingUniqueConstraints

public SortedSet<liquibase.database.structure.UniqueConstraint> getMissingUniqueConstraints()

addUnexpectedUniqueConstraint

public void addUnexpectedUniqueConstraint(liquibase.database.structure.UniqueConstraint uniqueConstraint)

getUnexpectedUniqueConstraints

public SortedSet<liquibase.database.structure.UniqueConstraint> getUnexpectedUniqueConstraints()

shouldDiffData

public boolean shouldDiffData()

setDiffData

public void setDiffData(boolean diffData)

getDataDir

public String getDataDir()

setDataDir

public void setDataDir(String dataDir)

getChangeSetContext

public String getChangeSetContext()

setChangeSetContext

public void setChangeSetContext(String changeSetContext)

differencesFound

public boolean differencesFound()
                         throws liquibase.exception.DatabaseException,
                                IOException
Throws:
liquibase.exception.DatabaseException
IOException

printResult

public void printResult(PrintStream out)
                 throws liquibase.exception.DatabaseException
Throws:
liquibase.exception.DatabaseException

printChangeLog

public void printChangeLog(String changeLogFile,
                           liquibase.database.Database targetDatabase)
                    throws ParserConfigurationException,
                           IOException,
                           liquibase.exception.DatabaseException
Throws:
ParserConfigurationException
IOException
liquibase.exception.DatabaseException

printChangeLog

public void printChangeLog(PrintStream out,
                           liquibase.database.Database targetDatabase)
                    throws ParserConfigurationException,
                           IOException,
                           liquibase.exception.DatabaseException
Throws:
ParserConfigurationException
IOException
liquibase.exception.DatabaseException

printChangeLog

public void printChangeLog(String changeLogFile,
                           liquibase.database.Database targetDatabase,
                           liquibase.serializer.ChangeLogSerializer changeLogSerializer)
                    throws ParserConfigurationException,
                           IOException,
                           liquibase.exception.DatabaseException
Throws:
ParserConfigurationException
IOException
liquibase.exception.DatabaseException

printChangeLog

public void printChangeLog(PrintStream out,
                           liquibase.database.Database targetDatabase,
                           liquibase.serializer.ChangeLogSerializer changeLogSerializer)
                    throws ParserConfigurationException,
                           IOException,
                           liquibase.exception.DatabaseException
Prints changeLog that would bring the target database to be the same as the reference database

Throws:
ParserConfigurationException
IOException
liquibase.exception.DatabaseException

setChangeSetAuthor

public void setChangeSetAuthor(String changeSetAuthor)

setIdRoot

public void setIdRoot(String idRoot)

generateId

protected String generateId()


Copyright © 2011 Leo Przybylski. All Rights Reserved.