com.phenix.pct
Class PCTDumpIncremental

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by com.phenix.pct.PCT
              extended by com.phenix.pct.PCTRun
                  extended by com.phenix.pct.PCTDumpIncremental
All Implemented Interfaces:
Cloneable

public class PCTDumpIncremental
extends PCTRun

Creates a schema diff file between two databases. This is a wrapper around prodict/dump_inc.p from POSSENET code.

Version:
$Revision$
Author:
Phillip BAIRD, Gilles QUERRET

Field Summary
 
Fields inherited from class com.phenix.pct.PCTRun
dbConnList, exec, initID, initProc, internalPropath, outputParameters, outputStream, outputStreamID, pctLib, plID, procedure, propath, runParameters, status, statusID
 
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
PCTDumpIncremental()
           
 
Method Summary
 void execute()
          Do the work
 void setActiveIndexes(boolean activeIndexes)
          Specifies if new indexes are created Active (true) or Inactive (false).
 void setCodePage(String codePage)
          Specifies the CodePage for the .df file.
 void setDebugLevel(int debugLevel)
          Sets the debug level.
 void setDestFile(File destFile)
          Output file for incremental df.
 void setRenameFile(File file)
          The RenameFile parameter is used to identify tables, database fields and sequences that have changed names.
 
Methods inherited from class com.phenix.pct.PCTRun
addOption, addOutputParameter, addParameter, addPCTConnection, addPCTRunOption, addPropath, cleanup, createPropath, escapeString, getCmdLineParameters, getDebugPCT, getStatusFileName, isPrepared, maybeSetResultPropertyValue, prepareExecTask, preparePropath, setBaseDir, setCenturyYearOffset, setCompileUnderscore, setCpInternal, setCpStream, setDebugPCT, setDebugReady, setDirSize, setExecTaskParams, setFailOnError, setGraphicalMode, setIniFile, setInputChars, setMaximumMemory, setMsgBufferSize, setNumDec, setNumSep, setParameter, setParameters, setParamFile, setProcedure, setResultProperty, setStackSize, setTempDir, setToken, setTTBufferSize
 
Methods inherited from class com.phenix.pct.PCT
addEnv, checkDlcHome, deleteDirectory, extractPL, extractPL, getDlcBin, getDlcHome, getDLCMaintenanceVersion, getDLCMajorVersion, getDLCMinorVersion, getDLCPatchLevel, getDLCRevision, getEnvironment, getExecPath, getFullVersion, getIncludedPL, getJavaFileset, getJavaFileset, getProgressProcedures, getRCodeVersion, getReducedVersion, isSourceCodeUsed, nextRandomInt, setDlcBin, setDlcHome, setDlcJava, setIncludedPL
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, 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

PCTDumpIncremental

public PCTDumpIncremental()
Method Detail

setActiveIndexes

public void setActiveIndexes(boolean activeIndexes)
Specifies if new indexes are created Active (true) or Inactive (false). Defaults to Active.

Parameters:
activeIndexes - boolean

setCodePage

public void setCodePage(String codePage)
Specifies the CodePage for the .df file.

Parameters:
codePage - String

setDebugLevel

public void setDebugLevel(int debugLevel)
Sets the debug level.

Parameters:
debugLevel - integer

setDestFile

public void setDestFile(File destFile)
Output file for incremental df.

Parameters:
destFile - File

setRenameFile

public void setRenameFile(File file)
The RenameFile parameter is used to identify tables, database fields and sequences that have changed names. The format of the file is a comma seperated list that identifies the renamed object, its old name and the new name. When an object is found missing, this file is checked to determine if it was renamed. If no matching entry is found, then the object If RenameFile is not defined, then all missing objects are deleted. The RenameFile has following format:

Parameters:
file - File

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Do the work

Overrides:
execute in class PCTRun
Throws:
org.apache.tools.ant.BuildException - Something went wrong


Copyright © 2003-2011 Gilles QUERRET. All Rights Reserved.