From c8417a366e555a74740fc4a44bc1444b90d6b620 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 10 Jun 2009 17:29:16 +0000 Subject: [PATCH] Added bitAnd and bitOr. --- .../depot/expression/FluentExpression.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/java/com/samskivert/depot/expression/FluentExpression.java b/src/java/com/samskivert/depot/expression/FluentExpression.java index 177e998..2e79326 100644 --- a/src/java/com/samskivert/depot/expression/FluentExpression.java +++ b/src/java/com/samskivert/depot/expression/FluentExpression.java @@ -22,6 +22,8 @@ package com.samskivert.depot.expression; import com.samskivert.depot.operator.Add; import com.samskivert.depot.operator.And; +import com.samskivert.depot.operator.BitAnd; +import com.samskivert.depot.operator.BitOr; import com.samskivert.depot.operator.Div; import com.samskivert.depot.operator.Equals; import com.samskivert.depot.operator.GreaterThan; @@ -124,6 +126,30 @@ public abstract class FluentExpression return new Or(this, expr); } + /** Returns an {@link BitAnd} with this expression and the supplied target. */ + public BitAnd bitAnd (Comparable value) + { + return new BitAnd(this, value); + } + + /** Returns an {@link BitAnd} with this expression and the supplied target. */ + public BitAnd bitAnd (SQLExpression expr) + { + return new BitAnd(this, expr); + } + + /** Returns an {@link BitOr} with this expression and the supplied target. */ + public BitOr bitOr (Comparable value) + { + return new BitOr(this, value); + } + + /** Returns an {@link BitOr} with this expression and the supplied target. */ + public BitOr bitOr (SQLExpression expr) + { + return new BitOr(this, expr); + } + /** Returns an {@link Add} with this expression and the supplied target. */ public Add plus (Comparable value) {