Class ContextInfo.QueryHint
java.lang.Object
com.broadleafcommerce.data.tracking.core.context.ContextInfo.QueryHint
- Enclosing class:
- ContextInfo
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Class<?>
getKey()
getValue()
int
hashCode()
void
setFetchType
(Class<?> fetchType) void
void
toString()
withFetchType
(Class<?> fetchType) Optional parameter used to limit the application of the hint to fetches for a specific entity type.
-
Constructor Details
-
QueryHint
-
-
Method Details
-
withFetchType
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
-
getKey
-
getValue
-
setFetchType
-
setKey
-
setValue
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-