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
Hint providing a "fetchgraph" EntityGraph.
|
static String |
FLUSH_MODE
The flush mode to associate with the execution of the query.
|
static String |
LOADGRAPH
Hint providing a "loadgraph" EntityGraph.
|
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 |
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_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 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 String FETCHGRAPH
public static final String LOADGRAPH
Copyright © 2017 JBoss by Red Hat. All rights reserved.