tasks/ext/creole/CreoleTask.php

Show: inherited
Table of Contents

\CreoleTask

Package: phing\tasks\system

Handles Creole configuration needed by SQL type tasks.

Parent(s)
\Task < \ProjectComponent
Children
\CreoleSQLExecTask
Author
Hans Lellelid (Phing)  
Author
Nick Chalko (Ant)  
Author
Jeff Martin (Ant)  
Author
Michael McCallum (Ant)  
Author
Tim Stephenson (Ant)  
Version
$Revision: 526 $  

Properties

Propertyprivate  $autocommit= 'false'

Autocommit flag. Default value is false

Default valuefalseDetails
Type
n/a
Propertyprivate  $caching= 'true'
Default valuetrueDetails
Type
n/a
Propertyprivate  $driver= ''

[optional] Classpath to Creole driver to use.

Details
Type
n/a
$driver

string

Propertyprivate  $loaderMap= 'array()'
static

Used for caching loaders / driver. This is to avoid getting an OutOfMemoryError when calling this task multiple times in a row.

NOT IMPLEMENTED YET

Default valuearray()Details
Type
n/a
Propertyprivate  $password= ''

Password

Details
Type
n/a
Propertyprivate  $rdbms= ''

RDBMS Product needed for this SQL.

Details
Type
n/a
Propertyprivate  $url= ''

DB url.

Details
Type
n/a
Propertyprivate  $userId= ''

User name.

Details
Type
n/a

Methods

methodprotectedgetConnection( ) : \Connection

Creates a new Connection as using the driver, url, userid and password specified.

The calling method is responsible for closing the connection.

Returns
Type Description
\Connection the newly created connection.
Throws
Exception Description
\BuildException if the UserId/Password/Url is not set or there is no suitable driver or the driver fails to load.
methodpublicgetDescription( ) : void

methodprotectedgetLoaderMap( ) : void

methodpublicgetLocation( ) : void

methodpublicgetOwningTarget( ) : void

methodpublicgetPassword( ) : \Returns

Gets the password.

Returns
Type Description
\Returns a String
methodpublicgetProject( ) : void

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodpublicgetUrl( ) : \Returns

Gets the url.

Returns
Type Description
\Returns a String
methodpublicgetUserId( ) : \Returns

Gets the userId.

Returns
Type Description
\Returns a String
methodpublicinit( ) : void

Initialize CreoleTask.

This method includes any necessary Creole libraries and triggers appropriate error if they cannot be found. This is not done in header because we may want this class to be loaded w/o triggering an error.

methodpublicisAutocommit( ) : \Returns

Gets the autocommit.

Returns
Type Description
\Returns a boolean
methodpublicisCaching(  $value ) : void

Parameters
Name Type Description
$value
methodpubliclog( ) : void

methodpublicmain( ) : void
abstract

methodpublicmaybeConfigure( ) : void

methodpublicperform( ) : void

methodpublicsetAutocommit( \autocommit $autocommit ) : void

Auto commit flag for database connection; optional, default false.

Parameters
Name Type Description
$autocommit \autocommit

The autocommit to set

methodpublicsetCaching(  $enable ) : void

Caching loaders / driver. This is to avoid getting an OutOfMemoryError when calling this task multiple times in a row; default: true

Parameters
Name Type Description
$enable
methodpublicsetDescription( ) : void

methodpublicsetDriver( string $driver ) : void

Set the Creole driver to be used.

Parameters
Name Type Description
$driver string

driver class name

methodpublicsetLocation( ) : void

methodpublicsetOwningTarget( ) : void

methodpublicsetPassword( \password $password ) : void

Sets the password; required.

Parameters
Name Type Description
$password \password

The password to set

methodpublicsetProject( ) : void

methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

methodpublicsetUrl( \url $url ) : void

Sets the database connection URL; required.

Parameters
Name Type Description
$url \url

The url to set

methodpublicsetUserid( \userId $userId ) : void

Set the user name for the connection; required.

Parameters
Name Type Description
$userId \userId

The userId to set

methodpublicsetVersion( \version $version ) : void

Sets the version string, execute task only if rdbms version match; optional.

Parameters
Name Type Description
$version \version

The version to set

Documentation was generated by DocBlox 0.17.1.