|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.apache.ojb.broker.util.dbhandling.DBHandlingTask
public class DBHandlingTask
Ant task for performing basic db setup functions.
Field Summary | |
---|---|
private String |
_commands
The commands to perform |
private ArrayList |
_fileSets
The input files |
private String |
_handling
The name of the db handling to use |
private String |
_jcdAlias
The alias of the jdbc connection to use (empty = default connection) |
private String |
_propertiesFile
The path to the properties file |
private String |
_workDir
The working directory |
private static String |
COMMAND_CREATE
The commands |
private static String |
COMMAND_INIT
|
private static String |
HANDLING_TORQUE
The name of the known db handlings |
Fields inherited from class org.apache.tools.ant.Task |
---|
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
project |
Constructor Summary | |
---|---|
DBHandlingTask()
|
Method Summary | |
---|---|
void |
addFileset(org.apache.tools.ant.types.FileSet fileset)
Adds a fileset. |
private void |
addIncludes(DBHandling handling,
org.apache.tools.ant.types.FileSet fileSet)
Adds the includes of the fileset to the handling. |
private DBHandling |
createDBHandling()
Creates a db handling object. |
void |
execute()
|
String |
getCommands()
Returns the list of commands. |
String |
getHandling()
Returns the name of the handling that is used. |
String |
getJcdAlias()
Returns the alias of the jdbc connection. |
String |
getPropertiesFile()
Returns the properties file. |
String |
getWorkDir()
Returns the working directory. |
void |
setCommands(String listOfCommands)
Sets the list of commands to perform. |
void |
setHandling(String name)
Sets the name of the handling to use. |
void |
setJcdAlias(String alias)
Sets the alias of the jdbc connection to use. |
void |
setPropertiesFile(String path)
Sets the properties file (OJB.properties). |
void |
setWorkDir(String dir)
Sets the working directory. |
Methods inherited from class org.apache.tools.ant.Task |
---|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
getProject, setProject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final String HANDLING_TORQUE
private static final String COMMAND_CREATE
private static final String COMMAND_INIT
private String _handling
private String _propertiesFile
private String _jcdAlias
private String _workDir
private ArrayList _fileSets
private String _commands
Constructor Detail |
---|
public DBHandlingTask()
Method Detail |
---|
public void setHandling(String name)
name
- The short name of the handlingpublic String getHandling()
public void setPropertiesFile(String path)
path
- The path to the properties filepublic String getPropertiesFile()
public void setJcdAlias(String alias)
alias
- The alias of the connectionpublic String getJcdAlias()
public void setWorkDir(String dir)
dir
- The working directorypublic String getWorkDir()
public void addFileset(org.apache.tools.ant.types.FileSet fileset)
fileset
- The additional input filespublic void setCommands(String listOfCommands)
listOfCommands
- The comma-separated list of commandspublic String getCommands()
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
private DBHandling createDBHandling() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- If the handling is invalidprivate void addIncludes(DBHandling handling, org.apache.tools.ant.types.FileSet fileSet) throws org.apache.tools.ant.BuildException
handling
- The handlingfileSet
- The fileset
org.apache.tools.ant.BuildException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |