db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jdo Wiki] Update of "QueryTests" by CraigRussell
Date Mon, 19 Sep 2005 15:48:34 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jdo Wiki" for change notification.

The following page has been changed by CraigRussell:
http://wiki.apache.org/jdo/QueryTests

------------------------------------------------------------------------------
  || '''A14.6-17:''' `void setGrouping (String grouping);` Specify the grouping of results
for aggregates. || `SELECT lastname FROM company.Person GROUP BY lastname` || `api.`[[BR]]`SetGrouping`
|| Positive test. ||
  || '''A14.6-18:''' `void setUnique (boolean unique);` Specify that there is a single result
of the query. || `SELECT UNIQUE firstname` `FROM company.Person` `WHERE lastname == Russel'`
|| `api.`[[BR]]`SetUnique` || Positive test. ||
  || '''A14.6-19:''' `void setResultClass (Class resultClass);` Specify the class to be used
to return result instances. || `SELECT firstname, lastname INTO ...FullName` `FROM company.Person`
|| `api.`[[BR]]`SetResultClass` || Positive test. ||
- || '''A14.6-20:''' `setRange(int fromIncl, int toExcl);` Specify the number of instances
to skip over and the maximum number of result in­stances to return. || `SELECT FROM company.Person
RANGE 1 TO 10` || `api.`[[BR]]`SetRange` || Positive test. ||
+ || '''A14.6-20:''' `setRange(int fromIncl, int toExcl);` Specify the number of instances
to skip over and the maximum number of result instances to return. || `SELECT FROM company.Person
RANGE 1 TO 10` || `api.`[[BR]]`SetRange` || Positive test. ||
  || '''A14.6-22:''' The `Unmodifiable` option, when set to `true`, disallows further modification
of the query, except for specifying the range and result class and `ignoreCache` option. ||
`SELECT FROM company.Person` || `api.`[[BR]]`UnmodifiableQuery` || Negative test. ||
  || '''A14.6-23:''' The single string query is first parsed to yield the result, result class,
filter, variable list, parameter list, import list, grouping, ordering, and range. Then, the
values specified in APIs `setResult`, `setResultClass`, `setFilter`, `declareVariables`, `declareParamters`,
`declareImports`, `setGrouping`, `setOrdering`, and `setRange` override the corresponding
settings from the single string query. || `...` || `api.`[[BR]]`SingleStringQuery` || Positive
test. ||
  || '''A14.9-1:''' Some JDO vendors provide extensions to the query, and these extensions
must be set in the query instance prior to execution. || `SELECT FROM company.Person` || `api.`[[BR]]`QueryExtentions`
|| Positive test. ||

Mime
View raw message