net.sf.xaj.support
Class XAttackTaskConfig

java.lang.Object
  extended by net.sf.xaj.support.XAttackTaskConfig
Direct Known Subclasses:
XAttackQueryTaskConfig, XAttackUpdateTaskConfig

public class XAttackTaskConfig
extends java.lang.Object

A configuration bean for XAttack tasks.

The configurable properties of this class are:

name
An optional name to assign to this task.
xmlDb
The XmlDb to perform the batch updates against.
transactionTemplate
A Spring TransactionTemplate to handle the batch transaction with.
iterations
The number of iterations to run this batch task for. Defaults to 1.

Version:
$Revision$ $Date$
Author:
matt

Constructor Summary
XAttackTaskConfig()
           
 
Method Summary
 int getIterations()
           
 java.lang.String getName()
           
 org.springframework.transaction.support.TransactionTemplate getTransactionTemplate()
           
 XmlDb getXmlDb()
           
 void setIterations(int iterations)
           
 void setName(java.lang.String name)
           
 void setTransactionTemplate(org.springframework.transaction.support.TransactionTemplate transactionTemplate)
           
 void setXmlDb(XmlDb xmlDb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XAttackTaskConfig

public XAttackTaskConfig()
Method Detail

getIterations

public int getIterations()
Returns:
the iterations

setIterations

public void setIterations(int iterations)
Parameters:
iterations - the iterations to set

getXmlDb

public XmlDb getXmlDb()
Returns:
the xmlDb

setXmlDb

public void setXmlDb(XmlDb xmlDb)
Parameters:
xmlDb - the xmlDb to set

getTransactionTemplate

public org.springframework.transaction.support.TransactionTemplate getTransactionTemplate()
Returns:
the transactionTemplate

setTransactionTemplate

public void setTransactionTemplate(org.springframework.transaction.support.TransactionTemplate transactionTemplate)
Parameters:
transactionTemplate - the transactionTemplate to set

getName

public java.lang.String getName()
Returns:
the name

setName

public void setName(java.lang.String name)
Parameters:
name - the name to set