1 2 12 package com.versant.core.jdbc.sql.exp; 13 14 import com.versant.core.jdbc.sql.SqlDriver; 15 import com.versant.core.util.CharBuf; 16 17 21 public class AndJoinExp extends AndExp { 22 23 public AndJoinExp(SqlExp children) { 24 super(children); 25 } 26 27 public AndJoinExp() { 28 } 29 30 public SqlExp createInstance() { 31 return new AndJoinExp(); 32 } 33 34 41 public void appendSQLImp(SqlDriver driver, CharBuf s, SqlExp leftSibling) { 42 childList.appendSQL(driver, s, null); 43 SqlExp prev = childList; 44 for (SqlExp e = childList.next; e != null; prev = e, e = e.next) { 45 s.append(" and "); 46 e.appendSQL(driver, s, prev); 47 } 48 } 49 50 56 public void setOuter(boolean on) { 57 for (SqlExp e = childList; e != null; e = e.next) { 58 e.setOuter(on); 59 } 60 } 61 62 } 63 64 | Popular Tags |