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