|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
org.eclipse.persistence.jpa.internal.jpql.parser.StringExpression
org.eclipse.persistence.jpa.internal.jpql.parser.AbstractExpression
org.eclipse.persistence.jpa.internal.jpql.parser.AbstractEncapsulatedExpression
org.eclipse.persistence.jpa.internal.jpql.parser.AbstractSingleEncapsulatedExpression
org.eclipse.persistence.jpa.internal.jpql.parser.FuncExpression
public final class FuncExpression
This expression adds support to call native database functions.
New to EclipseLink 2.1.0.
func_expression ::= FUNC('function_name' {, func_item}*)
| Field Summary | |
|---|---|
private java.lang.String |
functionNameThe name of the SQL function. |
private boolean |
hasComma |
private boolean |
hasSpaceAFterComma |
| Fields inherited from class org.eclipse.persistence.jpa.internal.jpql.parser.AbstractExpression |
|---|
COMMA, DOT, DOUBLE_QUOTE, LEFT_CURLY_BRACKET, LEFT_PARENTHESIS, NOT_DEFINED, RIGHT_CURLY_BRACKET, RIGHT_PARENTHESIS, SINGLE_QUOTE, SPACE, UNDERSCORE |
| Constructor Summary | |
|---|---|
FuncExpression(AbstractExpression parent)Creates a new FuncExpression. |
|
| Method Summary | |
|---|---|
void |
accept(ExpressionVisitor visitor)Visits this Expression by the given visitor. |
(package private) void |
addOrderedEncapsulatedExpressionTo(java.util.List<StringExpression> children)Adds the StringExpressions representing the encapsulated Expression. |
java.lang.String |
encapsulatedExpressionBNF()Returns the BNF used to parse the encapsulated expression. |
java.lang.String |
getFunctionName()Returns the name of the SQL function. |
JPQLQueryBNF |
getQueryBNF()Returns the BNF of this Expression. |
java.lang.String |
getUnquotedFunctionName()Returns the name of the SQL function. |
boolean |
hasComma() |
boolean |
hasEncapsulatedExpression()Determines whether something was parsed after the left parenthesis. |
boolean |
hasFunctionName()Determines whether the function name was parsed. |
boolean |
hasSpaceAFterComma() |
(package private) void |
parseEncapsulatedExpression(WordParser wordParser, boolean tolerant)Parses the encapsulated expression by starting at the current position, which is part of the given WordParser. |
(package private) java.lang.String |
parseIdentifier(WordParser wordParser)Parses the identifier of this expression. |
(package private) void |
toParsedTextEncapsulatedExpression(java.lang.StringBuilder writer, boolean includeVirtual)Generates a string representation of the encapsulated Expression. |
| Methods inherited from class org.eclipse.persistence.jpa.internal.jpql.parser.AbstractSingleEncapsulatedExpression |
|---|
acceptChildren, addChildrenTo, getExpression, hasExpression, setExpression |
| Methods inherited from class org.eclipse.persistence.jpa.internal.jpql.parser.AbstractEncapsulatedExpression |
|---|
addOrderedChildrenTo, areLogicalIdentifiersSupported, getIdentifier, hasLeftParenthesis, hasRightParenthesis, isParsingComplete, parse, toParsedText |
| Methods inherited from class org.eclipse.persistence.jpa.internal.jpql.parser.AbstractExpression |
|---|
buildExpressionFromFallingBack, buildNullExpression, buildStringExpression, buildStringExpression, buildUnknownExpression, children, expressionFactory, expressionFactoryForIdentifier, findQueryBNF, getChildren, getJPAVersion, getParent, getRoot, getText, handleAggregate, identifierRole, identifiers, identifiers, identifierVersion, isAncestor, isIdentifier, isNull, isTolerant, isUnknown, isVirtual, orderedChildren, parse, parseSingleExpression, populatePosition, queryBNF, readdLeadingSpaces, rebuildActualText, rebuildParsedText, setParent, setText, shouldParseWithFactoryFirst, shouldSkipLiteral, toActualText, toParsedText, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String functionName
private boolean hasComma
private boolean hasSpaceAFterComma
| Constructor Detail |
|---|
FuncExpression(AbstractExpression parent)
FuncExpression.
parent - The parent of this expression| Method Detail |
|---|
public void accept(ExpressionVisitor visitor)
Expression by the given visitor.visitor - The visitor to visit this objectvoid addOrderedEncapsulatedExpressionTo(java.util.List<StringExpression> children)
StringExpressions representing the encapsulated Expression.addOrderedEncapsulatedExpressionTo in class AbstractSingleEncapsulatedExpressionchildren - The list used to store the string representation of the encapsulated Expressionpublic java.lang.String encapsulatedExpressionBNF()
encapsulatedExpressionBNF in class AbstractSingleEncapsulatedExpressionpublic java.lang.String getFunctionName()
public JPQLQueryBNF getQueryBNF()
Expression.getQueryBNF in class AbstractExpressionJPQLQueryBNF, which represents the grammar of this Expressionpublic java.lang.String getUnquotedFunctionName()
public boolean hasComma()
public boolean hasEncapsulatedExpression()
hasEncapsulatedExpression in class AbstractSingleEncapsulatedExpressiontrue if something was parsed; false otherwisepublic boolean hasFunctionName()
true if the function name was parsed; false otherwisepublic boolean hasSpaceAFterComma()
void parseEncapsulatedExpression(WordParser wordParser, boolean tolerant)
WordParser.parseEncapsulatedExpression in class AbstractSingleEncapsulatedExpressionwordParser - The text to parse based on the current position of the cursortolerant - Determines whether the parsing system should be tolerant, meaning if it should try to parse invalid or incomplete queriesjava.lang.String parseIdentifier(WordParser wordParser)
parseIdentifier in class AbstractEncapsulatedExpression
void toParsedTextEncapsulatedExpression(java.lang.StringBuilder writer,
boolean includeVirtual)
Expression.toParsedTextEncapsulatedExpression in class AbstractSingleEncapsulatedExpressionwriter - The buffer used to append the encapsulated Expression's string representationincludeVirtual - Determines whether to include any characters that are considered virtual, i.e. that was parsed when the query is incomplete and is needed for functionality like content assist
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||