/** * Call SUBSTRING(string, offset, length) function * * @param exp expression that must evaluate to string * @param offset start offset of substring * @param length length of substring * @return SUBSTRING() call expression */ public static Expression substringExp(Expression exp, int offset, int length) { return substringExp(exp, new ASTScalar((Integer)offset), new ASTScalar((Integer)length)); }
/** * @see FunctionExpressionFactory#substringExp(Expression, int, int) */ public Property<String> substring(int offset, int length) { return create(FunctionExpressionFactory.substringExp(getExpression(), offset, length), String.class); }
/** * Call SUBSTRING(string, offset, length) function * * @param path Object path value * @param offset start offset of substring * @param length length of substring * @return SUBSTRING() call expression */ public static Expression substringExp(String path, int offset, int length) { return substringExp(new ASTObjPath(path), new ASTScalar((Integer)offset), new ASTScalar((Integer)length)); }