use of javax.jdo.query.NumericExpression in project datanucleus-api-jdo by datanucleus.
the class StringExpressionImpl method indexOf.
/* (non-Javadoc)
* @see org.datanucleus.query.typesafe.StringExpression#indexOf(java.lang.String, int)
*/
public NumericExpression indexOf(String str, int pos) {
List<org.datanucleus.query.expression.Expression> args = new ArrayList();
args.add(new Literal(str));
args.add(new Literal(pos));
org.datanucleus.query.expression.Expression invokeExpr = new InvokeExpression(queryExpr, "indexOf", args);
return new NumericExpressionImpl<Integer>(invokeExpr);
}
use of javax.jdo.query.NumericExpression in project datanucleus-api-jdo by datanucleus.
the class StringExpressionImpl method indexOf.
/* (non-Javadoc)
* @see org.datanucleus.query.typesafe.StringExpression#indexOf(java.lang.String)
*/
public NumericExpression<Integer> indexOf(String str) {
List<org.datanucleus.query.expression.Expression> args = new ArrayList();
args.add(new Literal(str));
org.datanucleus.query.expression.Expression invokeExpr = new InvokeExpression(queryExpr, "indexOf", args);
return new NumericExpressionImpl<Integer>(invokeExpr);
}
Aggregations