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 InnerJoin extends AbstractJoin {
09:
10: public InnerJoin(ISession session) {
11: super (session);
12: }
13:
14: public String getCompareString() {
15: return "#i";
16: }
17:
18: public String getCompletionString() {
19: return "#i,<table1>,<table2>,...<tableN>,";
20: }
21:
22: public String toString() {
23: return getCompletionString() + " inner join";
24: }
25:
26: @Override
27: protected String getJoinClause(String fkName, String table1,
28: String table2,
29: Hashtable<String, Vector<ColBuffer>> colBuffersByFkName) {
30: return "INNER JOIN ";
31: }
32: }
|