Hi,

when porting the existing JDO TCK query tests to test JDOQLTyped queries
I run into a couple of test cases where I don't know to map it to a
JDOQLTypedQuery instance.

Any idea how to support these cases?

(1) IF-THEN-ELSE

query.setFilter("this.salary > (IF (this.department.name ==
'Development') 15000 ELSE 25000)");

(2) Ordering with nulls first or nulls last

query.setOrdering("this.lifetimeOrthoBenefit ascending nulls first");

(3) Map Method get

query.setFilter("phoneNumbers.get('home') == '1111'");

(4) Methods abs and sqrt for Wrapper type fields (Integer, Long, Float,
Double)

query.setFilter("Math.abs(intNull) == 4"); where intNull is og ytpe Integer

(5) String Method startsWith(String, int)

"firstname.startsWith('mp', 1)"

Regards Michael

-- 
Michael Bouschen
akquinet tech@spree GmbH
Bülowstraße 66 • D-10783 Berlin
Tel:   +49 30 235520-33
Fax:  +49 30 217520-12

E-Mail: michael.bousc...@akquinet.de <mailto:michael.bousc...@akquinet.de>
Web:   www.akquinet.de <http://www.akquinet.de/>

Geschäftsführung: Martin Weber, Dr. Torsten Fink
Amtsgericht Berlin HRB 86780 • USt.-Id. Nr.: DE 225 964 680

[Facebook] <http://www.facebook.com/akquinet>  [XING]
<https://www.xing.com/companies/akquinetag>  [G+]
<https://plus.google.com/b/111054946250796705170/+akquinet/posts> 
[LinkedIn] <https://www.linkedin.com/company/akquinet-ag>  [Twitter]
<https://twitter.com/akquinet>

Reply via email to