Class ExtractExp
java.lang.Object
org.apache.cayenne.exp.Expression
org.apache.cayenne.exp.ValueExp
org.apache.cayenne.exp.FunctionCallExp
org.apache.cayenne.exp.ExtractExp
- All Implemented Interfaces:
XMLSerializable
- Since:
- 5.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAvailable components of date/time. -
Field Summary
Fields inherited from class Expression
operands, PRUNED_NODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected ObjectevaluateSubNode(Object o, Object[] evaluatedChildren) getPart()protected intvoidThis method is used by FunctionExpressionFactoryvoidsetPartToken(String partToken) This method is used byinvalid reference
QLParserCreates a copy of this expression node, without copying children.Methods inherited from class FunctionCallExp
appendAsString, equals, getExpressionOperator, hashCode, nameToCamelCase, needParenthesis, parenthesizeAsOperandMethods inherited from class ValueExp
evaluateNodeMethods 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, toString, transform, transformExpression, traverse, traverse
-
Constructor Details
-
ExtractExp
-
-
Method Details
-
getFunctionName
- Specified by:
getFunctionNamein classFunctionCallExp
-
appendFunctionNameAsString
- Overrides:
appendFunctionNameAsStringin classFunctionCallExp- Throws:
IOException
-
setPartToken
This method is used byinvalid reference
QLParser- Parameters:
partToken-frominvalid reference
Token#imageinvalid reference
QLParser
-
setPart
This method is used by FunctionExpressionFactory- Parameters:
part- date/time part to extract
-
getPart
-
getPartCamelCaseName
-
shallowCopy
Description copied from class:ExpressionCreates a copy of this expression node, without copying children.- Specified by:
shallowCopyin classExpression
-
getRequiredChildrenCount
protected int getRequiredChildrenCount()- Specified by:
getRequiredChildrenCountin classValueExp
-
evaluateSubNode
-