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 20 public class UnaryExp extends SqlExp { 21 22 public UnaryExp(SqlExp child) { 23 super(child); 24 } 25 26 public UnaryExp() { 27 } 28 29 public SqlExp createInstance() { 30 return new UnaryExp(); 31 } 32 33 36 public int createAlias(int index) { 37 return childList.createAlias(index); 38 } 39 40 47 public void appendSQLImp(SqlDriver driver, CharBuf s, SqlExp leftSibling) { 48 childList.appendSQL(driver, s, null); 49 } 50 51 55 public SqlExp normalize(SqlDriver driver, SelectExp sel, boolean convertExists) { 56 SqlExp r = childList.normalize(driver, sel, convertExists); 57 if (r != null) childList = r; 58 return null; 59 } 60 61 65 public void replaceSelectExpRef(SelectExp old, SelectExp nw) { 66 childList.replaceSelectExpRef(old, nw); 67 } 68 69 72 public int getJdbcType() { 73 return childList.getJdbcType(); 74 } 75 76 79 public int getJavaTypeCode() { 80 return childList.getJavaTypeCode(); 81 } 82 } 83 84 | Popular Tags |