org.datanucleus.store.mapped.expression
Class ScalarExpression.DatastoreFieldExpression

java.lang.Object
  extended by org.datanucleus.store.mapped.expression.ScalarExpression
      extended by org.datanucleus.store.mapped.expression.ScalarExpression.DatastoreFieldExpression
Enclosing class:
ScalarExpression

public static class ScalarExpression.DatastoreFieldExpression
extends ScalarExpression

A field expression represents a storage location for the value with an associated type


Nested Class Summary
 
Nested classes/interfaces inherited from class org.datanucleus.store.mapped.expression.ScalarExpression
ScalarExpression.DatastoreFieldExpression, ScalarExpression.DyadicOperator, ScalarExpression.ExpressionList, ScalarExpression.IllegalArgumentTypeException, ScalarExpression.IllegalOperationException, ScalarExpression.MethodInvocationException, ScalarExpression.MonadicOperator, ScalarExpression.Operator
 
Field Summary
 
Fields inherited from class org.datanucleus.store.mapped.expression.ScalarExpression
aliasIdentifier, checkForTypeAssignability, expressionList, FILTER, LOCALISER, lowestOperator, mapping, OP_ADD, OP_AND, OP_BETWEEN, OP_COM, OP_CONCAT, OP_DIV, OP_EQ, OP_GT, OP_GTEQ, OP_IN, OP_IS, OP_ISNOT, OP_LIKE, OP_LT, OP_LTEQ, OP_MOD, OP_MUL, OP_NEG, OP_NOT, OP_NOTEQ, OP_NOTIN, OP_NOTLIKE, OP_OR, OP_SUB, parameterName, PROJECTION, qs, st, te
 
Constructor Summary
ScalarExpression.DatastoreFieldExpression(QueryExpression qs, DatastoreField field, LogicSetExpression te)
           
 
Method Summary
 BooleanExpression eq(ScalarExpression expr)
          Equality operator (equals to)
 boolean equals(java.lang.Object o)
          Equality operator providing a simple comparison of expressions.
 int hashCode()
           
 BooleanExpression noteq(ScalarExpression expr)
          Equality operator (not equals to)
 java.lang.String toString()
           
 
Methods inherited from class org.datanucleus.store.mapped.expression.ScalarExpression
accessField, add, and, as, assertValidTypeForParameterComparison, callMethod, cast, checkForTypeAssignability, com, div, encloseWithInParentheses, eor, getAlias, getConsistentTypeForParameterComparison, getExpressionList, getLogicSetExpression, getMapping, getNonAliasExpression, getQueryExpression, gt, gteq, in, instanceOf, ior, lt, lteq, mod, mul, neg, not, setParameterName, sub, toStatementText
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScalarExpression.DatastoreFieldExpression

public ScalarExpression.DatastoreFieldExpression(QueryExpression qs,
                                                 DatastoreField field,
                                                 LogicSetExpression te)
Parameters:
qs -
field -
te -
Method Detail

eq

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

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

noteq

public BooleanExpression noteq(ScalarExpression expr)
Description copied from class: ScalarExpression
Equality operator (not equals to)

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Description copied from class: ScalarExpression
Equality operator providing a simple comparison of expressions.

Overrides:
equals in class ScalarExpression
Parameters:
o - The other object
Returns:
Whether they are equal

toString

public java.lang.String toString()
Overrides:
toString in class ScalarExpression


Copyright © 2010. All Rights Reserved.