Package org.hibernate.jpa
Class QueryHints
- java.lang.Object
-
- org.hibernate.jpa.QueryHints
-
public class QueryHints extends Object
Defines the supported JPA query hints
-
-
Field Summary
Fields Modifier and Type Field Description 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_FETCHGRAPHHint providing a "fetchgraph" EntityGraph.static 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_LOADGRAPHHint providing a "loadgraph" EntityGraph.static StringHINT_NATIVE_LOCKMODEstatic StringHINT_NATIVE_SPACESstatic 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_TIMEOUTDeprecated.useSPEC_HINT_TIMEOUTinsteadstatic StringJAKARTA_HINT_FETCHGRAPHHint providing a "fetchgraph" EntityGraph.static StringJAKARTA_HINT_LOADGRAPHHint providing a "loadgraph" EntityGraph.static StringJAKARTA_SPEC_HINT_TIMEOUTThe hint key for specifying a query timeout per JPA, which defines the timeout in millisecondsstatic StringSPEC_HINT_TIMEOUTThe hint key for specifying a query timeout per JPA, which defines the timeout in milliseconds
-
Constructor Summary
Constructors Modifier Constructor Description protectedQueryHints()
-
-
-
Field Detail
-
HINT_TIMEOUT
@Deprecated public static final String HINT_TIMEOUT
Deprecated.useSPEC_HINT_TIMEOUTinsteadThe hint key for specifying a query timeout per Hibernate O/RM, which defines the timeout in seconds.- See Also:
- Constant Field Values
-
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- See Also:
- Constant Field Values
-
JAKARTA_SPEC_HINT_TIMEOUT
public static final String JAKARTA_SPEC_HINT_TIMEOUT
The hint key for specifying a query timeout per JPA, which defines the timeout in milliseconds- See Also:
- Constant Field Values
-
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.- See Also:
- Constant Field Values
-
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.- See Also:
- Constant Field Values
-
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".- See Also:
- Constant Field Values
-
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.- See Also:
- Constant Field Values
-
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.- See Also:
- Constant Field Values
-
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.- See Also:
- Constant Field Values
-
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.- See Also:
- Constant Field Values
-
HINT_NATIVE_LOCKMODE
public static final String HINT_NATIVE_LOCKMODE
- See Also:
- Constant Field Values
-
HINT_FETCHGRAPH
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.
-
HINT_LOADGRAPH
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
-
JAKARTA_HINT_FETCHGRAPH
public static final String JAKARTA_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.
-
JAKARTA_HINT_LOADGRAPH
public static final String JAKARTA_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
-
HINT_FOLLOW_ON_LOCKING
public static final String HINT_FOLLOW_ON_LOCKING
- See Also:
- Constant Field Values
-
HINT_PASS_DISTINCT_THROUGH
public static final String HINT_PASS_DISTINCT_THROUGH
- See Also:
- Constant Field Values
-
HINT_NATIVE_SPACES
public static final String HINT_NATIVE_SPACES
- See Also:
- Constant Field Values
-
-