Top Description Fields Constructors Methods
javax.persistence

public Class QueryTimeoutException

extends PersistenceException
Class Inheritance

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.
Since
Java Persistence 2.0

Field Summary

Modifier and TypeField and Description
pack-priv Query
query

The query object that caused the exception

Constructor Summary

AccessConstructor and Description
public
QueryTimeoutException()

Constructs a new QueryTimeoutException exception with null as its detail message.

public
QueryTimeoutException(String
the detail message.
message
)

Constructs a new QueryTimeoutException exception with the specified detail message.

public
QueryTimeoutException(String
the detail message.
message
,
Throwable
the cause.
cause
)

Constructs a new QueryTimeoutException exception with the specified detail message and cause.

public
QueryTimeoutException(Throwable
the cause.
cause
)

Constructs a new QueryTimeoutException exception with the specified cause.

public
QueryTimeoutException(Query
the query.
query
)

Constructs a new QueryTimeoutException exception with the specified query.

public
QueryTimeoutException(String
the detail message.
message
,
Throwable
the cause.
cause
,
Query
the query.
query
)

Constructs a new QueryTimeoutException exception with the specified detail message, cause, and query.

Method Summary

Modifier and TypeMethod and Description
public Query

Returns:

the query.
getQuery
()

Returns the query that caused this exception.

Field Detail

queryback to summary
pack-priv Query query

The query object that caused the exception

Constructor Detail

QueryTimeoutExceptionback to summary
public QueryTimeoutException()

Constructs a new QueryTimeoutException exception with null as its detail message.

QueryTimeoutExceptionback to summary
public QueryTimeoutException(String message)

Constructs a new QueryTimeoutException exception with the specified detail message.

Parameters
message:String

the detail message.

QueryTimeoutExceptionback to summary
public QueryTimeoutException(String message, Throwable cause)

Constructs a new QueryTimeoutException exception with the specified detail message and cause.

Parameters
message:String

the detail message.

cause:Throwable

the cause.

QueryTimeoutExceptionback to summary
public QueryTimeoutException(Throwable cause)

Constructs a new QueryTimeoutException exception with the specified cause.

Parameters
cause:Throwable

the cause.

QueryTimeoutExceptionback to summary
public QueryTimeoutException(Query query)

Constructs a new QueryTimeoutException exception with the specified query.

Parameters
query:Query

the query.

QueryTimeoutExceptionback to summary
public QueryTimeoutException(String message, Throwable cause, Query query)

Constructs a new QueryTimeoutException exception with the specified detail message, cause, and query.

Parameters
message:String

the detail message.

cause:Throwable

the cause.

query:Query

the query.

Method Detail

getQueryback to summary
public Query getQuery()

Returns the query that caused this exception.

Returns:Query

the query.