net.sf.dc.db
Class QueryOptions

java.lang.Object
  extended by net.sf.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%) and 'All conditions must apply'

Since:
1.3
Version:
0.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
clone, equals, finalize, 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


getComplyAllConditions

public boolean getComplyAllConditions()
Specifies if all conditions must apply


getPreciseSelect

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