|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.phenix.pct.PCT
com.phenix.pct.PCTCreateBase
public class PCTCreateBase
Class for creating Progress databases
| 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 | |
|---|---|
PCTCreateBase()
|
|
| Method Summary | |
|---|---|
void |
addMSSHolder(MSSHolder holder)
Adds an SQL Server schema holder |
void |
addODBCHolder(ODBCHolder holder)
Adds an ODBC schema holder |
void |
addOracleHolder(OracleHolder holder)
Adds an Oracle schema holder |
org.apache.tools.ant.types.Path |
createPropath()
Creates a new Path instance |
void |
execute()
Do the work |
void |
setBlockSize(int blockSize)
Block size |
void |
setCodepage(String codepage)
Set the desired database codepage (copy from $DLC/prolang/codepage/emptyX) |
void |
setDBName(String dbName)
Database name |
void |
setDestDir(File destDir)
In which directory create the database |
void |
setNoInit(boolean noInit)
If database shouldn't be initialized |
void |
setNoSchema(boolean noSchema)
No schema |
void |
setOverwrite(boolean overwrite)
Overwrite database if existent |
void |
setPropath(org.apache.tools.ant.types.Path propath)
Set the propath to be used when running the procedure |
void |
setSchemaFile(String schemaFile)
Load schema after creating database. |
void |
setStructFile(File structFile)
Structure file (.st) |
void |
setWordRules(int wordRule)
Set the word file rule number applied to this database |
| Methods inherited from class com.phenix.pct.PCT |
|---|
addEnv, checkDlcHome, deleteDirectory, escapeString, 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 |
|---|
public PCTCreateBase()
| Method Detail |
|---|
public void setStructFile(File structFile)
structFile - Filepublic void setDBName(String dbName)
dbName - Stringpublic void setNoInit(boolean noInit)
noInit - "true|false|on|off|yes|no"public void setNoSchema(boolean noSchema)
noSchema - "true|false|on|off|yes|no"public void setBlockSize(int blockSize)
blockSize - intpublic void setDestDir(File destDir)
destDir - Filepublic void setOverwrite(boolean overwrite)
overwrite - "true|false|on|off|yes|no"public void setSchemaFile(String schemaFile)
schemaFile - Stringpublic void setPropath(org.apache.tools.ant.types.Path propath)
propath - an Ant Path object containing the propathpublic org.apache.tools.ant.types.Path createPropath()
public void setCodepage(String codepage)
codepage - Subdirectory name from prolang directory where to find the empty databasepublic void setWordRules(int wordRule)
wordRule - Integer (0-255)public void addOracleHolder(OracleHolder holder)
holder - Instance of OracleHolderpublic void addMSSHolder(MSSHolder holder)
holder - Instance of MSSHolderpublic void addODBCHolder(ODBCHolder holder)
holder - Instance of ODBCHolder
public void execute()
throws org.apache.tools.ant.BuildException
execute in class PCTorg.apache.tools.ant.BuildException - Something went wrong
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||