/** * Adds a LIKE clause between the current and the given expression. * * @param right the right hand side expression. * @return a new expression with the clause applied. */ public Expression like(boolean right) { return like(x(right)); }
/** * Adds a LIKE clause between the current and the given expression. * * @param right the right hand side expression. * @return a new expression with the clause applied. */ public Expression like(float right) { return like(x(right)); }
/** * Adds a LIKE clause between the current and the given expression. * * @param right the right hand side expression. * @return a new expression with the clause applied. */ public Expression like(double right) { return like(x(right)); }
/** * Adds a LIKE clause between the current and the given expression. * * @param right the right hand side expression. * @return a new expression with the clause applied. */ public Expression like(long right) { return like(x(right)); }
/** * Adds a LIKE clause between the current and the given expression. * * @param right the right hand side expression. * @return a new expression with the clause applied. */ public Expression like(JsonArray right) { return like(x(right)); }
/** * Adds a LIKE clause between the current and the given expression. * * @param right the right hand side expression. * @return a new expression with the clause applied. */ public Expression like(String right) { return like(x(right)); }
/** * Adds a LIKE clause between the current and the given expression. * * @param right the right hand side expression. * @return a new expression with the clause applied. */ public Expression like(int right) { return like(x(right)); }
/** * Adds a LIKE clause between the current and the given expression. * * @param right the right hand side expression. * @return a new expression with the clause applied. */ public Expression like(JsonObject right) { return like(x(right)); }
return x(document.getName()).gte(x(PARAM_PREFIX + document.getName())); case LIKE: return x(document.getName()).like(x(PARAM_PREFIX + document.getName())); case IN: return x(document.getName()).in(x(PARAM_PREFIX + document.getName()));
break; case LIKE: exp = left.like(getPlaceHolder(position, ignoreCase)); placeHolderValues.add(getValue(parameterValues)); break; case STARTING_WITH: exp = left.like(getPlaceHolder(position, ignoreCase) + " || '%'"); placeHolderValues.add(getValue(parameterValues)); break; case ENDING_WITH: exp = left.like("'%' || " + getPlaceHolder(position, ignoreCase)); placeHolderValues.add(getValue(parameterValues)); break; break; case CONTAINING: exp = left.like("'%' || " + getPlaceHolder(position, ignoreCase) + " || '%'"); placeHolderValues.add(getValue(parameterValues)); break;
break; case LIKE: exp = left.like(getPlaceHolder(position, ignoreCase)); placeHolderValues.add(getValue(parameterValues)); break; case STARTING_WITH: exp = left.like(getPlaceHolder(position, ignoreCase) + " || '%'"); placeHolderValues.add(getValue(parameterValues)); break; case ENDING_WITH: exp = left.like("'%' || " + getPlaceHolder(position, ignoreCase)); placeHolderValues.add(getValue(parameterValues)); break; break; case CONTAINING: exp = left.like("'%' || " + getPlaceHolder(position, ignoreCase) + " || '%'"); placeHolderValues.add(getValue(parameterValues)); break;