org.datanucleus.store.mapped.expression
Class SubstringExpression

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.SubstringExpression

public class SubstringExpression
extends StringExpression

Representation of a Substring expression in a Query.

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
SubstringExpression(StringExpression str, NumericExpression begin)
          Constructs the substring
SubstringExpression(StringExpression str, NumericExpression begin, NumericExpression end)
          Constructs the substring
 
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

SubstringExpression

public SubstringExpression(StringExpression str,
                           NumericExpression begin)
Constructs the substring

Parameters:
str - the String Expression
begin - The start position

SubstringExpression

public SubstringExpression(StringExpression str,
                           NumericExpression begin,
                           NumericExpression end)
Constructs the substring

Parameters:
str - the String Expression
begin - The start position
end - The end position expression


Copyright © 2010. All Rights Reserved.