org.datanucleus.store.rdbms.sql.expression
Class ColumnExpression
java.lang.Object
org.datanucleus.store.rdbms.sql.expression.SQLExpression
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.
| 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 |
ColumnExpression
protected ColumnExpression(SQLStatement stmt,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
- Constructor for an SQL expression for a parameter.
- Parameters:
stmt - The statementmapping - Mapping for the column
ColumnExpression
protected ColumnExpression(SQLStatement stmt,
SQLTable table,
Column col)
- Constructor for an SQL expression for a column.
- Parameters:
stmt - The statementtable - The table in the statementcol - The column
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.