|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.rdbms.sql.expression.SQLExpression
org.datanucleus.store.rdbms.sql.expression.ObjectExpression
public class ObjectExpression
Representation of an Object expression in a Query. Typically represents a persistable object, and so its identity, though could be used to represent any Object.
Let's take an example. We have classes A and B, and A contains a reference to B "b". If we do a JDOQL query for class A of "b == value" then "b" is interpreted first and an ObjectExpression is created to represent that object (of type B).
| 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 | |
|---|---|
ObjectExpression(SQLStatement stmt,
SQLTable table,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
Constructor for an SQL expression for a (field) mapping in a specified table. |
|
| Method Summary | |
|---|---|
SQLExpression |
cast(SQLExpression expr)
Cast operator. |
BooleanExpression |
eq(SQLExpression expr)
Equals operator. |
BooleanExpression |
in(SQLExpression expr)
In expression. |
BooleanExpression |
is(SQLExpression expr)
An "is" (instanceOf) expression, providing a BooleanExpression whether this expression is an instanceof the provided type. |
BooleanExpression |
ne(SQLExpression expr)
Not equals operator. |
void |
useFirstColumnOnly()
Method to change the expression to use only the first column. |
| Methods inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression |
|---|
add, and, checkForAndCorrectParameterComparison, com, div, encloseInParentheses, eor, ge, getJavaTypeMapping, getNumberOfSubExpressions, getSQLStatement, getSQLTable, gt, invoke, ior, isParameter, le, lt, mod, mul, neg, not, sub, toSQLText |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectExpression(SQLStatement stmt,
SQLTable table,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
stmt - The statementtable - The table in the statementmapping - The mapping for the field| Method Detail |
|---|
public void useFirstColumnOnly()
public BooleanExpression eq(SQLExpression expr)
eq in class SQLExpressionexpr - The expression we compare with (the right-hand-side in the query)
public BooleanExpression ne(SQLExpression expr)
ne in class SQLExpressionexpr - The expression we compare with (the right-hand-side in the query)
public BooleanExpression in(SQLExpression expr)
SQLExpressionexpr
in in class SQLExpressionexpr - the right-hand expression
public SQLExpression cast(SQLExpression expr)
cast in class SQLExpressionexpr - Expression representing the type to cast to
public BooleanExpression is(SQLExpression expr)
is in class SQLExpressionexpr - The expression representing the type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||