public class QueryHints extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static String | HINT_CACHE_MODEThe hint key for specifying the cache mode ( CacheMode) to be in effect for the
 execution of the hinted query. | 
| static String | HINT_CACHE_REGIONThe 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_CACHEABLEThe hint key for specifying whether the query results should be cached for the next (cached) execution of the
 "same query". | 
| static String | HINT_COMMENTThe hint key for specifying a comment which is to be embedded into the SQL sent to the database. | 
| static String | HINT_FETCH_SIZEThe hint key for specifying a JDBC fetch size, used when executing the resulting SQL. | 
| static String | HINT_FETCHGRAPHHint providing a "fetchgraph" EntityGraph. | 
| static String | HINT_FLUSH_MODEThe hint key for specifying the flush mode ( FlushMode) to be in effect for the
 execution of the hinted query. | 
| static String | HINT_LOADGRAPHHint providing a "loadgraph" EntityGraph. | 
| static String | HINT_NATIVE_LOCKMODE | 
| static String | HINT_READONLYThe 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_TIMEOUTDeprecated. 
 use  SPEC_HINT_TIMEOUTinstead | 
| static String | SPEC_HINT_TIMEOUTThe 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 insteadpublic static final String SPEC_HINT_TIMEOUT
public static final String HINT_COMMENT
public static final String HINT_FETCH_SIZE
public static final String HINT_CACHEABLE
public static final String HINT_CACHE_REGION
public static final String HINT_READONLY
public static final String HINT_CACHE_MODE
CacheMode) to be in effect for the
 execution of the hinted query.public static final String HINT_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
public static final String HINT_LOADGRAPH
Copyright © 2017 JBoss by Red Hat. All rights reserved.