net.sourceforge.anttestsetgen
Class Parameter

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended bynet.sourceforge.anttestsetgen.Parameter

public class Parameter
extends org.apache.tools.ant.Task

A Parameter of a Validation subtask.

A Parameter consists of a name and a column. The column relates to a column in the resultset of the SQL-Query. Both the name and the column are required.

Version:
$Id: Parameter.java,v 1.3 2004/01/04 15:00:18 mcjansen Exp $
Author:
Marco Jansen (Contrado Technologies)

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
Parameter()
           
 
Method Summary
 java.lang.String getColumn()
          Retrieve the column of the parameter.
 java.lang.String getDatabaseValue(java.sql.ResultSet resultSet)
          Retrieve the database value of the parameter

The value is retrieved based on the supplied resulset.

 java.lang.String getName()
          Retrieve the name of the parameter.
 void setColumn(java.lang.String column)
          Set the column of the parameter.
 void setName(java.lang.String name)
          Set the name of the parameter.
 
Methods inherited from class org.apache.tools.ant.Task
execute, getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
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
 

Constructor Detail

Parameter

public Parameter()
Method Detail

setName

public void setName(java.lang.String name)
Set the name of the parameter.

Parameters:
name - The name of the parameter
See Also:
getName()

getName

public java.lang.String getName()
                         throws org.apache.tools.ant.BuildException
Retrieve the name of the parameter.

Returns:
The name of the Parameter
Throws:
org.apache.tools.ant.BuildException - In case the name was not set.
See Also:
setName(java.lang.String)

setColumn

public void setColumn(java.lang.String column)
Set the column of the parameter. The column relates to a column in the resultset of the SQL-query.

Parameters:
column - The column of the parameter.
See Also:
getColumn()

getColumn

public java.lang.String getColumn()
                           throws org.apache.tools.ant.BuildException
Retrieve the column of the parameter.

Returns:
The column of the parameter
Throws:
org.apache.tools.ant.BuildException - In case the column was not set.
See Also:
setColumn(java.lang.String)

getDatabaseValue

public java.lang.String getDatabaseValue(java.sql.ResultSet resultSet)
                                  throws org.apache.tools.ant.BuildException
Retrieve the database value of the parameter

The value is retrieved based on the supplied resulset.

Parameters:
resultSet - A resultset with the current row that contains the column
Returns:
The value of the attribute in the database
Throws:
org.apache.tools.ant.BuildException - In case the column was not found in the resultset.


Copyright © 2003-2004 Marco Jansen (Contrado Technologies). All Rights Reserved.