Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

criteriaFind parameter question

 
Sergei Simonov
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi there
I got a question. Does criteriaFind by spec from Sun should be supporting only AND logical operation?
"Carrier='SpeedyAir',Origin='SFO'"
"For example, the following argument string would select all records describing flights by the SpeedyAir carrier that originate in San Francisco."
What if user of Data class will pass something like "Origin='FRA',Origin='SFO'" :
give me records where Origin is FRA OR(!!) SFO?
Or we just return nothing without exception because the same record cannot have two values in one of its fields?
Thank you
 
Max Habibi
town drunk
( and author)
Sheriff
Posts: 4118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, only the logical should be supported.
M, author
The Sun Certified Java Developer Exam with J2SE 1.4
 
Sergei Simonov
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Max
You mean logical what?
Only logical AND operation we support?
 
Max Habibi
town drunk
( and author)
Sheriff
Posts: 4118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Must have mistyped my message. Yes, only AND.
M, author
The Sun Certified Java Developer Exam with J2SE 1.4
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic