类 QueryHints


  • public class QueryHints
    extends Object
    Defines the supported JPA query hints
    作者:
    Steve Ebersole
    • 字段详细资料

      • 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
        已过时。
        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

        @Deprecated
        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
      • HINT_FOLLOW_ON_LOCKING

        public static final String HINT_FOLLOW_ON_LOCKING
        另请参阅:
        常量字段值
      • HINT_PASS_DISTINCT_THROUGH

        public static final String HINT_PASS_DISTINCT_THROUGH
        另请参阅:
        常量字段值
    • 构造器详细资料

      • QueryHints

        protected QueryHints()
    • 方法详细资料

      • getDefinedHints

        public static Set<String> getDefinedHints()