liquibase.integration.ant
Class DiffDatabaseToChangeLogTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by liquibase.integration.ant.BaseLiquibaseTask
              extended by liquibase.integration.ant.AbstractDatabaseDiffTask
                  extended by liquibase.integration.ant.DiffDatabaseToChangeLogTask
All Implemented Interfaces:
Cloneable

public class DiffDatabaseToChangeLogTask
extends AbstractDatabaseDiffTask


Nested Class Summary
 
Nested classes/interfaces inherited from class liquibase.integration.ant.BaseLiquibaseTask
BaseLiquibaseTask.ChangeLogProperty, BaseLiquibaseTask.LogRedirector
 
Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
DiffDatabaseToChangeLogTask()
           
 
Method Summary
 void addConfiguredJson(ChangeLogOutputFile changeLogOutputFile)
           
 void addConfiguredTxt(ChangeLogOutputFile changeLogOutputFile)
           
 void addConfiguredXml(ChangeLogOutputFile changeLogOutputFile)
           
 void addConfiguredYaml(ChangeLogOutputFile changeLogOutputFile)
           
protected  void executeWithLiquibaseClassloader()
           
 String getExcludeObjects()
           
 boolean getIncludeCatalog()
           
 String getIncludeObjects()
           
 boolean getIncludeSchema()
           
 boolean getIncludeTablespace()
           
 String getOutputEncoding(ChangeLogOutputFile changeLogOutputFile)
           
 void setExcludeObjects(String excludeObjects)
           
 void setIncludeCatalog(boolean includeCatalog)
           
 void setIncludeObjects(String includeObjects)
           
 void setIncludeSchema(boolean includeSchema)
           
 void setIncludeTablespace(boolean includeTablespace)
           
 void setOutputFile(org.apache.tools.ant.types.resources.FileResource outputFile)
          Deprecated. Use addConfiguredXml(ChangeLogOutputFile) instead.
protected  void validateParameters()
          Subclasses that override this method must always call super.validateParameters() method.
 
Methods inherited from class liquibase.integration.ant.AbstractDatabaseDiffTask
addReferenceDatabase, getDataDir, getDiffResult, getDiffTypes, getReferenceDefaultCatalogName, getReferenceDefaultSchemaName, getReferenceDriver, getReferencePassword, getReferenceUrl, getReferenceUsername, setDataDir, setDiffTypes, setReferenceDatabaseRef, setReferenceDefaultCatalogName, setReferenceDefaultSchemaName, setReferenceDriver, setReferencePassword, setReferenceUrl, setReferenceUsername
 
Methods inherited from class liquibase.integration.ant.BaseLiquibaseTask
addChangeLogParameters, addConfiguredChangeLogProperty, addDatabase, closeDatabase, createClasspath, createDatabaseFromType, createDatabaseObject, createLiquibase, createOutputWriter, createPrintStream, execute, getChangeLogFile, getContexts, getCurrentDateTimeFunction, getDatabaseChangeLogLockTableName, getDatabaseChangeLogObjectsTablespace, getDatabaseChangeLogTableName, getDatabaseClass, getDefaultCatalogName, getDefaultOutputEncoding, getDefaultSchemaName, getDriver, getLiquibase, getLogLevel, getOutputFile, getPassword, getUrl, getUsername, init, isOutputDefaultCatalog, isOutputDefaultSchema, isPromptOnNonLocalDatabase, setChangeLogFile, setChangeLogParametersRef, setClasspathRef, setContexts, setCurrentDateTimeFunction, setDatabaseChangeLogLockTableName, setDatabaseChangeLogObjectsTablespace, setDatabaseChangeLogTableName, setDatabaseClass, setDatabaseRef, setDefaultCatalogName, setDefaultSchemaName, setDriver, setLogLevel, setOutputDefaultCatalog, setOutputDefaultSchema, setOutputEncoding, setPassword, setPromptOnNonLocalDatabase, setUrl, setUsername, shouldRun
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiffDatabaseToChangeLogTask

public DiffDatabaseToChangeLogTask()
Method Detail

executeWithLiquibaseClassloader

protected void executeWithLiquibaseClassloader()
                                        throws org.apache.tools.ant.BuildException
Specified by:
executeWithLiquibaseClassloader in class BaseLiquibaseTask
Throws:
org.apache.tools.ant.BuildException

validateParameters

protected void validateParameters()
Description copied from class: BaseLiquibaseTask
Subclasses that override this method must always call super.validateParameters() method.

Overrides:
validateParameters in class AbstractDatabaseDiffTask

getOutputEncoding

public String getOutputEncoding(ChangeLogOutputFile changeLogOutputFile)

addConfiguredJson

public void addConfiguredJson(ChangeLogOutputFile changeLogOutputFile)

addConfiguredXml

public void addConfiguredXml(ChangeLogOutputFile changeLogOutputFile)

addConfiguredYaml

public void addConfiguredYaml(ChangeLogOutputFile changeLogOutputFile)

addConfiguredTxt

public void addConfiguredTxt(ChangeLogOutputFile changeLogOutputFile)

getIncludeCatalog

public boolean getIncludeCatalog()

setIncludeCatalog

public void setIncludeCatalog(boolean includeCatalog)

getIncludeSchema

public boolean getIncludeSchema()

setIncludeSchema

public void setIncludeSchema(boolean includeSchema)

getIncludeTablespace

public boolean getIncludeTablespace()

setIncludeTablespace

public void setIncludeTablespace(boolean includeTablespace)

getIncludeObjects

public String getIncludeObjects()

setIncludeObjects

public void setIncludeObjects(String includeObjects)

getExcludeObjects

public String getExcludeObjects()

setExcludeObjects

public void setExcludeObjects(String excludeObjects)

setOutputFile

@Deprecated
public void setOutputFile(org.apache.tools.ant.types.resources.FileResource outputFile)
Deprecated. Use addConfiguredXml(ChangeLogOutputFile) instead.

Description copied from class: BaseLiquibaseTask
This method does nothing. Use child implementations.

Overrides:
setOutputFile in class BaseLiquibaseTask
Parameters:
outputFile - The file to write the change log to.


Copyright © 2015 Liquibase.org. All rights reserved.