Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.jpa.jpql
Interface JPQLQueryProblem

All Known Implementing Classes:
DefaultJPQLQueryProblem

public interface JPQLQueryProblem

A problem describes an issue found in a JPQL query because it is either grammatically or semantically incorrect.

Since:
2.3
Version:
2.3
Author:
Pascal Filion
See Also:
AbstractJPQLQueryHelper#validate()

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.

 

Method Detail

getEndPosition

int getEndPosition()
Returns the position from where the problem ends, inclusively.
Returns:
The position of the last character that was found as problematic within the JPQL query, inclusively

getExpression

Expression getExpression()
Returns the parsed tree representing the JPQL query.
Returns:
The parsed tree representing the JPQL query

getMessageArguments

java.lang.String[] getMessageArguments()
Returns the arguments associate with the problem's message.
Returns:
A non-null list of arguments that can be used to format the localized message

getMessageKey

java.lang.String getMessageKey()
Returns the resource bundle key used to retrieve the localized message.
Returns:
The key used to retrieve the localized message

getQuery

IQuery getQuery()
Returns the named query for which this problem was created.
Returns:
The named query that was validated

getStartPosition

int getStartPosition()
Returns the position from where the problem starts.
Returns:
The position of the first character that was found as problematic within the JPQL query, inclusively

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.