org.ow2.jonas.ant.jonasbase
Class JdbcXml

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.ow2.jonas.ant.BootstrapTask
              extended by org.ow2.jonas.ant.jonasbase.JTask
                  extended by org.ow2.jonas.ant.jonasbase.JdbcXml
All Implemented Interfaces:
Cloneable, BaseTaskItf

public class JdbcXml
extends JTask
implements BaseTaskItf

Allow to create JDBC datasources.

Author:
Benoit Pelletier

Field Summary
 
Fields inherited from class org.ow2.jonas.ant.jonasbase.JTask
SEPARATORS
 
Fields inherited from class org.apache.tools.ant.Task
target, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
JdbcXml()
           
 
Method Summary
 void execute()
          Execute this task.
 boolean isNewFile()
           
 void setClassName(String className)
          Set the name of the driver of this JDBC Resource Adaptor.
 void setConCheckLevel(String conCheckLevel)
          Set the connection check level.
 void setConnMaxAge(String connMaxAge)
          Set the connexion max age of this JDBC Resource Adaptor Connection Pool.
 void setConTestStmt(String conTestStmt)
          Set the statement for the connection check level.
 void setInitConPool(String initConPool)
          Set the init pool size of this JDBC Resource Adaptor Connection Pool.
 void setMapper(String mapperName)
          Set the mapper name of this JDBC Resource Adaptor.
 void setMaxConPool(String maxConPool)
          Set the max pool size of this JDBC Resource Adaptor Connection Pool.
 void setMaxOpenTime(String maxOpenTime)
          Set the open time max of this JDBC Resource Adaptor Connection Pool.
 void setMaxWaiters(String maxWaiters)
          Set the max waiters of this JDBC Resource Adaptor Connection Pool.
 void setMaxWaitTime(String maxWaitTime)
          Set the max wait time of this JDBC Resource Adaptor Connection Pool.
 void setMinConPool(String minConPool)
          Set the min pool size of this JDBC Resource Adaptor Connection Pool.
 void setName(String name)
          Set the name of this JDBC Resource Adaptor.
 void setNewFile(String newFile)
          Set is a new file has to be created
 void setPassword(String password)
          Set the password of this JDBC Resource Adaptor.
 void setPstmtMax(String pstmtMax)
          Set the prepared statement pool size of this JDBC Resource Adaptor Connection Pool.
 void setSamplingPeriod(String samplingPeriod)
          Set the samplingPeriod of the JDBC Resource Adaptor.
 void setUrl(String url)
          Set the url of this JDBC Resource Adaptor.
 void setUserName(String user)
          Set the user of this JDBC Resource Adaptor.
 
Methods inherited from class org.ow2.jonas.ant.jonasbase.JTask
changeValueForKey, changeValueForKey, getConfigurationFile, getDestDir, getLogInfo, setConfigurationFile, setDestDir, setLogInfo, writePropsToFile
 
Methods inherited from class org.ow2.jonas.ant.BootstrapTask
createClasspath, getBootstraptask, getBootstraptask, getDomainName, getJonasRoot, getMaven2Repository, getServerName, getTaskName, setCatalinaHome, setClasspath, setDomainName, setJettyHome, setJonasBase, setJonasRoot, setJvmopts, setServerName, setTaskName
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, 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
 
Methods inherited from interface org.ow2.jonas.ant.jonasbase.BaseTaskItf
getLogInfo, setConfigurationFile, setDestDir, setJonasRoot, setLogInfo
 

Constructor Detail

JdbcXml

public JdbcXml()
Method Detail

setClassName

public void setClassName(String className)
Set the name of the driver of this JDBC Resource Adaptor.

Parameters:
className - the name of the driver of this JDBC Resource Adaptor

setInitConPool

public void setInitConPool(String initConPool)
Set the init pool size of this JDBC Resource Adaptor Connection Pool.

Parameters:
initConPool - init pool size of connection

setMinConPool

public void setMinConPool(String minConPool)
Set the min pool size of this JDBC Resource Adaptor Connection Pool.

Parameters:
minConPool - min pool size of connection

setMaxConPool

public void setMaxConPool(String maxConPool)
Set the max pool size of this JDBC Resource Adaptor Connection Pool.

Parameters:
maxConPool - max pool size of connection

setPstmtMax

public void setPstmtMax(String pstmtMax)
Set the prepared statement pool size of this JDBC Resource Adaptor Connection Pool.

Parameters:
pstmtMax - pool size of connection

setConCheckLevel

public void setConCheckLevel(String conCheckLevel)
Set the connection check level.

Parameters:
conCheckLevel - level

setConTestStmt

public void setConTestStmt(String conTestStmt)
Set the statement for the connection check level.

Parameters:
conTestStmt - request

setName

public void setName(String name)
Set the name of this JDBC Resource Adaptor.

Parameters:
name - the name of this JDBC Resource Adaptor

setMapper

public void setMapper(String mapperName)
Set the mapper name of this JDBC Resource Adaptor.

Parameters:
mapper - the mappername of this JDBC Resource Adaptor

setUserName

public void setUserName(String user)
Set the user of this JDBC Resource Adaptor.

Parameters:
user - the user of this JDBC Resource Adaptor

setPassword

public void setPassword(String password)
Set the password of this JDBC Resource Adaptor.

Parameters:
password - the name of this JDBC Resource Adaptor

setSamplingPeriod

public void setSamplingPeriod(String samplingPeriod)
Set the samplingPeriod of the JDBC Resource Adaptor.

Parameters:
samplingPeriod - the sampling period

setUrl

public void setUrl(String url)
Set the url of this JDBC Resource Adaptor.

Parameters:
url - the name of this JDBC Resource Adaptor

setMaxWaitTime

public void setMaxWaitTime(String maxWaitTime)
Set the max wait time of this JDBC Resource Adaptor Connection Pool.

Parameters:
maxWaitTime - of the connection

setMaxWaiters

public void setMaxWaiters(String maxWaiters)
Set the max waiters of this JDBC Resource Adaptor Connection Pool.

Parameters:
maxWaiters - of connection

setConnMaxAge

public void setConnMaxAge(String connMaxAge)
Set the connexion max age of this JDBC Resource Adaptor Connection Pool.

Parameters:
maxConnMAxAge - of connection

setMaxOpenTime

public void setMaxOpenTime(String maxOpenTime)
Set the open time max of this JDBC Resource Adaptor Connection Pool.

Parameters:
maxWaiters - of connection

isNewFile

public boolean isNewFile()
Returns:
true if a new file is requested

setNewFile

public void setNewFile(String newFile)
Set is a new file has to be created

Parameters:
newFile -

execute

public void execute()
Execute this task.

Specified by:
execute in interface BaseTaskItf
Overrides:
execute in class org.apache.tools.ant.Task


Copyright © 2010 OW2 Consortium. All Rights Reserved.