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 Thu, 29 Sep 2005 16:17:30 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

------------------------------------------------------------------------------
  = NewQueryTests New TCK Query Tests =
  
  Package names of all query test classes start with `org.apache.jdo.query.`.[[BR]]
- Package names of all queries start with `org.apache.jdo.tck.pc.`.
+ Package names of all pc classes start with `org.apache.jdo.tck.pc.`.[[BR]]
+ Package names of all result classes start with `org.apache.jdo.tck.query.result.classes.`.[[BR]]
  
  [[Anchor(LanguageExtensions)]]
  
@@ -76, +77 @@

  === Keywords ===
  
  || '''Assertion''' || '''JDOQL''' || '''Testclass''' || '''Comment''' ||
- ||<|4> '''A14.4-6:''' Keywords must not be used as package names, class names, parameter
names, or variable names in queries. || `SELECT FROM this.Employee` ||<|4> `jdoql.keywords.`[[BR]]`InvalidUseOfKeywords`
||<|4> Negative test. ||
+ ||<|6> '''A14.4-6:''' Keywords must not be used as package names, class names, parameter
names, or variable names in queries. || `SELECT INTO range.PersonResult company.Person` ||<|6>
`jdoql.keywords.`[[BR]]`InvalidUseOfKeywords` ||<|6> Negative test. ||
+ || `SELECT INTO range FROM company.Person` ||
+ || `SELECT FROM select.Person` ||
- || `SELECT FROM this` ||
+ || `SELECT FROM select` ||
- || `SELECT FROM company.Employee PARAMETERS int this` ||
+ || `SELECT FROM company.Person PARAMETERS int this` ||
- || `SELECT FROM company.Employee VARIABLES long this` ||
+ || `SELECT FROM company.Person VARIABLES long this` ||
- ||<|2> '''A14.4-7''': Keywords are permitted as field names only if they are on the
right side of the "." in field access expressions || '''`valid:`'''[[BR]] `SELECT this.select
FROM ...JDOQLKeywordsAsFieldNames` ||<|2> `jdoql.keywords.`[[BR]]`KeywordsAsFieldNames`
||<|2> Positive and negative test.[[BR]]New  pc class required. ||
+ ||<|2> '''A14.4-7''': Keywords are permitted as field names only if they are on the
right side of the "." in field access expressions || '''`valid:`'''[[BR]] `SELECT this.select
FROM query.JDOQLKeywordsAsFieldNames` ||<|2> `jdoql.keywords.`[[BR]]`KeywordsAsFieldNames`
||<|2> Positive and negative test.[[BR]]New  pc class required. ||
- || '''`invalid:`'''[[BR]] `SELECT select FROM ...JDOQLKeywordsAsFieldNames` ||
+ || '''`invalid:`'''[[BR]] `SELECT select FROM query.JDOQLKeywordsAsFieldNames` ||
- ||'''A14.6.13-1:''' The String version of Query represents all query elements using a single
string. The string contains the following structure: || `SELECT firstname AS firstName,` `lastname
AS lastName` `INTO ...FullName` `FROM company.FullTimeEmployee` `WHERE salary > 1000` `&
projects.contains(project)` `& project.budget > limit` `VARIABLES Project project`
`PARAMETERS BigDecimal limit` `ORDER BY salary` `GROUP BY firstname, lastname` `HAVING lastname.startsWith('R')`
`RANGE 1 TO 10` || `jdoql.keywords.`[[BR]]`SingleString` || Positive test.[[BR]]New result
class required. ||
+ ||'''A14.6.13-1:''' The String version of Query represents all query elements using a single
string. The string contains the following structure: || `SELECT firstname AS firstName,` `lastname
AS lastName` `INTO FullName` `FROM company.FullTimeEmployee` `WHERE salary > 1000` `&
projects.contains(project)` `& project.budget > limit` `VARIABLES Project project`
`PARAMETERS BigDecimal limit` `IMPORTS IMPORT company.Project;` `IMPORT java.math.BigDecimal`
`GROUP BY firstname, lastname` `HAVING lastname.startsWith('emp')` `ORDER BY personid` `RANGE
1 TO 5` || `jdoql.keywords.`[[BR]]`SingleString` || Positive test.[[BR]]New result class required.
||
- ||<|3> '''A14.6.13-2:''' Keywords, identified above in '''bold''', are either all
upper-case or all lower-case. Keywords cannot be mixed case. || '''`valid:`'''[[BR]] `SELECT
FROM company.Person` ||<|3> `jdoql.keywords.`[[BR]]`UppercaseLowercase` ||<|3>
Positive and negative test. ||
+ ||<|4> '''A14.6.13-2:''' Keywords, identified above in '''bold''', are either all
upper-case or all lower-case. Keywords cannot be mixed case. || '''`valid:`'''[[BR]] `SELECT
FROM company.Person` ||<|4> `jdoql.keywords.`[[BR]]`UppercaseLowercase` ||<|4>
Positive and negative test. ||
  || '''`valid:`'''[[BR]] `select from company.Person` ||
+ || '''`valid:`'''[[BR]] `select FROM company.Person` ||
  || '''`invalid:`'''[[BR]] `SeLeCt FrOm company.Person` ||
  
  [[Anchor(NewOperators)]]

Mime
View raw message