| java.lang.Object com.versant.core.jdbc.sql.exp.SqlExp com.versant.core.jdbc.sql.exp.LeafExp com.versant.core.jdbc.sql.exp.ColumnExp
ColumnExp | public class ColumnExp extends LeafExp (Code) | | The name of a column.
|
col | public JdbcColumn col(Code) | | This may be null in which case this expression refers to all columns
(i.e. a 'select *').
|
jdbcField | public JdbcField jdbcField(Code) | | The field this expression is for (null if none).
|
selectExp | public SelectExp selectExp(Code) | | The table this column belongs to. This provides the correct alias.
|
ColumnExp | public ColumnExp()(Code) | | |
appendSQLImp | public void appendSQLImp(SqlDriver driver, CharBuf s, SqlExp leftSibling)(Code) | | Append SQL for this node to s.
Parameters: driver - The driver being used Parameters: s - Append the SQL here Parameters: leftSibling - |
createAlias | public int createAlias(int index)(Code) | | Create an aliases for any subtables we may have.
|
getClassIndex | public int getClassIndex()(Code) | | What is the class index for this expression (-1 if unknown)?
See Also: ParamNode |
getJavaTypeCode | public int getJavaTypeCode()(Code) | | What is the java type code of this expression (0 if unknown)?
|
getJdbcType | public int getJdbcType()(Code) | | What is the JDBC type of this expression (0 if unknown)?
|
getSingleSelectExp | public SelectExp getSingleSelectExp(SelectExp exclude)(Code) | | If this expression involves a single table only then return the
SelectExp for the table (e.g. a.col1 == 10 returns a, a.col1 = b.col2
returns null). This is used to detect expressions that can be moved
into the ON list for the join to the table involved.
Parameters: exclude - |
isAliasedColumn | public boolean isAliasedColumn()(Code) | | |
replaceSelectExpRef | public void replaceSelectExpRef(SelectExp old, SelectExp nw)(Code) | | Replace any references to old with nw. This is used when redundant
joins are removed.
|
setColAlias | public void setColAlias(String columnAlias)(Code) | | |
Methods inherited from com.versant.core.jdbc.sql.exp.SqlExp | public void append(SqlExp extra)(Code)(Java Doc) final public void appendSQL(SqlDriver driver, CharBuf s, SqlExp leftSibling)(Code)(Java Doc) protected void appendSQLImp(SqlDriver driver, CharBuf s, SqlExp leftSibling)(Code)(Java Doc) public static SqlExp appendWithAnd(SqlExp base, SqlExp e)(Code)(Java Doc) public int createAlias(int index)(Code)(Java Doc) public static SqlExp createBinaryOpExp(SqlExp left, int op, SqlExp right)(Code)(Java Doc) public static SqlExp createClone(SqlExp sqlExp)(Code)(Java Doc) public static SqlExp createClone(SqlExp inst, Map cloneMap)(Code)(Java Doc) public SqlExp createInstance()(Code)(Java Doc) public void dump(String indent)(Code)(Java Doc) public void dumpList(String indent)(Code)(Java Doc) public int getClassIndex()(Code)(Java Doc) public SqlExp getClone(SqlExp clone, Map cloneMap)(Code)(Java Doc) public int getConvertToJoin()(Code)(Java Doc) public int getFirstCharIndex()(Code)(Java Doc) public int getJavaTypeCode()(Code)(Java Doc) public int getJdbcType()(Code)(Java Doc) final public int getLastCharIndex()(Code)(Java Doc) final public int getPreFirstCharIndex()(Code)(Java Doc) public SelectExp getSingleSelectExp(SelectExp exclude)(Code)(Java Doc) public boolean isNegative()(Code)(Java Doc) public SqlExp normalize(SqlDriver driver, SelectExp sel, boolean convertExists)(Code)(Java Doc) public void replaceSelectExpRef(SelectExp old, SelectExp nw)(Code)(Java Doc) public boolean requiresParensInAnd()(Code)(Java Doc) public boolean requiresParensInMultiply()(Code)(Java Doc) public void setOuter(boolean on)(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|