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 MichaelWatzek
Date Fri, 23 Sep 2005 13:34:06 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 MichaelWatzek:
http://wiki.apache.org/jdo/QueryTests

------------------------------------------------------------------------------
  
  || '''Assertion''' || '''JDOQL''' || '''Testclass''' || '''Comment''' ||
  || '''A14.5-11:''' Construct a new query instance using the specified `String` as the single-string
representation of the query. || `SELECT FROM company.Person` || `api.`[[BR]]`NewQuerySingleString`
|| Positive test. ||
- || '''A14.5-12:''' Construct a new query instance with the given candidate class from a
named query. || `SELECT FROM company.Person` || `api.`[[BR]]`NewNamedQuery` || Positive test.[[BR]]Add
JDO metadata for named queries. ||
+ ||<|4> '''A14.5-12:''' Construct a new query instance with the given candidate class
from a named query. || '''`valid, unique is false, unmodifiable is false:`'''[[BR]]`SELECT
firstname` `INTO ...FullName` `FROM company.Person` ||<|4> `api.`[[BR]]`NewNamedQuery`
||<|4> Positive test and negative test.[[BR]]Add JDO metadata for named queries. ||
+ || '''`valid, unique is true, unmodifiable is false:`'''[[BR]]`SELECT firstname` `INTO ...FullName`
`FROM company.Person` `WHERE firstname == 'emp1First'`||
+ || '''`invalid, unique is true, unmodifiable is false:`'''[[BR]]`SELECT firstname` `INTO
...FullName` `FROM company.Person` ||
+ || '''`invalid, unique is false, unmodifiable is true:`'''[[BR]]`SELECT firstname` `INTO
...FullName` `FROM company.Person` ||
  || '''A14.5-13:''' If the named query is not found in already-loaded metadata, the query
is searched for using an algorithm. Files containing metadata are examined in turn until the
query is found. The order is based on the metadata search order for class metadata, but includes
files named based on the query name. || `SELECT FROM company.Person` || `api.`[[BR]]`MetadataSearchOrder`
|| Positive test.[[BR]]Add JDO metadata for named queries. ||
  || '''A14.5-14:''' If the metadata is not found in the above, a `JDOUserException` is thrown.
|| || `api.`[[BR]]`NamedQueryNotFound` || Negative test. ||
  || '''A14.5-15:''' The `Query` instance returned from this method can be modified by the
application, just like any other `Query` instance. || `SELECT FROM company.Person WHERE firstname
== 'emp1First'` || `api.`[[BR]]`ChangeQuery` || Positive test. ||

Mime
View raw message