public class QueryHints
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CACHE_MODE
The cache mode to use.
|
static java.lang.String |
CACHE_REGION
The cache region to use.
|
static java.lang.String |
CACHEABLE
Are the query results cacheable?
|
static java.lang.String |
CALLABLE
Is the query callable? Note: only valid for named native sql queries.
|
static java.lang.String |
COMMENT
Defines a comment to be applied to the SQL sent to the database.
|
static java.lang.String |
FETCH_SIZE
Defines the JDBC fetch size to use.
|
static java.lang.String |
FETCHGRAPH
Hint providing a "fetchgraph" EntityGraph.
|
static java.lang.String |
FLUSH_MODE
The flush mode to associate with the execution of the query.
|
static java.lang.String |
FOLLOW_ON_LOCKING
Hint to enable/disable the follow-on-locking mechanism provided by
Dialect.useFollowOnLocking(QueryParameters) . |
static java.lang.String |
LOADGRAPH
Hint providing a "loadgraph" EntityGraph.
|
static java.lang.String |
NATIVE_LOCKMODE
Available to apply lock mode to a native SQL query since JPA requires that
Query.setLockMode(javax.persistence.LockModeType) throw an IllegalStateException if called for a native query. |
static java.lang.String |
PASS_DISTINCT_THROUGH
Hint to enable/disable the pass-distinct-through mechanism.
|
static java.lang.String |
READ_ONLY
Should entities returned from the query be set in read only mode?
|
static java.lang.String |
TIMEOUT_HIBERNATE
Apply a Hibernate query timeout, which is defined in seconds.
|
static java.lang.String |
TIMEOUT_JPA
Apply a JPA query timeout, which is defined in milliseconds.
|
public static final java.lang.String CACHE_MODE
public static final java.lang.String CACHE_REGION
public static final java.lang.String CACHEABLE
public static final java.lang.String CALLABLE
public static final java.lang.String COMMENT
public static final java.lang.String FETCH_SIZE
public static final java.lang.String FLUSH_MODE
public static final java.lang.String READ_ONLY
public static final java.lang.String TIMEOUT_HIBERNATE
public static final java.lang.String TIMEOUT_JPA
public static final java.lang.String NATIVE_LOCKMODE
Query.setLockMode(javax.persistence.LockModeType)
throw an IllegalStateException if called for a native query.
Accepts a LockModeType
or a LockMode
public static final java.lang.String FETCHGRAPH
public static final java.lang.String LOADGRAPH
public static final java.lang.String FOLLOW_ON_LOCKING
Dialect.useFollowOnLocking(QueryParameters)
.
A value of true
enables follow-on-locking, whereas a value of false
disables it.
If the value is null
, the the Dialect
strategy is going to be used instead.public static final java.lang.String PASS_DISTINCT_THROUGH
true
enables pass-distinct-through, whereas a value of false
disables it.
When the pass-distinct-through is disabled, the HQL and JPQL distinct clause is no longer passed to the SQL statement.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.