This function is to generate the sex related portion in the JDOQL query.
sexstring(sex)
sex
The value for the sex filter.