Module spring.data.mongodb
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 TypeMethodDescriptionbooleaninthashCode()booleanbooleanbooleanbooleanisIgnoredPath(String path) static UntypedExampleMatchermatching()static UntypedExampleMatcherstatic UntypedExampleMatcherwithIgnoreCase(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:
withIgnorePathsin interfaceExampleMatcher
-
withStringMatcher
- Specified by:
withStringMatcherin interfaceExampleMatcher
-
withIgnoreCase
- Specified by:
withIgnoreCasein interfaceExampleMatcher
-
withIgnoreCase
- Specified by:
withIgnoreCasein interfaceExampleMatcher
-
withMatcher
public UntypedExampleMatcher withMatcher(String propertyPath, ExampleMatcher.MatcherConfigurer<ExampleMatcher.GenericPropertyMatcher> matcherConfigurer) - Specified by:
withMatcherin interfaceExampleMatcher
-
withMatcher
public UntypedExampleMatcher withMatcher(String propertyPath, ExampleMatcher.GenericPropertyMatcher genericPropertyMatcher) - Specified by:
withMatcherin interfaceExampleMatcher
-
withTransformer
public UntypedExampleMatcher withTransformer(String propertyPath, ExampleMatcher.PropertyValueTransformer propertyValueTransformer) - Specified by:
withTransformerin interfaceExampleMatcher
-
withIgnoreCase
- Specified by:
withIgnoreCasein interfaceExampleMatcher
-
withIncludeNullValues
- Specified by:
withIncludeNullValuesin interfaceExampleMatcher
-
withIgnoreNullValues
- Specified by:
withIgnoreNullValuesin interfaceExampleMatcher
-
withNullHandler
- Specified by:
withNullHandlerin interfaceExampleMatcher
-
getNullHandler
- Specified by:
getNullHandlerin interfaceExampleMatcher
-
getDefaultStringMatcher
- Specified by:
getDefaultStringMatcherin interfaceExampleMatcher
-
isIgnoreCaseEnabled
public boolean isIgnoreCaseEnabled()- Specified by:
isIgnoreCaseEnabledin interfaceExampleMatcher
-
isIgnoredPath
- Specified by:
isIgnoredPathin interfaceExampleMatcher
-
getIgnoredPaths
- Specified by:
getIgnoredPathsin interfaceExampleMatcher
-
getPropertySpecifiers
- Specified by:
getPropertySpecifiersin interfaceExampleMatcher
-
isAllMatching
public boolean isAllMatching()- Specified by:
isAllMatchingin interfaceExampleMatcher
-
isAnyMatching
public boolean isAnyMatching()- Specified by:
isAnyMatchingin interfaceExampleMatcher
-
getMatchMode
- Specified by:
getMatchModein interfaceExampleMatcher
-
equals
-
hashCode
public int hashCode()
-