|
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.DefaultJPQLQueryProblem
final class DefaultJPQLQueryProblem
The default implementation of a JPQLQueryProblem
.
Field Summary | |
---|---|
private int |
endIndex The position where the problem ends, inclusively. |
private Expression |
expression The Expression that is either not following the BNF grammar or that has semantic problems. |
private java.lang.String[] |
messageArguments The list of arguments that can be used to format the localized description of the problem. |
private java.lang.String |
messageKey The key used to retrieve the localized message describing the problem. |
private IQuery |
query The external form of the query to validate. |
private int |
startIndex The position where the problem ends. |
Constructor Summary | |
---|---|
DefaultJPQLQueryProblem(IQuery query, Expression expression, int startIndex, int endIndex, java.lang.String messageKey, java.lang.String... messageArguments) Creates a new DefaultJPQLQueryProblem . |
Method Summary | |
---|---|
int |
getEndPosition() Returns the position from where the problem ends, inclusively. |
Expression |
getExpression() Returns the parsed tree representing the JPQL query. |
java.lang.String[] |
getMessageArguments() Returns the arguments associate with the problem's message. |
java.lang.String |
getMessageKey() Returns the resource bundle key used to retrieve the localized message. |
IQuery |
getQuery() Returns the named query for which this problem was created. |
int |
getStartPosition() Returns the position from where the problem starts. |
java.lang.String |
toString() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int endIndex
private Expression expression
Expression
that is either not following the BNF grammar or that has semantic problems.private java.lang.String[] messageArguments
private java.lang.String messageKey
private IQuery query
private int startIndex
Constructor Detail |
---|
DefaultJPQLQueryProblem(IQuery query, Expression expression, int startIndex, int endIndex, java.lang.String messageKey, java.lang.String... messageArguments)
DefaultJPQLQueryProblem
.
query
- The external form of the query to validate, cannot be null
expression
- The Expression
that is either not following the BNF grammar or that has semantic problemsstartIndex
- The position where the problem was encounteredendIndex
- The position where the problem ends, inclusivelymessageKey
- The key used to retrieve the localized message describing the problemmessageArguments
- The list of arguments that can be used to format the localized description of the problemMethod Detail |
---|
public int getEndPosition()
getEndPosition
in interface JPQLQueryProblem
public Expression getExpression()
getExpression
in interface JPQLQueryProblem
public java.lang.String[] getMessageArguments()
getMessageArguments
in interface JPQLQueryProblem
null
list of arguments that can be used to format the localized messagepublic java.lang.String getMessageKey()
getMessageKey
in interface JPQLQueryProblem
public IQuery getQuery()
getQuery
in interface JPQLQueryProblem
public int getStartPosition()
getStartPosition
in interface JPQLQueryProblem
public java.lang.String toString()
toString
in class java.lang.Object
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |