|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.jdo.query.ExpressionImpl<T>
public class ExpressionImpl<T>
Implementation of the methods for Expression, to be extended by the XXXExpressionImpl classes.
| Constructor Summary | |
|---|---|
ExpressionImpl(java.lang.Class<T> cls,
java.lang.String name,
ExpressionType type)
Constructor for a parameter or variable of this type. |
|
ExpressionImpl(Expression queryExpr)
Constructor taking in the query expression being represented. |
|
ExpressionImpl(PersistableExpression parent,
java.lang.String name)
Constructor, extending a parent, and accessing a member of that parent. |
|
| Method Summary | |
|---|---|
Expression |
cast(java.lang.Class cls)
Return an expression where this expression is cast to the specified type. |
NumericExpression<java.lang.Long> |
count()
Method to return a numeric expression representing the aggregated count of this expression. |
NumericExpression<java.lang.Long> |
countDistinct()
Method to return a numeric expression representing the aggregated (distinct) count of this expression. |
BooleanExpression |
eq(Expression expr)
Method returning whether this expression equals the other expression. |
BooleanExpression |
eq(T t)
Method returning whether this expression equals the literal. |
Expression |
getQueryExpression()
Accessor for the underlying (generic) query expression. |
BooleanExpression |
instanceOf(java.lang.Class cls)
Return an expression for whether this expression is an instanceof the supplied class. |
boolean |
isParameter()
|
boolean |
isVariable()
|
BooleanExpression |
ne(Expression expr)
Method returning whether this expression doesn't equal the other expression. |
BooleanExpression |
ne(T t)
Method returning whether this expression doesn't equal the literal. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpressionImpl(PersistableExpression parent,
java.lang.String name)
parent - The parent expression (or null, if candidate)name - Name of the member to access
public ExpressionImpl(java.lang.Class<T> cls,
java.lang.String name,
ExpressionType type)
cls - The type of the parameter/variablename - Name of the member to accesstype - The type, whether parameter or variablepublic ExpressionImpl(Expression queryExpr)
queryExpr - The (generic) query expression| Method Detail |
|---|
public Expression getQueryExpression()
public boolean isParameter()
public boolean isVariable()
public BooleanExpression eq(Expression expr)
Expression
eq in interface Expression<T>expr - Other expression
public BooleanExpression eq(T t)
Expression
eq in interface Expression<T>t - Literal
public BooleanExpression ne(Expression expr)
Expression
ne in interface Expression<T>expr - Other expression
public BooleanExpression ne(T t)
Expression
ne in interface Expression<T>t - literal
public BooleanExpression instanceOf(java.lang.Class cls)
Expression
instanceOf in interface Expression<T>cls - Class to check against
public Expression cast(java.lang.Class cls)
Expression
cast in interface Expression<T>cls - Class to cast to
public NumericExpression<java.lang.Long> count()
Expression
count in interface Expression<T>public NumericExpression<java.lang.Long> countDistinct()
Expression
countDistinct in interface Expression<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||