public class QueryHints extends Object
Defines the supported JPA query hints
Modifier and Type | Field and Description |
---|---|
static String |
HINT_CACHE_MODE
The hint key for specifying the cache mode (
CacheMode ) to be in effect for the
execution of the hinted query. |
static String |
HINT_CACHE_REGION
The hint key for specifying the name of the cache region (within Hibernate’s query result cache region)
to use for storing the query results.
|
static String |
HINT_CACHEABLE
The hint key for specifying whether the query results should be cached for the next (cached) execution of the
"same query".
|
static String |
HINT_COMMENT
The hint key for specifying a comment which is to be embedded into the SQL sent to the database.
|
static String |
HINT_FETCH_SIZE
The hint key for specifying a JDBC fetch size, used when executing the resulting SQL.
|
static String |
HINT_FETCHGRAPH
Hint providing a "fetchgraph" EntityGraph.
|
static String |
HINT_FLUSH_MODE
The hint key for specifying the flush mode (
FlushMode ) to be in effect for the
execution of the hinted query. |
static String |
HINT_FOLLOW_ON_LOCKING |
static String |
HINT_LOADGRAPH
Hint providing a "loadgraph" EntityGraph.
|
static String |
HINT_NATIVE_LOCKMODE |
static String |
HINT_PASS_DISTINCT_THROUGH |
static String |
HINT_READONLY
The hint key for specifying that objects loaded into the persistence context as a result of this query execution
should be associated with the persistence context as read-only.
|
static String |
HINT_TIMEOUT
Deprecated.
use
SPEC_HINT_TIMEOUT instead |
static String |
SPEC_HINT_TIMEOUT
The hint key for specifying a query timeout per JPA, which defines the timeout in milliseconds
|
Modifier | Constructor and Description |
---|---|
protected |
QueryHints() |
@Deprecated public static final String HINT_TIMEOUT
SPEC_HINT_TIMEOUT
insteadThe hint key for specifying a query timeout per Hibernate O/RM, which defines the timeout in seconds.
public static final String SPEC_HINT_TIMEOUT
The hint key for specifying a query timeout per JPA, which defines the timeout in milliseconds
public static final String HINT_COMMENT
The hint key for specifying a comment which is to be embedded into the SQL sent to the database.
public static final String HINT_FETCH_SIZE
The hint key for specifying a JDBC fetch size, used when executing the resulting SQL.
public static final String HINT_CACHEABLE
The hint key for specifying whether the query results should be cached for the next (cached) execution of the "same query".
public static final String HINT_CACHE_REGION
The hint key for specifying the name of the cache region (within Hibernate’s query result cache region) to use for storing the query results.
public static final String HINT_READONLY
The hint key for specifying that objects loaded into the persistence context as a result of this query execution should be associated with the persistence context as read-only.
public static final String HINT_CACHE_MODE
The hint key for specifying the cache mode (CacheMode
) to be in effect for the
execution of the hinted query.
public static final String HINT_FLUSH_MODE
The hint key for specifying the flush mode (FlushMode
) to be in effect for the
execution of the hinted query.
public static final String HINT_NATIVE_LOCKMODE
public static final String HINT_FETCHGRAPH
Hint providing a "fetchgraph" EntityGraph. Attributes explicitly specified as AttributeNodes are treated as FetchType.EAGER (via join fetch or subsequent select).
Note: Currently, attributes that are not specified are treated as FetchType.LAZY or FetchType.EAGER depending on the attribute’s definition in metadata, rather than forcing FetchType.LAZY.
public static final String HINT_LOADGRAPH
Hint providing a "loadgraph" EntityGraph. Attributes explicitly specified as AttributeNodes are treated as FetchType.EAGER (via join fetch or subsequent select). Attributes that are not specified are treated as FetchType.LAZY or FetchType.EAGER depending on the attribute’s definition in metadata
public static final String HINT_FOLLOW_ON_LOCKING
public static final String HINT_PASS_DISTINCT_THROUGH
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.