From ee1ced3f309361afac7aa49d40e7f0304fa56abe Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Thu, 10 Sep 2009 03:05:34 +0000 Subject: [PATCH] Added Ops.exists(). --- src/java/com/samskivert/depot/Ops.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/java/com/samskivert/depot/Ops.java b/src/java/com/samskivert/depot/Ops.java index 61f1e53..cea833f 100644 --- a/src/java/com/samskivert/depot/Ops.java +++ b/src/java/com/samskivert/depot/Ops.java @@ -103,6 +103,14 @@ public class Ops return new Exists(target); } + /** + * Creates an EXISTS expression with the supplied select clause. + */ + public static SQLExpression exists (SelectClause target) + { + return new Exists(target); + } + /** * Adds the supplied expressions together. */