Last modified by Pascal Robert on 2010/09/11 23:47

Hide last authors
Pascal Robert 3.1 1 = Fetch Specifications =
2
3 == Writing Expressions ==
4
5 Fetch specifications should be written so that any variables appearing in the specification occur on the right side of binary operators. For instance, use "name = $name" instead of "$name = name".
6
7 When comparing binary values, use 1,0 instead of "true","false" or "yes","no".
8
9 When comparing binary values to a variable, use "1=$variable" instead of "$variable=1".
Pascal Robert 7.1 10
11 If you use the "like" or "caseInsensitiveLike" operators, don't forget to add the wildcard in the value you pass to the bindings. For example, if you want to find all names beginning with "rob", use the following binding:
12
Pascal Robert 9.1 13 {{code}}
14
15 NSMutableDictionary<String,Object> bindings = new NSMutableDictionary<String,Object>();
16 bindings.takeValueForKey("rob" + '*', Member.NAME_KEY);
17
18 {{/code}}