Class FunctionCallExp
java.lang.Object
org.apache.cayenne.exp.Expression
org.apache.cayenne.exp.ValueExp
org.apache.cayenne.exp.FunctionCallExp
- All Implemented Interfaces:
XMLSerializable
- Direct Known Subclasses:
AbsExp, AggregateFunctionCallExp, ConcatExp, CurrentDateExp, CurrentTimeExp, CurrentTimestampExp, CustomFunctionExp, ExtractExp, LengthExp, LocateExp, LowerExp, ModExp, SqrtExp, SubstringExp, TrimExp, UpperExp
public abstract sealed class FunctionCallExp
extends ValueExp
permits AbsExp, AggregateFunctionCallExp, ConcatExp, CurrentDateExp, CurrentTimeExp, CurrentTimestampExp, CustomFunctionExp, ExtractExp, LengthExp, LocateExp, LowerExp, ModExp, SqrtExp, SubstringExp, TrimExp, UpperExp
- Since:
- 5.0
-
Field Summary
Fields inherited from class Expression
operands, PRUNED_NODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendAsString(Appendable out) Appends own content as a String to the provided Appendable: the operands separated by the operator.protected voidbooleanprotected StringgetExpressionOperator(int index) Returns the operator printed between the operands, before the operand at the given index.abstract StringinthashCode()protected static StringnameToCamelCase(String functionName) booleanprotected booleanWhether this node is wrapped in parentheses when printed as an operand of another node.Methods inherited from class ValueExp
evaluateNode, evaluateSubNode, getRequiredChildrenCountMethods inherited from class Expression
andExp, andExp, appendOperandAsString, deepCopy, encodeAsXML, evaluate, evaluateOperand, exists, expName, filter, filterObjects, first, flattenTree, getOperand, getOperandCount, getPathAliases, isValidParent, match, notExists, notExp, orExp, orExp, params, params, paramsArray, pruneNodeForPrunedChild, setOperand, setOperands, shallowCopy, toString, transform, transformExpression, traverse, traverse
-
Constructor Details
-
FunctionCallExp
-
-
Method Details
-
needParenthesis
public boolean needParenthesis() -
getFunctionName
-
getExpressionOperator
Description copied from class:ExpressionReturns the operator printed between the operands, before the operand at the given index.- Specified by:
getExpressionOperatorin classExpression
-
equals
- Overrides:
equalsin classExpression
-
hashCode
public int hashCode()- Overrides:
hashCodein classExpression
-
appendFunctionNameAsString
- Throws:
IOException
-
appendAsString
Description copied from class:ExpressionAppends own content as a String to the provided Appendable: the operands separated by the operator.- Overrides:
appendAsStringin classExpression- Throws:
IOException
-
parenthesizeAsOperand
protected boolean parenthesizeAsOperand()Description copied from class:ExpressionWhether this node is wrapped in parentheses when printed as an operand of another node. Compound nodes are, leaves and nodes with their own delimiters (function calls, lists) are not.- Overrides:
parenthesizeAsOperandin classExpression
-
nameToCamelCase
-