public MatchMode getMatchMode() { return delegate.getMatchMode(); }
/** * Retrieve a mapped {@link RedisOperationChain} to query secondary indexes given {@link Example}. * * @param example must not be {@literal null}. * @return the mapped {@link RedisOperationChain}. */ public RedisOperationChain getMappedExample(Example<?> example) { RedisOperationChain chain = new RedisOperationChain(); ExampleMatcherAccessor matcherAccessor = new ExampleMatcherAccessor(example.getMatcher()); applyPropertySpecs("", example.getProbe(), mappingContext.getRequiredPersistentEntity(example.getProbeType()), matcherAccessor, example.getMatcher().getMatchMode(), chain); return chain; }
public MatchMode getMatchMode() { return delegate.getMatchMode(); }
/** * Returns whether all of the predicates of the {@link Example} are supposed to match. If {@literal false} is * returned, it's sufficient if any of the predicates derived from the {@link Example} match. * * @return whether all of the predicates of the {@link Example} are supposed to match or any of them is sufficient. */ default boolean isAllMatching() { return getMatchMode().equals(MatchMode.ALL); }
/** * Returns whether it's sufficient that any of the predicates of the {@link Example} match. If {@literal false} is * returned, all predicates derived from the example need to match to produce results. * * @return whether it's sufficient that any of the predicates of the {@link Example} match or all need to match. */ default boolean isAnyMatching() { return getMatchMode().equals(MatchMode.ANY); }
/** * Retrieve a mapped {@link RedisOperationChain} to query secondary indexes given {@link Example}. * * @param example must not be {@literal null}. * @return the mapped {@link RedisOperationChain}. */ public RedisOperationChain getMappedExample(Example<?> example) { RedisOperationChain chain = new RedisOperationChain(); ExampleMatcherAccessor matcherAccessor = new ExampleMatcherAccessor(example.getMatcher()); applyPropertySpecs("", example.getProbe(), mappingContext.getRequiredPersistentEntity(example.getProbeType()), matcherAccessor, example.getMatcher().getMatchMode(), chain); return chain; }
/** * Retrieve a mapped {@link RedisOperationChain} to query secondary indexes given {@link Example}. * * @param example must not be {@literal null}. * @return the mapped {@link RedisOperationChain}. */ public RedisOperationChain getMappedExample(Example<?> example) { RedisOperationChain chain = new RedisOperationChain(); ExampleMatcherAccessor matcherAccessor = new ExampleMatcherAccessor(example.getMatcher()); applyPropertySpecs("", example.getProbe(), mappingContext.getRequiredPersistentEntity(example.getProbeType()), matcherAccessor, example.getMatcher().getMatchMode(), chain); return chain; }