Class ContextInfo.QueryHint

java.lang.Object
com.broadleafcommerce.data.tracking.core.context.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 Details

  • Method Details

    • 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)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object