类 QueryHints
- java.lang.Object
-
- org.hibernate.jpa.QueryHints
-
public class QueryHints extends Object
Defines the supported JPA query hints- 作者:
- Steve Ebersole
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringHINT_CACHE_MODEThe hint key for specifying the cache mode (CacheMode) to be in effect for the execution of the hinted query.static StringHINT_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 StringHINT_CACHEABLEThe hint key for specifying whether the query results should be cached for the next (cached) execution of the "same query".static StringHINT_COMMENTThe hint key for specifying a comment which is to be embedded into the SQL sent to the database.static StringHINT_FETCH_SIZEThe hint key for specifying a JDBC fetch size, used when executing the resulting SQL.static StringHINT_FETCHGRAPH已过时。(since 5.4) UseGraphSemantic.FETCH'sGraphSemantic.getJpaHintName()insteadstatic StringHINT_FLUSH_MODEThe hint key for specifying the flush mode (FlushMode) to be in effect for the execution of the hinted query.static StringHINT_FOLLOW_ON_LOCKINGstatic StringHINT_LOADGRAPH已过时。(since 5.4) UseGraphSemantic.LOAD'sGraphSemantic.getJpaHintName()insteadstatic StringHINT_NATIVE_LOCKMODEstatic StringHINT_PASS_DISTINCT_THROUGHstatic StringHINT_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 StringHINT_TIMEOUT已过时。useSPEC_HINT_TIMEOUTinsteadstatic StringSPEC_HINT_TIMEOUTThe hint key for specifying a query timeout per JPA, which defines the timeout in milliseconds
-
构造器概要
构造器 限定符 构造器 说明 protectedQueryHints()
-
-
-
字段详细资料
-
HINT_TIMEOUT
@Deprecated public static final String HINT_TIMEOUT
已过时。useSPEC_HINT_TIMEOUTinsteadThe hint key for specifying a query timeout per Hibernate O/RM, which defines the timeout in seconds.- 另请参阅:
- 常量字段值
-
SPEC_HINT_TIMEOUT
public static final String SPEC_HINT_TIMEOUT
The hint key for specifying a query timeout per JPA, which defines the timeout in milliseconds- 另请参阅:
- 常量字段值
-
HINT_COMMENT
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.- 另请参阅:
- 常量字段值
-
HINT_FETCH_SIZE
public static final String HINT_FETCH_SIZE
The hint key for specifying a JDBC fetch size, used when executing the resulting SQL.- 另请参阅:
- 常量字段值
-
HINT_CACHEABLE
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".- 另请参阅:
- 常量字段值
-
HINT_CACHE_REGION
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.- 另请参阅:
- 常量字段值
-
HINT_READONLY
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.- 另请参阅:
- 常量字段值
-
HINT_CACHE_MODE
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.- 另请参阅:
- 常量字段值
-
HINT_FLUSH_MODE
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.- 另请参阅:
- 常量字段值
-
HINT_FETCHGRAPH
@Deprecated public static final String HINT_FETCHGRAPH
已过时。(since 5.4) UseGraphSemantic.FETCH'sGraphSemantic.getJpaHintName()insteadHint 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.
-
HINT_LOADGRAPH
@Deprecated public static final String HINT_LOADGRAPH
已过时。(since 5.4) UseGraphSemantic.LOAD'sGraphSemantic.getJpaHintName()insteadHint 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
-
-