Interface SpecHints

  • All Known Subinterfaces:
    AvailableHints

    public interface SpecHints
    The hints explicitly defined by the Jakarta Persistence specification which are available for both queries and loading
    See Also:
    EntityManager.setProperty(java.lang.String, java.lang.Object), EntityManager.find(Class, Object, Map), EntityManager.find(Class, Object, LockModeType, Map), EntityManager.lock(Object, LockModeType, Map), Query.setHint(java.lang.String, java.lang.Object)
    • Field Detail

      • HINT_SPEC_LOCK_TIMEOUT

        static final String HINT_SPEC_LOCK_TIMEOUT
        Hint requesting a pessimistic lock timeout (in milliseconds).
        See Also:
        Constant Field Values
      • HINT_SPEC_LOCK_SCOPE

        static final String HINT_SPEC_LOCK_SCOPE
        Hint indicating whether to extend pessimistic locking to associated tables. Expected to be an instance of PessimisticLockScope
        See Also:
        Constant Field Values
      • HINT_SPEC_QUERY_TIMEOUT

        static final String HINT_SPEC_QUERY_TIMEOUT
        The Jakarta Persistence defined hint for requesting a timeout be applied to a Query executions.
        See Also:
        Constant Field Values
      • HINT_SPEC_CACHE_RETRIEVE_MODE

        static final String HINT_SPEC_CACHE_RETRIEVE_MODE
        Hint specifying how Hibernate should interact with the second level cache when it has the opportunity to retrieve data from the cache. The value must be a CacheRetrieveMode.
        See Also:
        CacheRetrieveMode, EntityManager.setProperty(java.lang.String, java.lang.Object), Query.setHint(java.lang.String, java.lang.Object), CacheMode, Constant Field Values
      • HINT_SPEC_CACHE_STORE_MODE

        static final String HINT_SPEC_CACHE_STORE_MODE
        Hint specifying how Hibernate should interact with the second level cache when it has the opportunity to store data in the cache. The value must be a CacheStoreMode.
        See Also:
        CacheStoreMode, EntityManager.setProperty(java.lang.String, java.lang.Object), Query.setHint(java.lang.String, java.lang.Object), CacheMode, Constant Field Values