liquibase.integration.ant
Class AbstractChangeLogBasedTask

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.AbstractChangeLogBasedTask
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
ChangeLogSyncTask, DatabaseRollbackFutureTask, DatabaseRollbackTask, DatabaseUpdateTask, DatabaseUpdateTestingRollbackTask, MarkNextChangeSetRanTask

public abstract class AbstractChangeLogBasedTask
extends BaseLiquibaseTask


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
AbstractChangeLogBasedTask()
           
 
Method Summary
 String getChangeLogFile()
          Gets the change log file set from Ant.
 String getContexts()
          This method no longer does anything.
 LabelExpression getLabels()
           
 String getOutputEncoding()
           
 org.apache.tools.ant.types.resources.FileResource getOutputFile()
          This method does nothing.
protected  Writer getOutputFileWriter()
           
 void setChangeLogFile(String changeLogFile)
           
 void setContexts(String contexts)
          This method no longer does anything.
 void setLabels(String labels)
           
 void setOutputEncoding(String outputEncoding)
           
 void setOutputFile(org.apache.tools.ant.types.resources.FileResource outputFile)
          This method does nothing.
protected  void validateParameters()
          Subclasses that override this method must always call super.validateParameters() method.
 
Methods inherited from class liquibase.integration.ant.BaseLiquibaseTask
addChangeLogParameters, addConfiguredChangeLogProperty, addDatabase, closeDatabase, closeDatabase, createClasspath, createDatabaseFromConfiguredDatabaseType, createDatabaseFromType, createDatabaseObject, createLiquibase, createOutputWriter, createPrintStream, execute, executeWithLiquibaseClassloader, getCurrentDateTimeFunction, getDatabaseChangeLogLockTableName, getDatabaseChangeLogObjectsTablespace, getDatabaseChangeLogTableName, getDatabaseClass, getDefaultCatalogName, getDefaultOutputEncoding, getDefaultSchemaName, getDriver, getLiquibase, getLogLevel, getPassword, getUrl, getUsername, init, isOutputDefaultCatalog, isOutputDefaultSchema, isPromptOnNonLocalDatabase, setChangeLogParametersRef, setClasspathRef, setCurrentDateTimeFunction, setDatabaseChangeLogLockTableName, setDatabaseChangeLogObjectsTablespace, setDatabaseChangeLogTableName, setDatabaseClass, setDatabaseRef, setDefaultCatalogName, setDefaultSchemaName, setDriver, setLogLevel, setOutputDefaultCatalog, setOutputDefaultSchema, 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

AbstractChangeLogBasedTask

public AbstractChangeLogBasedTask()
Method Detail

validateParameters

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

Overrides:
validateParameters in class BaseLiquibaseTask

getOutputFileWriter

protected Writer getOutputFileWriter()
                              throws IOException
Throws:
IOException

getChangeLogFile

public String getChangeLogFile()
Gets the change log file set from Ant.

Overrides:
getChangeLogFile in class BaseLiquibaseTask
Returns:
The change log file resource.
See Also:
getChangeLogFile()

setChangeLogFile

public void setChangeLogFile(String changeLogFile)
Overrides:
setChangeLogFile in class BaseLiquibaseTask

getContexts

public String getContexts()
Description copied from class: BaseLiquibaseTask
This method no longer does anything. Please extend from AbstractChangeLogBasedTask which has the equivalent method.

Overrides:
getContexts in class BaseLiquibaseTask

setContexts

public void setContexts(String contexts)
Description copied from class: BaseLiquibaseTask
This method no longer does anything. Please extend from AbstractChangeLogBasedTask which has the equivalent method.

Overrides:
setContexts in class BaseLiquibaseTask

getLabels

public LabelExpression getLabels()

setLabels

public void setLabels(String labels)

getOutputFile

public org.apache.tools.ant.types.resources.FileResource getOutputFile()
Description copied from class: BaseLiquibaseTask
This method does nothing. Use child implementations.

Overrides:
getOutputFile in class BaseLiquibaseTask

setOutputFile

public void setOutputFile(org.apache.tools.ant.types.resources.FileResource outputFile)
Description copied from class: BaseLiquibaseTask
This method does nothing. Use child implementations.

Overrides:
setOutputFile in class BaseLiquibaseTask

getOutputEncoding

public String getOutputEncoding()

setOutputEncoding

public void setOutputEncoding(String outputEncoding)
Overrides:
setOutputEncoding in class BaseLiquibaseTask


Copyright © 2016 Liquibase.org. All rights reserved.