toolbox.dao
Class Query.Field

Package class diagram package Query.Field
java.lang.Object
  extended by toolbox.dao.Query.Field
Enclosing class:
Query

 class Query.Field
extends java.lang.Object

The Field class represents a field within the query being generated. A field is a name value pair.


Constructor Summary
Query.Field(java.lang.String name, java.lang.String type, java.lang.Object[] values)
          Creates a new Field object with the given name and value.
 
Method Summary
 java.lang.String getFieldName()
          Returns the name of the field.
 java.lang.String getFieldType()
          Returns the type of this field.
 java.lang.Object[] getFieldValues()
          Returns the values of the field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Query.Field

Query.Field(java.lang.String name,
            java.lang.String type,
            java.lang.Object[] values)
Creates a new Field object with the given name and value.

Parameters:
name - Field name.
type - Indicates the type of field: single or range.
values - Field value.
Method Detail

getFieldName

public java.lang.String getFieldName()
Returns the name of the field.

Returns:
String containing the name of the field.

getFieldType

public java.lang.String getFieldType()
Returns the type of this field.

Returns:
String containig the type of the field.

getFieldValues

public java.lang.Object[] getFieldValues()
Returns the values of the field.

Returns:
Object array containing the values of the field.