liquibase.command
Class DiffCommand

java.lang.Object
  extended by liquibase.command.AbstractCommand
      extended by liquibase.command.DiffCommand
All Implemented Interfaces:
LiquibaseCommand
Direct Known Subclasses:
DiffToChangeLogCommand

public class DiffCommand
extends AbstractCommand


Constructor Summary
DiffCommand()
           
 
Method Summary
protected  DiffResult createDiffResult()
           
protected  DatabaseSnapshot createReferenceSnapshot()
           
protected  DatabaseSnapshot createTargetSnapshot()
           
 CompareControl getCompareControl()
           
 String getName()
           
 PrintStream getOutputStream()
           
 Database getReferenceDatabase()
           
 SnapshotControl getReferenceSnapshotControl()
           
 SnapshotListener getSnapshotListener()
           
 Class<? extends DatabaseObject>[] getSnapshotTypes()
           
 Database getTargetDatabase()
           
 SnapshotControl getTargetSnapshotControl()
           
protected  Object run()
           
 DiffCommand setCompareControl(CompareControl compareControl)
           
 DiffCommand setOutputStream(PrintStream outputStream)
           
 DiffCommand setReferenceDatabase(Database referenceDatabase)
           
 DiffCommand setReferenceSnapshotControl(SnapshotControl referenceSnapshotControl)
           
 DiffCommand setSnapshotListener(SnapshotListener snapshotListener)
           
 DiffCommand setSnapshotTypes(Class<? extends DatabaseObject>... snapshotTypes)
           
 DiffCommand setSnapshotTypes(String... snapshotTypes)
           
 DiffCommand setTargetDatabase(Database targetDatabase)
           
 DiffCommand setTargetSnapshotControl(SnapshotControl targetSnapshotControl)
           
 CommandValidationErrors validate()
           
 
Methods inherited from class liquibase.command.AbstractCommand
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiffCommand

public DiffCommand()
Method Detail

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.