Handles Creole configuration needed by SQL type tasks.
Use \Project#createTask to register a new Task.
author |
Hans Lellelid hans@xmpl.org (Phing) |
---|---|
author |
Nick Chalko nick@chalko.com (Ant) |
author |
Jeff Martin jeff@custommonkey.org (Ant) |
author |
Michael McCallum gholam@xtra.co.nz (Ant) |
author |
Tim Stephenson tim.stephenson@sybase.com (Ant) |
version |
$Id: e29324f9faa15e5d699fecf8605fd34aa998b1d2 $ |
package |
phing.tasks.system |
getConnection() : \Connection
The calling method is responsible for closing the connection.
throws |
if the UserId/Password/Url is not set or there is no suitable driver or the driver fails to load. |
---|---|
\Connection
the newly created connection.
getDescription() : string
string
The text description of the task
getLoaderMap()
getLocation() : \Location
getOwningTarget() : \Target
getPassword() : \Returns
\Returns
a String
getProject() : \Project
getRegisterSlot(string $slotName)
string
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
getTaskName() : string
string
Name of this task
getTaskType() : string
string
The type of this task (XML Tag)
getUrl() : \Returns
\Returns
a String
getUserId() : \Returns
\Returns
a String
init()
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
throws | |
---|---|
isAutocommit() : \Returns
\Returns
a boolean
isCaching( $value)
log(string $msg, integer $level = \Project::MSG_INFO)
string
The message to be logged.
integer
The message's priority at this message should have
main()
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
maybeConfigure()
perform()
setAutocommit( $autocommit)
setCaching( $enable)
setDescription(string $desc)
string
The text describing the task
setDriver(string $driver)
string
driver class name
setLocation(\Location $location)
setOwningTarget(\Target $target)
setPassword( $password)
setProject(\Project $project)
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
setTaskType( $name)
setUrl( $url)
setUserid( $userId)
setVersion( $version)
loaderMap :
NOT IMPLEMENTED YET
caching :
autocommit :
driver :
param | |
---|---|
url :
userId :
password :
rdbms :
description : string
var |
---|
string
taskType : string
var |
---|
string
taskName : string
var |
---|
string
project : \Project