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 TypeMethodDescriptionbooleanorg.springframework.data.domain.ExampleMatcher.StringMatcherorg.springframework.data.domain.ExampleMatcher.MatchModeorg.springframework.data.domain.ExampleMatcher.NullHandlerorg.springframework.data.domain.ExampleMatcher.PropertySpecifiersinthashCode()booleanbooleanbooleanbooleanisIgnoredPath(String path) static UntypedExampleMatchermatching()static UntypedExampleMatcherstatic UntypedExampleMatcherwithIgnoreCase(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:
withIgnorePathsin interfaceorg.springframework.data.domain.ExampleMatcher
-
withStringMatcher
public UntypedExampleMatcher withStringMatcher(org.springframework.data.domain.ExampleMatcher.StringMatcher defaultStringMatcher) - Specified by:
withStringMatcherin interfaceorg.springframework.data.domain.ExampleMatcher
-
withIgnoreCase
- Specified by:
withIgnoreCasein interfaceorg.springframework.data.domain.ExampleMatcher
-
withIgnoreCase
- Specified by:
withIgnoreCasein 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:
withMatcherin interfaceorg.springframework.data.domain.ExampleMatcher
-
withMatcher
public UntypedExampleMatcher withMatcher(String propertyPath, org.springframework.data.domain.ExampleMatcher.GenericPropertyMatcher genericPropertyMatcher) - Specified by:
withMatcherin interfaceorg.springframework.data.domain.ExampleMatcher
-
withTransformer
public UntypedExampleMatcher withTransformer(String propertyPath, org.springframework.data.domain.ExampleMatcher.PropertyValueTransformer propertyValueTransformer) - Specified by:
withTransformerin interfaceorg.springframework.data.domain.ExampleMatcher
-
withIgnoreCase
- Specified by:
withIgnoreCasein interfaceorg.springframework.data.domain.ExampleMatcher
-
withIncludeNullValues
- Specified by:
withIncludeNullValuesin interfaceorg.springframework.data.domain.ExampleMatcher
-
withIgnoreNullValues
- Specified by:
withIgnoreNullValuesin interfaceorg.springframework.data.domain.ExampleMatcher
-
withNullHandler
public UntypedExampleMatcher withNullHandler(org.springframework.data.domain.ExampleMatcher.NullHandler nullHandler) - Specified by:
withNullHandlerin interfaceorg.springframework.data.domain.ExampleMatcher
-
getNullHandler
public org.springframework.data.domain.ExampleMatcher.NullHandler getNullHandler()- Specified by:
getNullHandlerin interfaceorg.springframework.data.domain.ExampleMatcher
-
getDefaultStringMatcher
public org.springframework.data.domain.ExampleMatcher.StringMatcher getDefaultStringMatcher()- Specified by:
getDefaultStringMatcherin interfaceorg.springframework.data.domain.ExampleMatcher
-
isIgnoreCaseEnabled
public boolean isIgnoreCaseEnabled()- Specified by:
isIgnoreCaseEnabledin interfaceorg.springframework.data.domain.ExampleMatcher
-
isIgnoredPath
- Specified by:
isIgnoredPathin interfaceorg.springframework.data.domain.ExampleMatcher
-
getIgnoredPaths
- Specified by:
getIgnoredPathsin interfaceorg.springframework.data.domain.ExampleMatcher
-
getPropertySpecifiers
public org.springframework.data.domain.ExampleMatcher.PropertySpecifiers getPropertySpecifiers()- Specified by:
getPropertySpecifiersin interfaceorg.springframework.data.domain.ExampleMatcher
-
isAllMatching
public boolean isAllMatching()- Specified by:
isAllMatchingin interfaceorg.springframework.data.domain.ExampleMatcher
-
isAnyMatching
public boolean isAnyMatching()- Specified by:
isAnyMatchingin interfaceorg.springframework.data.domain.ExampleMatcher
-
getMatchMode
public org.springframework.data.domain.ExampleMatcher.MatchMode getMatchMode()- Specified by:
getMatchModein interfaceorg.springframework.data.domain.ExampleMatcher
-
equals
-
hashCode
public int hashCode()
-