org.jaffa.components.finder
Class FinderTx

java.lang.Object
  extended byorg.jaffa.components.finder.FinderTx

public class FinderTx
extends Object

This is the helper class for all Finder Tx (transaction) classes. It is provided to support repetitive functions.

Author:
GautamJ

Constructor Summary
FinderTx()
           
 
Method Summary
static void addCriteria(CriteriaField field, String name, Criteria criteria)
          This method will update the input criteria, based on the 'field' and 'name' inputs.
static void addCriteria(DateTimeCriteriaField field, String name, Criteria criteria)
          This method will update the input criteria, based on the 'field' and 'name' inputs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FinderTx

public FinderTx()
Method Detail

addCriteria

public static void addCriteria(CriteriaField field,
                               String name,
                               Criteria criteria)
This method will update the input criteria, based on the 'field' and 'name' inputs. It is invoked by the concrete class while building a Criteria object to query the database.

Parameters:
field - The criteria field which will have the operator and value(s).
name - The name of the field for which the criteria has been passed.
criteria - The Criteria object being built for the query, and which will be updated based on the 'field' and 'name' inputs.

addCriteria

public static void addCriteria(DateTimeCriteriaField field,
                               String name,
                               Criteria criteria)
This method will update the input criteria, based on the 'field' and 'name' inputs. It is invoked by the concrete class while building a Criteria object to query the database.

Parameters:
field - The criteria field which will have the operator and value(s).
name - The name of the field for which the criteria has been passed.
criteria - The Criteria object being built for the query, and which will be updated based on the 'field' and 'name' inputs.


Copyright © 2002-2004 JAFFA Project.