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.org.springframework.data.domain.ExampleMatcher.GenericPropertyMatcher, org.springframework.data.domain.ExampleMatcher.GenericPropertyMatchers, org.springframework.data.domain.ExampleMatcher.MatcherConfigurer<T>, 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
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
org.springframework.data.domain.ExampleMatcher.StringMatcher |
getDefaultStringMatcher() |
Set<String> |
getIgnoredPaths() |
org.springframework.data.domain.ExampleMatcher.MatchMode |
getMatchMode() |
org.springframework.data.domain.ExampleMatcher.NullHandler |
getNullHandler() |
org.springframework.data.domain.ExampleMatcher.PropertySpecifiers |
getPropertySpecifiers() |
int |
hashCode() |
boolean |
isAllMatching() |
boolean |
isAnyMatching() |
boolean |
isIgnoreCaseEnabled() |
boolean |
isIgnoredPath(String path) |
static UntypedExampleMatcher |
matching() |
static UntypedExampleMatcher |
matchingAll() |
static UntypedExampleMatcher |
matchingAny() |
UntypedExampleMatcher |
withIgnoreCase() |
UntypedExampleMatcher |
withIgnoreCase(boolean defaultIgnoreCase) |
UntypedExampleMatcher |
withIgnoreCase(String... propertyPaths) |
UntypedExampleMatcher |
withIgnoreNullValues() |
UntypedExampleMatcher |
withIgnorePaths(String... ignoredPaths) |
UntypedExampleMatcher |
withIncludeNullValues() |
UntypedExampleMatcher |
withMatcher(String propertyPath,
org.springframework.data.domain.ExampleMatcher.GenericPropertyMatcher genericPropertyMatcher) |
UntypedExampleMatcher |
withMatcher(String propertyPath,
org.springframework.data.domain.ExampleMatcher.MatcherConfigurer<org.springframework.data.domain.ExampleMatcher.GenericPropertyMatcher> matcherConfigurer) |
UntypedExampleMatcher |
withNullHandler(org.springframework.data.domain.ExampleMatcher.NullHandler nullHandler) |
UntypedExampleMatcher |
withStringMatcher(org.springframework.data.domain.ExampleMatcher.StringMatcher defaultStringMatcher) |
UntypedExampleMatcher |
withTransformer(String propertyPath,
org.springframework.data.domain.ExampleMatcher.PropertyValueTransformer propertyValueTransformer) |
public static UntypedExampleMatcher matching()
matching
in interface org.springframework.data.domain.ExampleMatcher
public static UntypedExampleMatcher matchingAny()
matchingAny
in interface org.springframework.data.domain.ExampleMatcher
public static UntypedExampleMatcher matchingAll()
matchingAll
in interface org.springframework.data.domain.ExampleMatcher
public UntypedExampleMatcher withIgnorePaths(String... ignoredPaths)
withIgnorePaths
in interface org.springframework.data.domain.ExampleMatcher
public UntypedExampleMatcher withStringMatcher(org.springframework.data.domain.ExampleMatcher.StringMatcher defaultStringMatcher)
withStringMatcher
in interface org.springframework.data.domain.ExampleMatcher
public UntypedExampleMatcher withIgnoreCase()
withIgnoreCase
in interface org.springframework.data.domain.ExampleMatcher
public UntypedExampleMatcher withIgnoreCase(boolean defaultIgnoreCase)
withIgnoreCase
in interface org.springframework.data.domain.ExampleMatcher
public UntypedExampleMatcher withMatcher(String propertyPath, org.springframework.data.domain.ExampleMatcher.MatcherConfigurer<org.springframework.data.domain.ExampleMatcher.GenericPropertyMatcher> matcherConfigurer)
withMatcher
in interface org.springframework.data.domain.ExampleMatcher
public UntypedExampleMatcher withMatcher(String propertyPath, org.springframework.data.domain.ExampleMatcher.GenericPropertyMatcher genericPropertyMatcher)
withMatcher
in interface org.springframework.data.domain.ExampleMatcher
public UntypedExampleMatcher withTransformer(String propertyPath, org.springframework.data.domain.ExampleMatcher.PropertyValueTransformer propertyValueTransformer)
withTransformer
in interface org.springframework.data.domain.ExampleMatcher
public UntypedExampleMatcher withIgnoreCase(String... propertyPaths)
withIgnoreCase
in interface org.springframework.data.domain.ExampleMatcher
public UntypedExampleMatcher withIncludeNullValues()
withIncludeNullValues
in interface org.springframework.data.domain.ExampleMatcher
public UntypedExampleMatcher withIgnoreNullValues()
withIgnoreNullValues
in interface org.springframework.data.domain.ExampleMatcher
public UntypedExampleMatcher withNullHandler(org.springframework.data.domain.ExampleMatcher.NullHandler nullHandler)
withNullHandler
in interface org.springframework.data.domain.ExampleMatcher
public org.springframework.data.domain.ExampleMatcher.NullHandler getNullHandler()
getNullHandler
in interface org.springframework.data.domain.ExampleMatcher
public org.springframework.data.domain.ExampleMatcher.StringMatcher getDefaultStringMatcher()
getDefaultStringMatcher
in interface org.springframework.data.domain.ExampleMatcher
public boolean isIgnoreCaseEnabled()
isIgnoreCaseEnabled
in interface org.springframework.data.domain.ExampleMatcher
public boolean isIgnoredPath(String path)
isIgnoredPath
in interface org.springframework.data.domain.ExampleMatcher
public Set<String> getIgnoredPaths()
getIgnoredPaths
in interface org.springframework.data.domain.ExampleMatcher
public org.springframework.data.domain.ExampleMatcher.PropertySpecifiers getPropertySpecifiers()
getPropertySpecifiers
in interface org.springframework.data.domain.ExampleMatcher
public boolean isAllMatching()
isAllMatching
in interface org.springframework.data.domain.ExampleMatcher
public boolean isAnyMatching()
isAnyMatching
in interface org.springframework.data.domain.ExampleMatcher
public org.springframework.data.domain.ExampleMatcher.MatchMode getMatchMode()
getMatchMode
in interface org.springframework.data.domain.ExampleMatcher
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.