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. SeeBroadleafQueryHintKeysfor more information on Broadleaf specific hints.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)Class<?>getFetchType()StringgetKey()StringgetValue()inthashCode()voidsetFetchType(Class<?> fetchType)voidsetKey(String key)voidsetValue(String value)StringtoString()ContextInfo.QueryHintwithFetchType(Class<?> fetchType)Optional parameter used to limit the application of the hint to fetches for a specific entity type.
-
-
-
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)
-
-