net.sf.xaj.support
Class XAttackQueryTaskConfig

java.lang.Object
  extended by net.sf.xaj.support.XAttackTaskConfig
      extended by net.sf.xaj.support.XAttackQueryTaskConfig

public class XAttackQueryTaskConfig
extends XAttackTaskConfig

An XAttack configuration bean for XQuery tasks.

This task works by taking an XQuery template, resolving a set of external variables to pass to the query, and then executing the query.

The configurable properties of this class are:

queryTemplate
An XQuery template to use for the query to execute in this task.
variableResolver
An XAttack.IterationParametersResolver for resolving XQuery external variables with.

Version:
$Revision$ $Date$
Author:
matt

Constructor Summary
XAttackQueryTaskConfig()
           
 
Method Summary
 org.springframework.core.io.Resource getQueryTemplate()
           
 XAttack.IterationParametersResolver getVariableResolver()
           
 void setQueryTemplate(org.springframework.core.io.Resource queryTemplate)
           
 void setVariableResolver(XAttack.IterationParametersResolver variableResolver)
           
 
Methods inherited from class net.sf.xaj.support.XAttackTaskConfig
getIterations, getName, getTransactionTemplate, getXmlDb, setIterations, setName, setTransactionTemplate, setXmlDb
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XAttackQueryTaskConfig

public XAttackQueryTaskConfig()
Method Detail

getQueryTemplate

public org.springframework.core.io.Resource getQueryTemplate()
Returns:
the queryTemplate

setQueryTemplate

public void setQueryTemplate(org.springframework.core.io.Resource queryTemplate)
Parameters:
queryTemplate - the queryTemplate to set

getVariableResolver

public XAttack.IterationParametersResolver getVariableResolver()
Returns:
the variableResolver

setVariableResolver

public void setVariableResolver(XAttack.IterationParametersResolver variableResolver)
Parameters:
variableResolver - the variableResolver to set