org.ow2.jonas.ant.jonasbase
Class JdbcRa

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.JdbcRa
All Implemented Interfaces:
BaseTaskItf

public class JdbcRa
extends JTask
implements BaseTaskItf

Allow to create JDBC resource adaptors.

Author:
Florent Benoit

Field Summary
 
Fields inherited from class org.ow2.jonas.ant.jonasbase.JTask
SEPARATORS
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
JdbcRa()
           
 
Method Summary
 void execute()
          Execute this task.
 boolean isP6spy()
          Configure the using of the P6Spy tool or not ?
 void setAutoload(boolean autoload)
          Deprecated.  
 void setConnMaxAge(String connMaxAge)
          Set the connexion max age of this JDBC Resource Adaptor Connection Pool.
 void setDriverName(String driverName)
          Set the name of the driver of this JDBC Resource Adaptor.
 void setJndiName(String jndiName)
          Set the jndiName of this JDBC Resource Adaptor.
 void setMapperName(String mapperName)
          Set the mapper name of this JDBC Resource Adaptor.
 void setMaxOpenTime(String maxOpenTime)
          Set the open time max of this JDBC Resource Adaptor Connection Pool.
 void setMaxPoolSize(String maxPoolSize)
          Set the max pool size of this JDBC Resource Adaptor Connection Pool.
 void setMaxPreparedStatementsSize(String maxPreparedStatementSize)
          Set the max prepared Statements size 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 setName(String name)
          Set the name of this JDBC Resource Adaptor.
 void setP6spy(boolean p6spy)
          Configure the using of the P6Spy tool or not ?
 void setPassword(String password)
          Set the password of this JDBC Resource Adaptor.
 void setUrl(String url)
          Set the url of this JDBC Resource Adaptor.
 void setUser(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
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, 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
 
Methods inherited from interface org.ow2.jonas.ant.jonasbase.BaseTaskItf
getLogInfo, setConfigurationFile, setDestDir, setJonasRoot, setLogInfo
 

Constructor Detail

JdbcRa

public JdbcRa()
Method Detail

setName

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

Parameters:
name - the name of this JDBC Resource Adaptor

setMapperName

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

Parameters:
mapperName - the mappername of this JDBC Resource Adaptor

setUser

public void setUser(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

setUrl

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

Parameters:
url - the name of this JDBC Resource Adaptor

setMaxPoolSize

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

Parameters:
maxPoolSize - max pool size of connection

setMaxPreparedStatementsSize

public void setMaxPreparedStatementsSize(String maxPreparedStatementSize)
Set the max prepared Statements size of this JDBC Resource Adaptor Connection Pool.

Parameters:
maxPreparedStatementsSize - of connection

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

setDriverName

public void setDriverName(String driverName)
Set the name of the driver of this JDBC Resource Adaptor.

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

setJndiName

public void setJndiName(String jndiName)
Set the jndiName of this JDBC Resource Adaptor.

Parameters:
jndiName - the jndiName of this JDBC Resource Adaptor

execute

public void execute()
Execute this task.

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

setAutoload

@Deprecated
public void setAutoload(boolean autoload)
Deprecated. 

Copy rar to autoload or only in rars/ ?

Parameters:
autoload - true of false

isP6spy

public boolean isP6spy()
Configure the using of the P6Spy tool or not ?

Returns:
the p6spy

setP6spy

public void setP6spy(boolean p6spy)
Configure the using of the P6Spy tool or not ?

Parameters:
p6spy - true or false


Copyright © 2010 OW2 Consortium. All Rights Reserved.