Search in sources :

Example 1 with CharacterExpression

use of javax.jdo.query.CharacterExpression in project datanucleus-api-jdo by datanucleus.

the class StringExpressionImpl method charAt.

/* (non-Javadoc)
     * @see org.datanucleus.query.typesafe.StringExpression#charAt(int)
     */
public CharacterExpression charAt(int pos) {
    List<org.datanucleus.query.expression.Expression> args = new ArrayList();
    args.add(new Literal(pos));
    org.datanucleus.query.expression.Expression invokeExpr = new InvokeExpression(queryExpr, "charAt", args);
    return new CharacterExpressionImpl(invokeExpr);
}
Also used : InvokeExpression(org.datanucleus.query.expression.InvokeExpression) DyadicExpression(org.datanucleus.query.expression.DyadicExpression) NumericExpression(javax.jdo.query.NumericExpression) CharacterExpression(javax.jdo.query.CharacterExpression) InvokeExpression(org.datanucleus.query.expression.InvokeExpression) StringExpression(javax.jdo.query.StringExpression) PersistableExpression(javax.jdo.query.PersistableExpression) BooleanExpression(javax.jdo.query.BooleanExpression) Expression(javax.jdo.query.Expression) Literal(org.datanucleus.query.expression.Literal) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 BooleanExpression (javax.jdo.query.BooleanExpression)1 CharacterExpression (javax.jdo.query.CharacterExpression)1 Expression (javax.jdo.query.Expression)1 NumericExpression (javax.jdo.query.NumericExpression)1 PersistableExpression (javax.jdo.query.PersistableExpression)1 StringExpression (javax.jdo.query.StringExpression)1 DyadicExpression (org.datanucleus.query.expression.DyadicExpression)1 InvokeExpression (org.datanucleus.query.expression.InvokeExpression)1 Literal (org.datanucleus.query.expression.Literal)1