db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Watzek <mwa.t...@spree.de>
Subject Overview of new result/pc classes/named queries for JDO 2 query test cases
Date Mon, 26 Sep 2005 12:20:24 GMT
Hi,

below you find an overview of new result/pc classes/named queries which 
we have to add in order to implement the JDO 2 query test cases. Please 
comment.

What is a good package for the user-defined result classes?

1) ...query.result, or
2) ...query.result.classes, or
3) ...query.userresult
4) more ideas ?

New result classes:
------------------

- FullName
      constructors: ()
      public fields: -
      bean properties: String firstname, String firstName,
                       String lastname, String lastName
      put method: -
- StringIntResult
      constructors: (), (String, int)
      public fields: -
      bean properties: String s, int i
      put method: -
- NoArgConstructor,
      constructors: (String dummy)
      public fields: -
      bean properties: -
      put method: -
- NoFieldsNoMethods,
      constructors: ()
      public fields: -
      bean properties: -
      put method: -
- FieldsAndSetMethods,
      constructors: ()
      public fields: String s
      bean properties: String s
      put method: -
- FieldsAndPutMethod,
      constructors: ()
      public fields: String s
      bean properties: -
      put method: +
- PutMethod
      constructors: ()
      public fields: -
      bean properties: -
      put method: +
- PersonResult
      constructors: ()
      public fields: -
      bean properties: Person person
      put method: +

New pc classes:
--------------

Package is "...pc.query".

- JDOQLKeywordsAsFieldNames
      fields: parameters, select
- NoExtent
      does not manage an extent

Named queries in JDO metadata:
-----------------------------

- valid, unique is false, unmodifiable is false
- valid, unique is true, unmodifiable is false
- invalid, unique is true, unmodifiable is false
- invalid, unique is false, unmodifiable is true
- valid, not loaded
- invalid and uncompilable
- valid SQL query
- queries on <jdo>/<package>/<class> level
- test cases verifying the search order of named queries

Below you find the list of assertions, which rely on the extentions above:

- New result classes: A14.8-3, A14.7-2, A14.6.12-1, A14.6.12-2,
A14.6-23, A14.6-19, A14.6.13-1.
- New pc classes: A14.4-7, A14.6.5-2.
- New named queries: A14.5-16, A14.5-13, A14.5-12, A14.7-3.

Regards,
Michael
-- 
-------------------------------------------------------------------
Michael Watzek                  Tech@Spree Engineering GmbH
mailto:mwa.tech@spree.de        Buelowstr. 66
Tel.:  ++49/30/235 520 36       10783 Berlin - Germany
Fax.:  ++49/30/217 520 12       http://www.spree.de/
-------------------------------------------------------------------


Mime
View raw message