Exemplo n.º 1
0
 public static boolean isBridge(JoinType type) {
   if (type != null
       && (type.equals(BRIDGE) || type.equals(BRIDGE_EXCLUSIVE) || type.equals(BRIDGE_SHARED))) {
     return true;
   }
   return false;
 }
  public void output(StringBuffer buf) {
    this.left.output(buf);
    buf.append(' ');
    buf.append(JoinType.toString(this.joinType));
    buf.append(' ');
    this.right.output(buf);

    if (this.condition != null) {
      buf.append(" ON ");
      this.condition.output(buf);
    }
  }
Exemplo n.º 3
0
 /**
  * @param p
  * @param id
  */
 public JoinPredicate(TeiidParser p, int id) {
     super(p, id);
     joinType = p.createASTNode(ASTNodes.JOIN_TYPE);
     joinType.setKind(Types.JOIN_INNER);
 }