01: package net.sourceforge.squirrel_sql.plugins.codecompletion.completionfunctions;
02:
03: import java.util.Hashtable;
04: import java.util.Vector;
05:
06: import net.sourceforge.squirrel_sql.client.session.ISession;
07:
08: public class LeftJoin extends AbstractJoin {
09:
10: public LeftJoin(ISession session) {
11: super (session);
12: }
13:
14: public String getCompareString() {
15: return "#l";
16: }
17:
18: public String getCompletionString() {
19: return "#l,<table1>,<table2>,...<tableN>,";
20: }
21:
22: public String toString() {
23: return getCompletionString() + " left join";
24: }
25:
26: @Override
27: protected String getJoinClause(String fkName, String table1,
28: String table2,
29: Hashtable<String, Vector<ColBuffer>> colBuffersByFkName) {
30: return "LEFT JOIN ";
31: }
32: }
|