use of javax.jdo.query.BooleanExpression in project datanucleus-api-jdo by datanucleus.
the class BooleanExpressionImpl method or.
/* (non-Javadoc)
* @see org.datanucleus.query.typesafe.BooleanExpression#or(org.datanucleus.query.typesafe.BooleanExpression)
*/
public BooleanExpression or(BooleanExpression expr) {
Expression leftQueryExpr = queryExpr;
Expression rightQueryExpr = ((ExpressionImpl) expr).getQueryExpression();
org.datanucleus.query.expression.Expression queryExpr = new DyadicExpression(leftQueryExpr, org.datanucleus.query.expression.Expression.OP_OR, rightQueryExpr);
return new BooleanExpressionImpl(queryExpr);
}
use of javax.jdo.query.BooleanExpression in project datanucleus-api-jdo by datanucleus.
the class BooleanExpressionImpl method and.
/* (non-Javadoc)
* @see org.datanucleus.query.typesafe.BooleanExpression#and(org.datanucleus.query.typesafe.BooleanExpression)
*/
public BooleanExpression and(BooleanExpression expr) {
Expression leftQueryExpr = queryExpr;
Expression rightQueryExpr = ((ExpressionImpl) expr).getQueryExpression();
org.datanucleus.query.expression.Expression queryExpr = new DyadicExpression(leftQueryExpr, org.datanucleus.query.expression.Expression.OP_AND, rightQueryExpr);
return new BooleanExpressionImpl(queryExpr);
}
use of javax.jdo.query.BooleanExpression in project datanucleus-api-jdo by datanucleus.
the class StringExpressionImpl method startsWith.
/* (non-Javadoc)
* @see org.datanucleus.query.typesafe.StringExpression#startsWith(java.lang.String)
*/
public BooleanExpression startsWith(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, "startsWith", args);
return new BooleanExpressionImpl(invokeExpr);
}
use of javax.jdo.query.BooleanExpression in project datanucleus-api-jdo by datanucleus.
the class StringExpressionImpl method equalsIgnoreCase.
/* (non-Javadoc)
* @see org.datanucleus.query.typesafe.StringExpression#equalsIgnoreCase(java.lang.String)
*/
public BooleanExpression equalsIgnoreCase(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, "equalsIgnoreCase", args);
return new BooleanExpressionImpl(invokeExpr);
}
Aggregations