com.rsmart.kuali.tools.liquibase
Class DiffResult
java.lang.Object
com.rsmart.kuali.tools.liquibase.DiffResult
public class DiffResult
- extends Object
Constructor Summary |
DiffResult(liquibase.snapshot.DatabaseSnapshot referenceDatabaseSnapshot,
liquibase.snapshot.DatabaseSnapshot targetDatabaseSnapshot)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiffResult
public DiffResult(liquibase.snapshot.DatabaseSnapshot referenceDatabaseSnapshot,
liquibase.snapshot.DatabaseSnapshot targetDatabaseSnapshot)
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.