net.sourceforge.anttestsetgen
Class Entry

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

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

The Entry object describes how a database column is mapped to a key in the property file.

Version:
$Id: Entry.java,v 1.4 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
Entry()
          Default constructor.
 
Method Summary
 java.lang.String getColumn()
          Retrieve the name of the database column.
 boolean getCreateproperty()
          Retrieve the createproperty flag to find out if a new ant property has to be created.
 java.lang.String getJavaType()
          Retrieve the type of the Entry that should be used when generating Java code.
 java.lang.String getKey()
          Retrieve the name of the key.
 java.util.List getValues()
          Retrieve the testset values.
 java.lang.String getXmlType()
          Retrieve the type of the Entry that should be used when generating an XML message.
 void processResult(java.sql.ResultSet resultSet, TestSet testSet)
          Process the ResultSet to determine the values of the testset.
 void setColumn(java.lang.String column)
          Set the name of the database column.
 void setCreateproperty(java.lang.String createproperty)
          Set createproperty flag to indicate that also a new ant property has to be created.
 void setKey(java.lang.String key)
          Set the name of the key in the poperty file.
 void setType(java.lang.String type)
          Set the type of the Entry.
 
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

Entry

public Entry()
Default constructor.

Method Detail

setKey

public void setKey(java.lang.String key)
            throws org.apache.tools.ant.BuildException
Set the name of the key in the poperty file.

The name should be a valid Java Attribute Name. That means that in should start with a letter, an underscore or a dollar-sign. The rest of characters should be a letter, a digit, an underscore or a dollar-sign.

Parameters:
key - The name of the key in the poperty file
Throws:
org.apache.tools.ant.BuildException - In case the name of the key is not a valid Java Attribute Name
See Also:
getKey()

getKey

public java.lang.String getKey()
Retrieve the name of the key.

Returns:
The name of the key
See Also:
setKey(java.lang.String)

setColumn

public void setColumn(java.lang.String column)
Set the name of the database column.

Parameters:
column - The name of the database column
See Also:
getColumn()

getColumn

public java.lang.String getColumn()
Retrieve the name of the database column.

Returns:
The name of the database column
See Also:
setColumn(java.lang.String)

setCreateproperty

public void setCreateproperty(java.lang.String createproperty)
Set createproperty flag to indicate that also a new ant property has to be created.

Parameters:
createproperty - Flag to indicate that also a new ant property has to be created. Value should be "true" or "false"
See Also:
getCreateproperty()

getCreateproperty

public boolean getCreateproperty()
Retrieve the createproperty flag to find out if a new ant property has to be created.

Returns:
A flag that indicates if a new ant property has to be created.
See Also:
setCreateproperty(java.lang.String)

getValues

public java.util.List getValues()
Retrieve the testset values.

Returns:
A list with Strings

setType

public void setType(java.lang.String type)
Set the type of the Entry. The type should be in the list with valid types.

Parameters:
type -

getJavaType

public java.lang.String getJavaType()
Retrieve the type of the Entry that should be used when generating Java code.

Returns:
The type to be used when generating Java Code.

getXmlType

public java.lang.String getXmlType()
Retrieve the type of the Entry that should be used when generating an XML message.

Returns:
The type to be used when generating an XML message.

processResult

public void processResult(java.sql.ResultSet resultSet,
                          TestSet testSet)
Process the ResultSet to determine the values of the testset.

Parameters:
resultSet -
testSet -


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