org.jpox.store.expression
Class NullLiteral
java.lang.Object
org.jpox.store.expression.ScalarExpression
org.jpox.store.expression.NullLiteral
- All Implemented Interfaces:
- Literal
- public class NullLiteral
- extends ScalarExpression
- implements Literal
Representation of a Null literal in a Query.
- Version:
- $Revision: 1.8 $
Fields inherited from class org.jpox.store.expression.ScalarExpression |
aliasIdentifier, 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_OR, OP_SUB, PROJECTION, qs, st, te |
Methods inherited from class org.jpox.store.expression.ScalarExpression |
accessField, and, as, callMethod, cast, com, div, encloseWithInParentheses, eor, equals, getAlias, getExpressionList, getLogicSetExpression, getMapping, getNonAliasExpression, getQueryExpression, gt, gteq, in, instanceOf, ior, lt, lteq, mod, mul, neg, not, sub, toStatementText, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NullLiteral
public NullLiteral(QueryExpression qs)
- Creates a null literal
- Parameters:
qs
- the QueryExpression
getValue
public java.lang.Object getValue()
- Description copied from interface:
Literal
- Accessor to the literal value
- Specified by:
getValue
in interface Literal
- Returns:
- the value of the literal
add
public ScalarExpression add(ScalarExpression expr)
- Description copied from class:
ScalarExpression
- Additive Operator. The binary + operator performs addition when applied to two operands of numeric type, producing the sum of the operands. If the type of either operand of a + operator is String, then the operation is string concatenation.
- Overrides:
add
in class ScalarExpression
- Parameters:
expr
- the right-hand operand
- Returns:
- If one of the operands is String, the returned value is the string concatenation; The sum of two operands of numeric type. The left-hand operand is the minuend and the right-hand operand is the subtrahend;
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
Copyright © -2007 . All Rights Reserved.