All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ibs.ebf.db.EbfQueryParameters

java.lang.Object
   |
   +----java.util.Dictionary
           |
           +----java.util.Hashtable
                   |
                   +----ibs.ebf.db.EbfQueryParameters

public class EbfQueryParameters
extends Hashtable
This class is responsible for converting user supplied query parameters and parameter values into the hash table. User is also allowed to supply arrays of Query Parameter Names and Parameter Values, which in turn are converted into the Hashtable.

This class abstracts the process of converting parameters/values into the Hashtable and also prevents users from creating a parameter with a value of anything other than a String object.


Constructor Index

 o EbfQueryParameters()
Constructor for EbfQueryParameters class.

Method Index

 o getValue(String)
Returns value for the given parameter.
 o getValue(String, String)
Returns value for the given parameter.
 o put(String, String)
Set query parameter and its value using given strings
 o setValue(String, String)
Set query parameter and its value using given strings
 o setValue(String[], String[])
Set query parameters and its values using given string arrays.

Constructors

 o EbfQueryParameters
 public EbfQueryParameters()
Constructor for EbfQueryParameters class.

Methods

 o getValue
 public String getValue(String paramname)
Returns value for the given parameter. If parameter not found, it returns an empty string.

Parameters:
paramname - Parameter name
 o getValue
 public String getValue(String paramname,
                        String default_value)
Returns value for the given parameter. If parameter not found, it returns the given default value.

Parameters:
paramname - Parameter name
default_value - Default value to be returned if given paramname was not found.
 o put
 public void put(String paramname,
                 String paramvalue)
Set query parameter and its value using given strings

Parameters:
paramname - A String containing query parameter name
paramvalues - A String containing value for given parameter.
 o setValue
 public void setValue(String paramname,
                      String paramvalue)
Set query parameter and its value using given strings

Parameters:
paramname - A String containing query parameter name
paramvalues - A String containing value for given parameter.
 o setValue
 public void setValue(String paramnames[],
                      String paramvalues[]) throws InvalidArgumentException
Set query parameters and its values using given string arrays.

Parameters:
paramnames - An array of String containing list of query parameter names
paramvalues - An array of String containing values for given parameters.
Throws: InvalidArgumentException
If given query params and value arrays were not of same length.

All Packages  Class Hierarchy  This Package  Previous  Next  Index