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. SeeBroadleafQueryHintKeys
for more information on Broadleaf specific hints.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
Class<?>
getFetchType()
String
getKey()
String
getValue()
int
hashCode()
void
setFetchType(Class<?> fetchType)
void
setKey(String key)
void
setValue(String value)
String
toString()
ContextInfo.QueryHint
withFetchType(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)
-
-