net.datacrow.core.db
Class QueryOptions

java.lang.Object
  extended by net.datacrow.core.db.QueryOptions

public class QueryOptions
extends java.lang.Object

Additional query options such as the ordering.

Author:
Robert Jan van der Waals

Constructor Summary
QueryOptions(DcField[] ordering, boolean bComplyToAllConditions, boolean bPreciseSelect)
          Creates a new instance.
 
Method Summary
 boolean getComplyAllConditions()
          Indicates if all the conditions should be matched.
 java.lang.String[] getOrdering()
          The ordering to be applied when querying for the items.
 boolean getPreciseSelect()
          Indicates if matches have to be precise (equals or like condition).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryOptions

public QueryOptions(DcField[] ordering,
                    boolean bComplyToAllConditions,
                    boolean bPreciseSelect)
Creates a new instance.

Parameters:
ordering - The ordering to applied.
bComplyToAllConditions - All conditions have to be met.
bPreciseSelect - Only Exact matches only.
Method Detail

getOrdering

public java.lang.String[] getOrdering()
The ordering to be applied when querying for the items.

Returns:

getComplyAllConditions

public boolean getComplyAllConditions()
Indicates if all the conditions should be matched.

Returns:

getPreciseSelect

public boolean getPreciseSelect()
Indicates if matches have to be precise (equals or like condition).