• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jdo query using boolean flag (bit)

 
Matt Horton
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the jdo spec makes the comment: "ordering specification: the ordering specification includes a list of expressions with the ascending/descending indicator. the expression's type must be one of"
and then it gives a list, at the top of which is:
*primitive types except boolean;
I read this to indicate that I cannot order by a boolean flag. Fine, whatever. But I can't seem to construct a query using a boolean, period (see the period? --> ) . The following queries:
"somebitfieldthatjdomapsasbool != 0"
"somebitfieldthatjdomapsasbool == true"
"somebitfieldthatjdomapsasbool" (assuming some variant of oql)
"somebitfieldthatjdomapsasbool <> 0"
yadda yadda yadda, all throw exceptions, some of which make point that there is an error near "order". I'd paste several of the exceptions, but jdo isn't supported yet, and the exception classes are rarely even visible in the java bug database, so I'm not sure how helpful they would be.
My simple question is, do any of my oql statements seem obviously incorrect? Other flags work fine, e.g. "id == 1", "internalID == 'h123'", etc.
Thanks in advance. It would seem silly for jdo to not support bools in queries, so I know I'm doing something stupid. I just haven't found it yet.
Thanks again.
[ February 22, 2002: Message edited by: matt horton ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic