From 89a15571eddc948546669f79b1ada97013ee2032 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Thu, 10 Sep 2009 02:23:24 +0000 Subject: [PATCH] Another spot where we need to return non-specific types. --- src/java/com/samskivert/depot/Ops.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/java/com/samskivert/depot/Ops.java b/src/java/com/samskivert/depot/Ops.java index 12d71e9..84f2c0d 100644 --- a/src/java/com/samskivert/depot/Ops.java +++ b/src/java/com/samskivert/depot/Ops.java @@ -22,6 +22,7 @@ package com.samskivert.depot; import java.util.Collection; +import com.samskivert.depot.expression.FluentExp; import com.samskivert.depot.expression.SQLExpression; import com.samskivert.depot.operator.And; import com.samskivert.depot.operator.Not; @@ -36,7 +37,7 @@ public class Ops /** * Creates a {@link Not} with the supplied target expression. */ - public static Not not (SQLExpression expr) + public static SQLExpression not (SQLExpression expr) { return new Not(expr); } @@ -44,7 +45,7 @@ public class Ops /** * Creates an {@link And} with the supplied target expressions. */ - public static And and (Collection conditions) + public static FluentExp and (Collection conditions) { return new And(conditions); } @@ -52,7 +53,7 @@ public class Ops /** * Creates an {@link And} with the supplied target expressions. */ - public static And and (SQLExpression... conditions) + public static FluentExp and (SQLExpression... conditions) { return new And(conditions); } @@ -60,7 +61,7 @@ public class Ops /** * Creates an {@link Or} with the supplied target expressions. */ - public static Or or (Collection conditions) + public static FluentExp or (Collection conditions) { return new Or(conditions); } @@ -68,7 +69,7 @@ public class Ops /** * Creates an {@link Or} with the supplied target expressions. */ - public static Or or (SQLExpression... conditions) + public static FluentExp or (SQLExpression... conditions) { return new Or(conditions); }