org.datanucleus.store.mapped.expression
Class ConcatOperatorExpression

java.lang.Object
  extended by org.datanucleus.store.mapped.expression.ScalarExpression
      extended by org.datanucleus.store.mapped.expression.StringExpression
          extended by org.datanucleus.store.mapped.expression.ConcatOperatorExpression

public class ConcatOperatorExpression
extends StringExpression

Concatenate two expressions. This implements the SQL standard concatenation operator. e.g. EXPR1 || EXPR2

Version:
$Revision: 1.8 $

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
ConcatOperatorExpression(ScalarExpression operand1, ScalarExpression operand2)
          Performs a concatenation on two operands.
 
Method Summary
 
Methods inherited from class org.datanucleus.store.mapped.expression.StringExpression
add, charAtMethod, endsWithMethod, eq, equalsMethod, gt, gteq, in, indexOfMethod, indexOfMethod, lengthMethod, likeMethod, lt, lteq, matchesMethod, noteq, startsWithMethod, startsWithMethod, substringMethod, substringMethod, toLowerCaseMethod, toUpperCaseMethod, translateMethod, trimLeftMethod, trimMethod, trimRightMethod
 
Methods inherited from class org.datanucleus.store.mapped.expression.ScalarExpression
accessField, and, as, assertValidTypeForParameterComparison, callMethod, cast, checkForTypeAssignability, com, div, encloseWithInParentheses, eor, equals, getAlias, getConsistentTypeForParameterComparison, getExpressionList, getLogicSetExpression, getMapping, getNonAliasExpression, getQueryExpression, instanceOf, ior, mod, mul, neg, not, setParameterName, sub, toStatementText, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConcatOperatorExpression

public ConcatOperatorExpression(ScalarExpression operand1,
                                ScalarExpression operand2)
Performs a concatenation on two operands. op(operand1,operand2) operand1 op operand2

Parameters:
operand1 - the left-hand expression
operand2 - the right-hand expression


Copyright © 2010. All Rights Reserved.