Class UntypedExampleMatcher
java.lang.Object
org.springframework.data.mongodb.core.query.UntypedExampleMatcher
- All Implemented Interfaces:
org.springframework.data.domain.ExampleMatcher
public class UntypedExampleMatcher
extends Object
implements org.springframework.data.domain.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
org.springframework.data.domain.ExampleMatcher.GenericPropertyMatcher, org.springframework.data.domain.ExampleMatcher.GenericPropertyMatchers, org.springframework.data.domain.ExampleMatcher.MatcherConfigurer<T extends Object>, org.springframework.data.domain.ExampleMatcher.MatchMode, org.springframework.data.domain.ExampleMatcher.NoOpPropertyValueTransformer, org.springframework.data.domain.ExampleMatcher.NullHandler, org.springframework.data.domain.ExampleMatcher.PropertySpecifier, org.springframework.data.domain.ExampleMatcher.PropertySpecifiers, org.springframework.data.domain.ExampleMatcher.PropertyValueTransformer, org.springframework.data.domain.ExampleMatcher.StringMatcher
-
Method Summary
Modifier and TypeMethodDescriptionboolean
org.springframework.data.domain.ExampleMatcher.StringMatcher
org.springframework.data.domain.ExampleMatcher.MatchMode
org.springframework.data.domain.ExampleMatcher.NullHandler
org.springframework.data.domain.ExampleMatcher.PropertySpecifiers
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, org.springframework.data.domain.ExampleMatcher.GenericPropertyMatcher genericPropertyMatcher) withMatcher
(String propertyPath, org.springframework.data.domain.ExampleMatcher.MatcherConfigurer<org.springframework.data.domain.ExampleMatcher.GenericPropertyMatcher> matcherConfigurer) withNullHandler
(org.springframework.data.domain.ExampleMatcher.NullHandler nullHandler) withStringMatcher
(org.springframework.data.domain.ExampleMatcher.StringMatcher defaultStringMatcher) withTransformer
(String propertyPath, org.springframework.data.domain.ExampleMatcher.PropertyValueTransformer propertyValueTransformer)
-
Method Details
-
matching
-
matchingAny
-
matchingAll
-
withIgnorePaths
- Specified by:
withIgnorePaths
in interfaceorg.springframework.data.domain.ExampleMatcher
-
withStringMatcher
public UntypedExampleMatcher withStringMatcher(org.springframework.data.domain.ExampleMatcher.StringMatcher defaultStringMatcher) - Specified by:
withStringMatcher
in interfaceorg.springframework.data.domain.ExampleMatcher
-
withIgnoreCase
- Specified by:
withIgnoreCase
in interfaceorg.springframework.data.domain.ExampleMatcher
-
withIgnoreCase
- Specified by:
withIgnoreCase
in interfaceorg.springframework.data.domain.ExampleMatcher
-
withMatcher
public UntypedExampleMatcher withMatcher(String propertyPath, org.springframework.data.domain.ExampleMatcher.MatcherConfigurer<org.springframework.data.domain.ExampleMatcher.GenericPropertyMatcher> matcherConfigurer) - Specified by:
withMatcher
in interfaceorg.springframework.data.domain.ExampleMatcher
-
withMatcher
public UntypedExampleMatcher withMatcher(String propertyPath, org.springframework.data.domain.ExampleMatcher.GenericPropertyMatcher genericPropertyMatcher) - Specified by:
withMatcher
in interfaceorg.springframework.data.domain.ExampleMatcher
-
withTransformer
public UntypedExampleMatcher withTransformer(String propertyPath, org.springframework.data.domain.ExampleMatcher.PropertyValueTransformer propertyValueTransformer) - Specified by:
withTransformer
in interfaceorg.springframework.data.domain.ExampleMatcher
-
withIgnoreCase
- Specified by:
withIgnoreCase
in interfaceorg.springframework.data.domain.ExampleMatcher
-
withIncludeNullValues
- Specified by:
withIncludeNullValues
in interfaceorg.springframework.data.domain.ExampleMatcher
-
withIgnoreNullValues
- Specified by:
withIgnoreNullValues
in interfaceorg.springframework.data.domain.ExampleMatcher
-
withNullHandler
public UntypedExampleMatcher withNullHandler(org.springframework.data.domain.ExampleMatcher.NullHandler nullHandler) - Specified by:
withNullHandler
in interfaceorg.springframework.data.domain.ExampleMatcher
-
getNullHandler
public org.springframework.data.domain.ExampleMatcher.NullHandler getNullHandler()- Specified by:
getNullHandler
in interfaceorg.springframework.data.domain.ExampleMatcher
-
getDefaultStringMatcher
public org.springframework.data.domain.ExampleMatcher.StringMatcher getDefaultStringMatcher()- Specified by:
getDefaultStringMatcher
in interfaceorg.springframework.data.domain.ExampleMatcher
-
isIgnoreCaseEnabled
public boolean isIgnoreCaseEnabled()- Specified by:
isIgnoreCaseEnabled
in interfaceorg.springframework.data.domain.ExampleMatcher
-
isIgnoredPath
- Specified by:
isIgnoredPath
in interfaceorg.springframework.data.domain.ExampleMatcher
-
getIgnoredPaths
- Specified by:
getIgnoredPaths
in interfaceorg.springframework.data.domain.ExampleMatcher
-
getPropertySpecifiers
public org.springframework.data.domain.ExampleMatcher.PropertySpecifiers getPropertySpecifiers()- Specified by:
getPropertySpecifiers
in interfaceorg.springframework.data.domain.ExampleMatcher
-
isAllMatching
public boolean isAllMatching()- Specified by:
isAllMatching
in interfaceorg.springframework.data.domain.ExampleMatcher
-
isAnyMatching
public boolean isAnyMatching()- Specified by:
isAnyMatching
in interfaceorg.springframework.data.domain.ExampleMatcher
-
getMatchMode
public org.springframework.data.domain.ExampleMatcher.MatchMode getMatchMode()- Specified by:
getMatchMode
in interfaceorg.springframework.data.domain.ExampleMatcher
-
equals
-
hashCode
public int hashCode()
-