Class ContextInfo.QueryHint

  • Enclosing class:
    ContextInfo

    public static class ContextInfo.QueryHint
    extends Object
    This is a generic hint concept that is used to influence persistence tier queries. This can be something like a Hibernate hint to affect how result are returned. This can also be a Broadleaf related hint. See BroadleafQueryHintKeys for more information on Broadleaf specific hints.
    • Constructor Detail

      • QueryHint

        public QueryHint​(String key,
                         String value)
    • Method Detail

      • withFetchType

        public ContextInfo.QueryHint withFetchType​(Class<?> fetchType)
        Optional parameter used to limit the application of the hint to fetches for a specific entity type. This is polymorphic aware and extensions of this type will also be honored.
        Parameters:
        fetchType - The type for which scope of application should be limited
        Returns:
        the updated query hint instance
      • getFetchType

        public Class<?> getFetchType()
      • getKey

        public String getKey()
      • getValue

        public String getValue()
      • setFetchType

        public void setFetchType​(Class<?> fetchType)
      • setKey

        public void setKey​(String key)
      • setValue

        public void setValue​(String value)
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object