rjw.dc.db
Class QueryOptions

java.lang.Object
  |
  +--rjw.dc.db.QueryOptions

public class QueryOptions
extends java.lang.Object

Holder of the query options used for a query. the options are:

  • Order by field
  • Select with precision (instead of %like%)
  • All conditions must apply
  • Since:
    1.3
    Version:
    DC0.50
    Author:
    Robert-Jan van der Waals

    Constructor Summary
    QueryOptions(java.lang.String sOrderByField, boolean bComplyToAllConditions, boolean bPreciseSelect)
              Creates a new query options object
     
    Method Summary
     boolean getComplyAllConditions()
              Specifies if all conditions must apply
     java.lang.String getOrderByField()
              Returns the field name on which the query should order the results
     boolean getPreciseSelect()
              Specifies whether the selection should be precise ('=' instead of '%like%')
     
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    QueryOptions

    public QueryOptions(java.lang.String sOrderByField,
                        boolean bComplyToAllConditions,
                        boolean bPreciseSelect)
    Creates a new query options object

    Parameters:
    sOrderByField - field name on which the query should order the results
    bComplyToAllConditions - specifies if all conditions must apply
    bPreciseSelect - specifies if the search should be done precise ('=' instead of '%like%')
    Method Detail

    getOrderByField

    public java.lang.String getOrderByField()
    Returns the field name on which the query should order the results

    Returns:
    (String) the field name on which the reults are ordered

    getComplyAllConditions

    public boolean getComplyAllConditions()
    Specifies if all conditions must apply

    Returns:
    (boolean) specifies if all conditions must apply

    getPreciseSelect

    public boolean getPreciseSelect()
    Specifies whether the selection should be precise ('=' instead of '%like%')

    Returns:
    (boolean) precise selection