public class QueryHints extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CACHE_MODE
The cache mode to use.
|
static String |
CACHE_REGION
The cache region to use.
|
static String |
CACHEABLE
Are the query results cacheable?
|
static String |
CALLABLE
Is the query callable? Note: only valid for named native sql queries.
|
static String |
COMMENT
Defines a comment to be applied to the SQL sent to the database.
|
static String |
FETCH_SIZE
Defines the JDBC fetch size to use.
|
static String |
FETCHGRAPH
Deprecated.
(since 5.4) Use
GraphSemantic.FETCH 's GraphSemantic.getJpaHintName() instead |
static String |
FLUSH_MODE
The flush mode to associate with the execution of the query.
|
static String |
FOLLOW_ON_LOCKING
Hint to enable/disable the follow-on-locking mechanism provided by
Dialect.useFollowOnLocking(QueryParameters) . |
static String |
LOADGRAPH
Deprecated.
(since 5.4) Use
GraphSemantic.LOAD 's GraphSemantic.getJpaHintName() instead |
static 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 String |
NATIVE_SPACES
Hint for specifying query spaces to be applied to a native (SQL) query.
|
static String |
PASS_DISTINCT_THROUGH
Hint to enable/disable the pass-distinct-through mechanism.
|
static String |
READ_ONLY
Should entities returned from the query be set in read only mode?
|
static String |
TIMEOUT_HIBERNATE
Apply a Hibernate query timeout, which is defined in seconds.
|
static String |
TIMEOUT_JAKARTA_JPA
Apply a JPA query timeout, which is defined in milliseconds.
|
static String |
TIMEOUT_JPA
Apply a JPA query timeout, which is defined in milliseconds.
|
public static final String CACHE_MODE
public static final String CACHE_REGION
public static final String CACHEABLE
public static final String CALLABLE
public static final String COMMENT
public static final String FETCH_SIZE
public static final String FLUSH_MODE
public static final String READ_ONLY
public static final String TIMEOUT_HIBERNATE
public static final String TIMEOUT_JPA
public static final String TIMEOUT_JAKARTA_JPA
public static final String NATIVE_LOCKMODE
Query.setLockMode(javax.persistence.LockModeType)
throw an IllegalStateException if called for a native query.
Accepts a LockModeType
or a LockMode
@Deprecated public static final String FETCHGRAPH
GraphSemantic.FETCH
's GraphSemantic.getJpaHintName()
instead@Deprecated public static final String LOADGRAPH
GraphSemantic.LOAD
's GraphSemantic.getJpaHintName()
insteadpublic static final 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 Dialect
strategy is going to be used instead.public static final 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.public static final String NATIVE_SPACES
SynchronizeableQuery
,
Constant Field ValuesCopyright © 2001-2021 Red Hat, Inc. All Rights Reserved.