public class UntypedExampleMatcher extends Object implements 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.ExampleMatcher.GenericPropertyMatcher, ExampleMatcher.GenericPropertyMatchers, ExampleMatcher.MatcherConfigurer<T>, ExampleMatcher.MatchMode, ExampleMatcher.NoOpPropertyValueTransformer, ExampleMatcher.NullHandler, ExampleMatcher.PropertySpecifier, ExampleMatcher.PropertySpecifiers, ExampleMatcher.PropertyValueTransformer, ExampleMatcher.StringMatcher
public static UntypedExampleMatcher matching()
matching
in interface ExampleMatcher
public static UntypedExampleMatcher matchingAny()
matchingAny
in interface ExampleMatcher
public static UntypedExampleMatcher matchingAll()
matchingAll
in interface ExampleMatcher
public UntypedExampleMatcher withIgnorePaths(String... ignoredPaths)
withIgnorePaths
in interface ExampleMatcher
public UntypedExampleMatcher withStringMatcher(ExampleMatcher.StringMatcher defaultStringMatcher)
withStringMatcher
in interface ExampleMatcher
public UntypedExampleMatcher withIgnoreCase()
withIgnoreCase
in interface ExampleMatcher
public UntypedExampleMatcher withIgnoreCase(boolean defaultIgnoreCase)
withIgnoreCase
in interface ExampleMatcher
public UntypedExampleMatcher withMatcher(String propertyPath, ExampleMatcher.MatcherConfigurer<ExampleMatcher.GenericPropertyMatcher> matcherConfigurer)
withMatcher
in interface ExampleMatcher
public UntypedExampleMatcher withMatcher(String propertyPath, ExampleMatcher.GenericPropertyMatcher genericPropertyMatcher)
withMatcher
in interface ExampleMatcher
public UntypedExampleMatcher withTransformer(String propertyPath, ExampleMatcher.PropertyValueTransformer propertyValueTransformer)
withTransformer
in interface ExampleMatcher
public UntypedExampleMatcher withIgnoreCase(String... propertyPaths)
withIgnoreCase
in interface ExampleMatcher
public UntypedExampleMatcher withIncludeNullValues()
withIncludeNullValues
in interface ExampleMatcher
public UntypedExampleMatcher withIgnoreNullValues()
withIgnoreNullValues
in interface ExampleMatcher
public UntypedExampleMatcher withNullHandler(ExampleMatcher.NullHandler nullHandler)
withNullHandler
in interface ExampleMatcher
public ExampleMatcher.NullHandler getNullHandler()
getNullHandler
in interface ExampleMatcher
public ExampleMatcher.StringMatcher getDefaultStringMatcher()
getDefaultStringMatcher
in interface ExampleMatcher
public boolean isIgnoreCaseEnabled()
isIgnoreCaseEnabled
in interface ExampleMatcher
public boolean isIgnoredPath(String path)
isIgnoredPath
in interface ExampleMatcher
public Set<String> getIgnoredPaths()
getIgnoredPaths
in interface ExampleMatcher
public ExampleMatcher.PropertySpecifiers getPropertySpecifiers()
getPropertySpecifiers
in interface ExampleMatcher
public boolean isAllMatching()
isAllMatching
in interface ExampleMatcher
public boolean isAnyMatching()
isAnyMatching
in interface ExampleMatcher
public ExampleMatcher.MatchMode getMatchMode()
getMatchMode
in interface ExampleMatcher
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.