|
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 |
endIndexThe position where the problem ends, inclusively. |
private Expression |
expressionThe Expression that is either not following the BNF grammar or that has semantic problems. |
private java.lang.String[] |
messageArgumentsThe list of arguments that can be used to format the localized description of the problem. |
private java.lang.String |
messageKeyThe key used to retrieve the localized message describing the problem. |
private IQuery |
queryThe external form of the query to validate. |
private int |
startIndexThe 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 nullexpression - 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 problem| Method Detail |
|---|
public int getEndPosition()
getEndPosition in interface JPQLQueryProblempublic Expression getExpression()
getExpression in interface JPQLQueryProblempublic java.lang.String[] getMessageArguments()
getMessageArguments in interface JPQLQueryProblemnull list of arguments that can be used to format the localized messagepublic java.lang.String getMessageKey()
getMessageKey in interface JPQLQueryProblempublic IQuery getQuery()
getQuery in interface JPQLQueryProblempublic int getStartPosition()
getStartPosition in interface JPQLQueryProblempublic 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 | ||||||||