org.datanucleus.store.rdbms.sql.expression
Class ColumnExpression

java.lang.Object
  extended by org.datanucleus.store.rdbms.sql.expression.SQLExpression
      extended by org.datanucleus.store.rdbms.sql.expression.ColumnExpression

public class ColumnExpression
extends SQLExpression

Representation of a column expression. Used within ObjectExpression for handling particular columns representing an object.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
SQLExpression.ColumnExpressionList
 
Field Summary
 
Fields inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
isParameter, LOCALISER, lowestOperator, mapping, st, stmt, subExprs, table
 
Constructor Summary
protected ColumnExpression(SQLStatement stmt, org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
          Constructor for an SQL expression for a parameter.
protected ColumnExpression(SQLStatement stmt, SQLTable table, Column col)
          Constructor for an SQL expression for a column.
 
Method Summary
 BooleanExpression eq(SQLExpression expr)
          Equality operator (equals to)
 BooleanExpression noteq(SQLExpression expr)
           
 java.lang.String toString()
          Stringifier method to return this "column" in a form for use in SQL statements.
 
Methods inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
add, and, cast, checkForAndCorrectParameterComparison, com, div, encloseInParentheses, eor, ge, getJavaTypeMapping, getNumberOfSubExpressions, getSQLStatement, getSQLTable, gt, in, invoke, ior, is, isParameter, le, lt, mod, mul, ne, neg, not, sub, toSQLText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColumnExpression

protected ColumnExpression(SQLStatement stmt,
                           org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
Constructor for an SQL expression for a parameter.

Parameters:
stmt - The statement
mapping - Mapping for the column

ColumnExpression

protected ColumnExpression(SQLStatement stmt,
                           SQLTable table,
                           Column col)
Constructor for an SQL expression for a column.

Parameters:
stmt - The statement
table - The table in the statement
col - The column
Method Detail

eq

public BooleanExpression eq(SQLExpression expr)
Description copied from class: SQLExpression
Equality operator (equals to)

Overrides:
eq in class SQLExpression
Parameters:
expr - the right-hand operand
Returns:
The type of an equality expression is a boolean

noteq

public BooleanExpression noteq(SQLExpression expr)

toString

public java.lang.String toString()
Stringifier method to return this "column" in a form for use in SQL statements. This can be of the following form(s)
 TABLEALIAS.MYCOLUMN
 MYTABLE.MYCOLUMN
 

Overrides:
toString in class java.lang.Object
Returns:
The String form for use


Copyright © 2009. All Rights Reserved.