|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.persistence.PersistenceException
javax.persistence.QueryTimeoutException
public class QueryTimeoutException
Thrown by the persistence provider when a query times out and only the statement is rolled back. The current transaction, if one is active, will be not be marked for rollback.
| Constructor Summary | |
|---|---|
QueryTimeoutException()
Default constructor : builds an exception with an empty message. |
|
QueryTimeoutException(Query query)
Build an exception with the given entity object. |
|
QueryTimeoutException(String message)
Build an exception with the given message. |
|
QueryTimeoutException(String message,
Throwable causedByThrowable)
Builds an exception with a given message and given exception. |
|
QueryTimeoutException(String message,
Throwable causedByThrowable,
Query query)
Builds an exception with a given message and given exception. |
|
QueryTimeoutException(Throwable causedByThrowable)
Build an exception with the given exception. |
|
| Method Summary | |
|---|---|
Query |
getQuery()
Returns the query that caused this exception. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public QueryTimeoutException()
public QueryTimeoutException(String message)
message - the given message to use.public QueryTimeoutException(Query query)
entity - the given entity to use.public QueryTimeoutException(Throwable causedByThrowable)
causedByThrowable - the cause of this exception.
public QueryTimeoutException(String message,
Throwable causedByThrowable)
message - the message of this exception.causedByThrowable - the cause of this exception.
public QueryTimeoutException(String message,
Throwable causedByThrowable,
Query query)
message - the message of this exception.causedByThrowable - the cause of this exception.| Method Detail |
|---|
public Query getQuery()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||