java.lang.Object
org.eclipse.persistence.expressions.ExpressionOperator
org.eclipse.persistence.expressions.ListExpressionOperator
- All Implemented Interfaces:
Serializable
INTERNAL:
A ListExpressionOperator is used with an ArgumentListFunctionExpression. It is capable
of expanding the number of arguments it can be an operator for. It is built from a set
of start strings, a repeating set of separators and a set of termination strings
It typically represents a database function that has a variable list of arguments
e.g. COALESCE(arg1, arg2, arg3, .... argn)
In the example above "COALESCE(" is the start string, "," is the separator and ")" is the
end string
- See Also:
-
ArgumentListFunctionExpressionExpression.coalesce()- Serialized Form
- Author:
- tware
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected intprotected String[]protected String[]protected String[]Fields inherited from class org.eclipse.persistence.expressions.ExpressionOperator
Abs, Acos, Add, AddDate, AddMonths, AggregateOperator, All, allOperators, And, Any, argumentIndices, As, Ascending, Ascii, Asin, Atan, Atan2, Average, Between, Case, CaseCondition, Cast, Ceil, CharIndex, CharLength, Chr, Coalesce, ComparisonOperator, Concat, Cos, Cosh, Cot, Count, CurrentDate, CurrentTime, databaseStrings, DateDifference, DateName, DatePart, DateToString, Decode, Deref, Descending, Difference, Distinct, Divide, Equal, EqualOuterJoin, Except, ExceptAll, Exists, ExistsNode, Exp, Extract, ExtractValue, ExtractXml, Floor, FunctionOperator, GetNumberVal, GetStringVal, GreaterThan, GreaterThanEqual, Greatest, HexToRaw, In, Initcap, Instring, InSubQuery, Intersect, IntersectAll, isBindingSupported, IsFragment, IsNull, isPrefix, isRepeating, javaStrings, LastDay, Least, LeftPad, LeftTrim, LeftTrim2, Length, LessThan, LessThanEqual, Like, LikeEscape, Ln, Locate, Locate2, Log, LogicalOperator, Maximum, Minimum, Mod, MonthsBetween, Multiply, name, Negate, NewTime, NextDay, nodeClass, Not, NotBetween, NotEqual, NotExists, NotIn, NotInSubQuery, NotLike, NotLikeEscape, NotNull, NullIf, NullsFirst, NullsLast, Nvl, Or, OrderOperator, platformOperatorNames, platformOperatorSelectors, Power, Ref, RefToHex, Regexp, Replace, Replicate, Reverse, Right, RightPad, RightTrim, RightTrim2, Round, RoundDate, SDO_FILTER, SDO_NN, SDO_RELATE, SDO_WITHIN_DISTANCE, selector, Sign, Sin, Sinh, Some, Soundex, Sqrt, StandardDeviation, Substring, SubstringSingleArg, Subtract, Sum, Tan, Tanh, ToChar, ToCharWithFormat, ToDate, Today, ToLowerCase, ToNumber, ToUpperCase, Translate, Trim, Trim2, Trunc, TruncateDate, type, Union, UnionAll, Value, Variance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyTo(ExpressionOperator operator) String[]INTERNAL: Recalculate the database strings each time this is called in case one has been added.intString[]String[]String[]voidbooleanINTERNAL: If we have all the required information, this operator is complete and can be used as is.voidsetIsComplete(boolean isComplete) voidsetNumberOfItems(int numberOfItems) voidsetSeparator(String separator) voidsetSeparators(String[] separators) voidsetStartString(String startString) voidsetStartStrings(String[] startStrings) voidsetTerminationString(String terminationString) voidsetTerminationStrings(String[] terminationStrings) Methods inherited from class org.eclipse.persistence.expressions.ExpressionOperator
abs, acos, addDate, addMonths, addOperator, all, and, any, applyFunction, as, ascending, ascii, asin, atan, average, bePostfix, bePrefix, beRepeating, between, caseConditionStatement, caseStatement, cast, ceil, charIndex, charLength, chr, coalesce, concat, conformBetween, conformLike, cos, cosh, cot, count, createNode, currentDate, currentTime, currentTimeStamp, dateDifference, dateName, datePart, dateToString, decode, deref, descending, difference, distinct, doesRelationConform, equalOuterJoin, equals, except, exceptAll, exists, existsNode, exp, expressionFor, expressionFor, expressionForArguments, expressionForWithBaseLast, extract, extractValue, extractXml, floor, getAllOperators, getJavaStrings, getName, getNodeClass, getNumberVal, getOperator, getPlatformOperatorName, getPlatformOperatorNames, getPlatformOperatorSelectors, getSelector, getStringVal, getType, greatest, hashCode, hexToRaw, ifNull, in, initcap, initializeAggregateFunctionOperators, initializeFunctionOperators, initializeLogicalOperators, initializeOperators, initializePlatformOperatorNames, initializePlatformOperatorSelectors, initializeRelationOperators, instring, inSubQuery, intersect, intersectAll, isAggregateOperator, isAll, isAny, isAnyOrAll, isBindingSupported, isComparisonOperator, isFragment, isFunctionOperator, isLogicalOperator, isNull, isOrderOperator, isPrefix, lastDay, least, leftPad, leftTrim, leftTrim2, length, like, likeEscape, ln, locate, locate2, log, maximum, minimum, mod, monthsBetween, negate, newExpressionForArgument, newExpressionForArguments, newExpressionForArgumentWithBaseLast, newTime, nextDay, notExists, notIn, notInSubQuery, notLike, notLikeEscape, notNull, notOperator, nullIf, nullsFirst, nullsLast, or, oracleDateName, power, printCollection, printDuo, printJavaCollection, printJavaDuo, printsAs, printsAs, printsJavaAs, printsJavaAs, ref, refToHex, regexp, registerOperator, replace, replicate, resetOperators, reverse, right, rightPad, rightTrim, rightTrim2, round, roundDate, setArgumentIndices, setIsBindingSupported, setName, setNodeClass, setSelector, setType, sign, simpleAggregate, simpleFunction, simpleFunction, simpleFunctionNoParentheses, simpleLogical, simpleLogicalNoParens, simpleMath, simpleOrdering, simpleRelation, simpleRelation, simpleThreeArgumentFunction, simpleTwoArgumentFunction, sin, sinh, some, soundex, sqrt, standardDeviation, substring, substringSingleArg, sum, sybaseAddMonthsOperator, sybaseAtan2Operator, sybaseInStringOperator, sybaseLocate2Operator, sybaseLocateOperator, sybaseToCharOperator, sybaseToCharWithFormatOperator, sybaseToDateOperator, sybaseToDateToStringOperator, sybaseToNumberOperator, tan, tanh, toChar, toCharWithFormat, toDate, today, toLowerCase, toNumber, toString, toUpperCase, translate, trim, trim2, trunc, truncateDate, union, unionAll, value, variance
-
Field Details
-
startStrings
-
separators
-
terminationStrings
-
numberOfItems
protected int numberOfItems -
isComplete
protected boolean isComplete
-
-
Constructor Details
-
ListExpressionOperator
public ListExpressionOperator()
-
-
Method Details
-
copyTo
- Overrides:
copyToin classExpressionOperator
-
getDatabaseStrings
INTERNAL: Recalculate the database strings each time this is called in case one has been added.- Overrides:
getDatabaseStringsin classExpressionOperator
-
getNumberOfItems
public int getNumberOfItems() -
setNumberOfItems
public void setNumberOfItems(int numberOfItems) -
getStartStrings
-
setStartString
-
setStartStrings
-
getSeparators
-
setSeparator
-
setSeparators
-
getTerminationStrings
-
setTerminationString
-
setTerminationStrings
-
incrementNumberOfItems
public void incrementNumberOfItems() -
setIsComplete
public void setIsComplete(boolean isComplete) -
isComplete
public boolean isComplete()Description copied from class:ExpressionOperatorINTERNAL: If we have all the required information, this operator is complete and can be used as is. Otherwise we will need to look up a platform- specific operator.- Overrides:
isCompletein classExpressionOperator
-