liquibase.command
Class DiffCommand
java.lang.Object
liquibase.command.AbstractCommand
liquibase.command.DiffCommand
- All Implemented Interfaces:
- LiquibaseCommand
- Direct Known Subclasses:
- DiffToChangeLogCommand
public class DiffCommand
- extends AbstractCommand
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiffCommand
public DiffCommand()
getName
public String getName()
validate
public CommandValidationErrors validate()
getReferenceDatabase
public Database getReferenceDatabase()
setReferenceDatabase
public DiffCommand setReferenceDatabase(Database referenceDatabase)
getTargetDatabase
public Database getTargetDatabase()
setTargetDatabase
public DiffCommand setTargetDatabase(Database targetDatabase)
getSnapshotTypes
public Class<? extends DatabaseObject>[] getSnapshotTypes()
setSnapshotTypes
public DiffCommand setSnapshotTypes(String... snapshotTypes)
setSnapshotTypes
public DiffCommand setSnapshotTypes(Class<? extends DatabaseObject>... snapshotTypes)
getOutputStream
public PrintStream getOutputStream()
setOutputStream
public DiffCommand setOutputStream(PrintStream outputStream)
getReferenceSnapshotControl
public SnapshotControl getReferenceSnapshotControl()
setReferenceSnapshotControl
public DiffCommand setReferenceSnapshotControl(SnapshotControl referenceSnapshotControl)
getTargetSnapshotControl
public SnapshotControl getTargetSnapshotControl()
setTargetSnapshotControl
public DiffCommand setTargetSnapshotControl(SnapshotControl targetSnapshotControl)
getSnapshotListener
public SnapshotListener getSnapshotListener()
setSnapshotListener
public DiffCommand setSnapshotListener(SnapshotListener snapshotListener)
getCompareControl
public CompareControl getCompareControl()
setCompareControl
public DiffCommand setCompareControl(CompareControl compareControl)
run
protected Object run()
throws Exception
- Specified by:
run
in class AbstractCommand
- Throws:
Exception
createDiffResult
protected DiffResult createDiffResult()
throws DatabaseException,
InvalidExampleException
- Throws:
DatabaseException
InvalidExampleException
createTargetSnapshot
protected DatabaseSnapshot createTargetSnapshot()
throws DatabaseException,
InvalidExampleException
- Throws:
DatabaseException
InvalidExampleException
createReferenceSnapshot
protected DatabaseSnapshot createReferenceSnapshot()
throws DatabaseException,
InvalidExampleException
- Throws:
DatabaseException
InvalidExampleException
Copyright © 2015 Liquibase.org. All rights reserved.