**/
public BooleanExpression endsWithMethod(ScalarExpression leftOperand, ScalarExpression rightOperand)
{
if (!(rightOperand instanceof StringExpression))
{
throw new IllegalArgumentTypeException(rightOperand);
}
StringLiteral pct = new StringLiteral(leftOperand.getQueryExpression(), leftOperand.getMapping(), '%');
return new BooleanExpression(leftOperand, ScalarExpression.OP_LIKE, pct.add(leftOperand.getQueryExpression().getStoreManager().getDatastoreAdapter().getEscapedPatternExpression(rightOperand)));
}