}
types = new ArrayList();
types.add("BIGINT");
List funcArgs3 = new ArrayList();
funcArgs3.add(new NumericExpression(fromExpr, Expression.OP_ADD, one));
// Add 1 to the passed in value so that it is of origin 1 to be compatible with LOCATE
// Make sure argument is typed as BIGINT
funcArgs.add(new NumericExpression(stmt, getMappingForClass(int.class), "CAST", funcArgs3, types));
}
NumericExpression locateExpr = new NumericExpression(stmt, getMappingForClass(int.class), "LOCATE", funcArgs);
// Subtract 1 from the result of LOCATE to be consistent with Java strings
return new NumericExpression(locateExpr, Expression.OP_SUB, one).encloseInParentheses();
}
}