use of javax.jdo.query.BooleanExpression in project datanucleus-api-jdo by datanucleus.
the class ComparableExpressionImpl method gteq.
/* (non-Javadoc)
* @see org.datanucleus.query.typesafe.Expression#gteq(org.datanucleus.query.typesafe.ComparableExpression)
*/
public BooleanExpression gteq(ComparableExpression expr) {
Expression leftQueryExpr = queryExpr;
Expression rightQueryExpr = ((ExpressionImpl) expr).getQueryExpression();
org.datanucleus.query.expression.Expression queryExpr = new DyadicExpression(leftQueryExpr, org.datanucleus.query.expression.Expression.OP_GTEQ, rightQueryExpr);
return new BooleanExpressionImpl(queryExpr);
}
use of javax.jdo.query.BooleanExpression in project datanucleus-api-jdo by datanucleus.
the class StringExpressionImpl method matches.
public BooleanExpression matches(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, "matches", args);
return new BooleanExpressionImpl(invokeExpr);
}
use of javax.jdo.query.BooleanExpression in project datanucleus-api-jdo by datanucleus.
the class StringExpressionImpl method endsWith.
/* (non-Javadoc)
* @see org.datanucleus.query.typesafe.StringExpression#endsWith(java.lang.String)
*/
public BooleanExpression endsWith(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, "endsWith", args);
return new BooleanExpressionImpl(invokeExpr);
}
use of javax.jdo.query.BooleanExpression in project datanucleus-api-jdo by datanucleus.
the class BooleanExpressionImpl method not.
/* (non-Javadoc)
* @see org.datanucleus.query.typesafe.BooleanExpression#not()
*/
public BooleanExpression not() {
Expression rightQueryExpr = queryExpr;
org.datanucleus.query.expression.Expression queryExpr = new DyadicExpression(org.datanucleus.query.expression.Expression.OP_NOT, rightQueryExpr);
return new BooleanExpressionImpl(queryExpr);
}
use of javax.jdo.query.BooleanExpression in project datanucleus-api-jdo by datanucleus.
the class CollectionExpressionImpl method contains.
/* (non-Javadoc)
* @see org.datanucleus.query.typesafe.CollectionExpression#contains(java.lang.Object)
*/
public BooleanExpression contains(E elem) {
List<org.datanucleus.query.expression.Expression> args = new ArrayList();
args.add(new Literal(elem));
org.datanucleus.query.expression.Expression invokeExpr = new InvokeExpression(queryExpr, "contains", args);
return new BooleanExpressionImpl(invokeExpr);
}
Aggregations