private String buildWhereRawSql() { // this is the where part of a OQL query which // may contain bind parameters... String whereRaw = query.getRawWhereClause(); if (whereRaw == null) { whereRaw = ""; } // add any additional stuff to the where clause String additionalWhere = query.getAdditionalWhere(); if (additionalWhere != null) { whereRaw += additionalWhere; } return whereRaw; }