applicationLogic.utility
Class Filter

java.lang.Object
  extended by applicationLogic.utility.Filter

Deprecated.

public class Filter
extends java.lang.Object

Filter is used for creating strings to be used in SQL queries to restrict results.

Author:
02leungi

Constructor Summary
Filter()
          Deprecated.  
 
Method Summary
static java.lang.String byDate(java.lang.String dateFieldName, java.lang.String from, java.lang.String to)
          Deprecated. Create a string that can be used in an SQL query to results to those that have the date, represented by 'dateFieldname', between the start date 'from' and end date 'to'.
static java.lang.String byKeyword(java.lang.String item, java.lang.String value)
          Deprecated. Create a string that can be used in an SQL query to restrict results to those that contain the value 'value' in the field 'item'.
static java.lang.String byResultSize(int resultSize, int i)
          Deprecated. Create a string that can be used in an SQL query to limit the result size to 'resultSize' and the page to 'i' of the results.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Filter

public Filter()
Deprecated. 
Method Detail

byDate

public static java.lang.String byDate(java.lang.String dateFieldName,
                                      java.lang.String from,
                                      java.lang.String to)
Deprecated. 
Create a string that can be used in an SQL query to results to those that have the date, represented by 'dateFieldname', between the start date 'from' and end date 'to'.


byKeyword

public static java.lang.String byKeyword(java.lang.String item,
                                         java.lang.String value)
Deprecated. 
Create a string that can be used in an SQL query to restrict results to those that contain the value 'value' in the field 'item'.


byResultSize

public static java.lang.String byResultSize(int resultSize,
                                            int i)
Deprecated. 
Create a string that can be used in an SQL query to limit the result size to 'resultSize' and the page to 'i' of the results.

Parameters:
resultSize - The size of the result set in the resulting query string.
i - The page of the result. Page number starts from 0.