toSql("doFields.dcDate", cond.getValue()); if (sqlPart.startsWith(" ")) { needsEscape = true; dt = DateUtility.parseDateStrict(cond.getValue()); } catch (ParseException e) { throw new QueryParseException("When using " toSql("doFields." + prop, cond.getValue()); if (sqlPart.indexOf("LIKE ") != -1) { throw new QueryParseException("The = " toSql("doFields." + prop, cond.getValue()); if (sqlPart.startsWith(" ")) { needsEscape = true;
toSql("doFields.dcDate", cond.getValue()); if (sqlPart.startsWith(" ")) { needsEscape = true; dt = DateUtility.parseDateStrict(cond.getValue()); } catch (ParseException e) { throw new QueryParseException("When using " toSql("doFields." + prop, cond.getValue()); if (sqlPart.indexOf("LIKE ") != -1) { throw new QueryParseException("The = " toSql("doFields." + prop, cond.getValue()); if (sqlPart.startsWith(" ")) { needsEscape = true;
/** * Convert a local {@link Condition} into a WSDL-style * {@link org.fcrepo.server.types.gen.Condition Condition}. */ public static org.fcrepo.server.types.gen.Condition convertConditionToGenCondition(Condition condition) { String opAbbr = condition.getOperator().getAbbreviation(); ComparisonOperator compOperator; try { compOperator = ComparisonOperator.fromValue(opAbbr); } catch (IllegalArgumentException e) { throw new IllegalArgumentException("unrecognized comparison operator string: '" + opAbbr + "'"); } org.fcrepo.server.types.gen.Condition cond = new org.fcrepo.server.types.gen.Condition(); cond.setProperty(condition.getProperty()); cond.setOperator(compOperator); cond.setValue(condition.getValue()); return cond; }