Class UntypedExampleMatcher
java.lang.Object
org.springframework.data.mongodb.core.query.UntypedExampleMatcher
- All Implemented Interfaces:
ExampleMatcher
ExampleMatcher
implementation for query by example (QBE). Unlike plain ExampleMatcher
this untyped
counterpart does not enforce type matching when executing the query. This allows to query unrelated example documents
as references for querying collections as long as the used field/property names match.- Since:
- 2.0
- Author:
- Christoph Strobl, Mark Paluch
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.domain.ExampleMatcher
ExampleMatcher.GenericPropertyMatcher, ExampleMatcher.GenericPropertyMatchers, ExampleMatcher.MatcherConfigurer<T extends Object>, ExampleMatcher.MatchMode, ExampleMatcher.NoOpPropertyValueTransformer, ExampleMatcher.NullHandler, ExampleMatcher.PropertySpecifier, ExampleMatcher.PropertySpecifiers, ExampleMatcher.PropertyValueTransformer, ExampleMatcher.StringMatcher
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
boolean
boolean
boolean
isIgnoredPath
(String path) static UntypedExampleMatcher
matching()
static UntypedExampleMatcher
static UntypedExampleMatcher
withIgnoreCase
(boolean defaultIgnoreCase) withIgnoreCase
(String... propertyPaths) withIgnorePaths
(String... ignoredPaths) withMatcher
(String propertyPath, ExampleMatcher.GenericPropertyMatcher genericPropertyMatcher) withMatcher
(String propertyPath, ExampleMatcher.MatcherConfigurer<ExampleMatcher.GenericPropertyMatcher> matcherConfigurer) withNullHandler
(ExampleMatcher.NullHandler nullHandler) withStringMatcher
(ExampleMatcher.StringMatcher defaultStringMatcher) withTransformer
(String propertyPath, ExampleMatcher.PropertyValueTransformer propertyValueTransformer)
-
Method Details
-
matching
-
matchingAny
-
matchingAll
-
withIgnorePaths
- Specified by:
withIgnorePaths
in interfaceExampleMatcher
-
withStringMatcher
- Specified by:
withStringMatcher
in interfaceExampleMatcher
-
withIgnoreCase
- Specified by:
withIgnoreCase
in interfaceExampleMatcher
-
withIgnoreCase
- Specified by:
withIgnoreCase
in interfaceExampleMatcher
-
withMatcher
public UntypedExampleMatcher withMatcher(String propertyPath, ExampleMatcher.MatcherConfigurer<ExampleMatcher.GenericPropertyMatcher> matcherConfigurer) - Specified by:
withMatcher
in interfaceExampleMatcher
-
withMatcher
public UntypedExampleMatcher withMatcher(String propertyPath, ExampleMatcher.GenericPropertyMatcher genericPropertyMatcher) - Specified by:
withMatcher
in interfaceExampleMatcher
-
withTransformer
public UntypedExampleMatcher withTransformer(String propertyPath, ExampleMatcher.PropertyValueTransformer propertyValueTransformer) - Specified by:
withTransformer
in interfaceExampleMatcher
-
withIgnoreCase
- Specified by:
withIgnoreCase
in interfaceExampleMatcher
-
withIncludeNullValues
- Specified by:
withIncludeNullValues
in interfaceExampleMatcher
-
withIgnoreNullValues
- Specified by:
withIgnoreNullValues
in interfaceExampleMatcher
-
withNullHandler
- Specified by:
withNullHandler
in interfaceExampleMatcher
-
getNullHandler
- Specified by:
getNullHandler
in interfaceExampleMatcher
-
getDefaultStringMatcher
- Specified by:
getDefaultStringMatcher
in interfaceExampleMatcher
-
isIgnoreCaseEnabled
public boolean isIgnoreCaseEnabled()- Specified by:
isIgnoreCaseEnabled
in interfaceExampleMatcher
-
isIgnoredPath
- Specified by:
isIgnoredPath
in interfaceExampleMatcher
-
getIgnoredPaths
- Specified by:
getIgnoredPaths
in interfaceExampleMatcher
-
getPropertySpecifiers
- Specified by:
getPropertySpecifiers
in interfaceExampleMatcher
-
isAllMatching
public boolean isAllMatching()- Specified by:
isAllMatching
in interfaceExampleMatcher
-
isAnyMatching
public boolean isAnyMatching()- Specified by:
isAnyMatching
in interfaceExampleMatcher
-
getMatchMode
- Specified by:
getMatchMode
in interfaceExampleMatcher
-
equals
-
hashCode
public int hashCode()
-