net.sf.jso.query
Class Parameters

java.lang.Object
  extended bynet.sf.jso.query.Parameters
All Implemented Interfaces:
java.io.Serializable

public class Parameters
extends java.lang.Object
implements java.io.Serializable

Parameters for object query.

See Also:
Serialized Form

Field Summary
 Criteria criteria
          Criteria to be used.
 Order order
          Order to be used.
 int page
          Specifies which page of the result should be returned.
 int pageSize
          Devides the result in pages of pageSize objects.
 boolean polymorphic
          Indicates if polymorphism should be used when executing query.
 boolean summaries
          Indicates if summary objects should be returned as result.
 Variable[] variables
          Variables to be used.
 
Constructor Summary
Parameters()
          Constructs the parameters.
Parameters(java.lang.Class aClass)
          Constructs the parameters.
Parameters(java.lang.Class aClass, Criteria someCriteria)
          Constructs the parameters.
Parameters(java.lang.Class aClass, Criteria someCriteria, int aPageSize)
          Constructs the parameters.
Parameters(java.lang.Class aClass, Criteria someCriteria, Order someOrder)
          Constructs the parameters.
Parameters(java.lang.Class aClass, Criteria someCriteria, Order someOrder, int aPageSize, int aPage)
          Constructs the parameters.
Parameters(java.lang.Class aClass, Order someOrder)
          Constructs the parameters.
Parameters(Variable[] someVariables, Criteria someCriteria)
          Constructs the parameters.
Parameters(Variable[] someVariables, Criteria someCriteria, int aPageSize)
          Constructs the parameters.
Parameters(Variable[] someVariables, Criteria someCriteria, Order someOrder)
          Constructs the parameters.
Parameters(Variable[] someVariables, Criteria someCriteria, Order someOrder, int aPageSize, int aPage)
          Constructs the parameters.
Parameters(Variable[] someVariables, Criteria someCriteria, Order someOrder, int aPageSize, int aPage, boolean useSummaries)
          Constructs the parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

variables

public Variable[] variables
Variables to be used. The first variable (variabled[0]) is the variable for which the query result should be returned. At least one variable must be specified.


criteria

public Criteria criteria
Criteria to be used. May be an expression or a simple predicate.


order

public Order order
Order to be used. May be an expression or a simple field order.


pageSize

public int pageSize
Devides the result in pages of pageSize objects. Should be used together with page. Page sizes bellow 1 invalidates paging.


page

public int page
Specifies which page of the result should be returned. Should be used together with pageSize. Pages start at 0, any values bellow that invalidates paging.


summaries

public boolean summaries
Indicates if summary objects should be returned as result.


polymorphic

public boolean polymorphic
Indicates if polymorphism should be used when executing query.

Constructor Detail

Parameters

public Parameters()
Constructs the parameters.


Parameters

public Parameters(Variable[] someVariables,
                  Criteria someCriteria)
Constructs the parameters.

Parameters:
someVariables - Variables for the query.
someCriteria - Criteria for the query.

Parameters

public Parameters(Variable[] someVariables,
                  Criteria someCriteria,
                  Order someOrder)
Constructs the parameters.

Parameters:
someVariables - Variables for the query.
someCriteria - Criteria for the query.
someOrder - Order for the query.

Parameters

public Parameters(Variable[] someVariables,
                  Criteria someCriteria,
                  int aPageSize)
Constructs the parameters.

Parameters:
someVariables - Variables for the query.
someCriteria - Criteria for the query.
aPageSize - Page size for the query.

Parameters

public Parameters(Variable[] someVariables,
                  Criteria someCriteria,
                  Order someOrder,
                  int aPageSize,
                  int aPage)
Constructs the parameters.

Parameters:
someVariables - Variables for the query.
someCriteria - Criteria for the query.
someOrder - Order for the query.
aPageSize - Page size for the query.
aPage - Page to be returned.

Parameters

public Parameters(Variable[] someVariables,
                  Criteria someCriteria,
                  Order someOrder,
                  int aPageSize,
                  int aPage,
                  boolean useSummaries)
Constructs the parameters.

Parameters:
someVariables - Variables for the query.
someCriteria - Criteria for the query.
someOrder - Order for the query.
aPageSize - Page size for the query.
aPage - Page to be returned.
useSummaries - Indicates if summaries should be returned.

Parameters

public Parameters(java.lang.Class aClass)
Constructs the parameters. Sets only one variable, with the supplied class.

Parameters:
aClass - Class of the variable.
See Also:
Variable.Variable(Class)

Parameters

public Parameters(java.lang.Class aClass,
                  Criteria someCriteria)
Constructs the parameters. Sets only one variable, with the supplied class.

Parameters:
aClass - Class of the variable.
someCriteria - Criteria for the query.
See Also:
Variable.Variable(Class)

Parameters

public Parameters(java.lang.Class aClass,
                  Criteria someCriteria,
                  Order someOrder)
Constructs the parameters. Sets only one variable, with the supplied class.

Parameters:
aClass - Class of the variable.
someCriteria - Criteria for the query.
someOrder - Order for the query.
See Also:
Variable.Variable(Class)

Parameters

public Parameters(java.lang.Class aClass,
                  Order someOrder)
Constructs the parameters. Sets only one variable, with the supplied class.

Parameters:
aClass - Class of the variable.
someOrder - Order for the query.
See Also:
Variable.Variable(Class)

Parameters

public Parameters(java.lang.Class aClass,
                  Criteria someCriteria,
                  Order someOrder,
                  int aPageSize,
                  int aPage)
Constructs the parameters. Sets only one variable, with the supplied class.

Parameters:
aClass - Class of the variable.
someCriteria - Criteria for the query.
someOrder - Order for the query.
aPageSize - Page size for the query.
aPage - Page to be returned.
See Also:
Variable.Variable(Class)

Parameters

public Parameters(java.lang.Class aClass,
                  Criteria someCriteria,
                  int aPageSize)
Constructs the parameters. Sets only one variable, with the supplied class.

Parameters:
aClass - Class of the variable.
someCriteria - Criteria for the query.
aPageSize - Page size for the query.
See Also:
Variable.Variable(Class)