From cb29e503658e2a3339c265651a869fcbe0d5bd7d Mon Sep 17 00:00:00 2001 From: Taichi Uragami Date: Fri, 6 Apr 2012 23:52:39 +0900 Subject: Added support for left outer join. --- src/com/iciql/Query.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/com/iciql/Query.java b/src/com/iciql/Query.java index aa0ce4b..9aefe27 100644 --- a/src/com/iciql/Query.java +++ b/src/com/iciql/Query.java @@ -845,6 +845,15 @@ public class Query { return new QueryJoin(this, join); } + @SuppressWarnings({ "unchecked", "rawtypes" }) + public QueryJoin leftJoin(A alias) { + TableDefinition def = (TableDefinition) db.define(alias.getClass()); + SelectTable join = new SelectTable(db, this, alias, true); + def.initSelectObject(join, alias, aliasMap); + joins.add(join); + return new QueryJoin(this, join); + } + Db getDb() { return db; } -- cgit v1.2.3