public boolean isIgnoredPath(String path) { return delegate.isIgnoredPath(path); }
public boolean isIgnoredPath(String path) { return delegate.isIgnoredPath(path); }
/** * @param path * @return return {@literal true} if path was set to be ignored. */ public boolean isIgnoredPath(String path) { return matcher.isIgnoredPath(path); }
private void traversePropertyTree( final Example<T> example, final StringBuilder predicateBuilder, final Map<String, Object> bindVars, final String path, final String javaPath, final ArangoPersistentEntity<?> entity, final Object object) { final PersistentPropertyAccessor<?> accessor = entity.getPropertyAccessor(object); entity.doWithProperties((final ArangoPersistentProperty property) -> { if (property.getFrom().isPresent() || property.getTo().isPresent() || property.getRelations().isPresent()) { return; } final String fullPath = path + (path.length() == 0 ? "" : ".") + property.getFieldName(); final String fullJavaPath = javaPath + (javaPath.length() == 0 ? "" : ".") + property.getName(); final Object value = accessor.getProperty(property); if (property.isEntity() && value != null) { final ArangoPersistentEntity<?> persistentEntity = context.getPersistentEntity(property.getType()); traversePropertyTree(example, predicateBuilder, bindVars, fullPath, fullJavaPath, persistentEntity, value); } else if (!example.getMatcher().isIgnoredPath(fullJavaPath) && (value != null || example.getMatcher().getNullHandler().equals(ExampleMatcher.NullHandler.INCLUDE))) { addPredicate(example, predicateBuilder, bindVars, fullPath, fullJavaPath, value); } }); }
private void traversePropertyTree( final Example<T> example, final StringBuilder predicateBuilder, final Map<String, Object> bindVars, final String path, final String javaPath, final ArangoPersistentEntity<?> entity, final Object object) { final PersistentPropertyAccessor<?> accessor = entity.getPropertyAccessor(object); entity.doWithProperties((final ArangoPersistentProperty property) -> { if (property.getFrom().isPresent() || property.getTo().isPresent() || property.getRelations().isPresent()) { return; } final String fullPath = path + (path.length() == 0 ? "" : ".") + property.getFieldName(); final String fullJavaPath = javaPath + (javaPath.length() == 0 ? "" : ".") + property.getName(); final Object value = accessor.getProperty(property); if (property.isEntity() && value != null) { final ArangoPersistentEntity<?> persistentEntity = context.getPersistentEntity(property.getType()); traversePropertyTree(example, predicateBuilder, bindVars, fullPath, fullJavaPath, persistentEntity, value); } else if (!example.getMatcher().isIgnoredPath(fullJavaPath) && (value != null || example.getMatcher().getNullHandler().equals(ExampleMatcher.NullHandler.INCLUDE))) { addPredicate(example, predicateBuilder, bindVars, fullPath, fullJavaPath, value); } }); }
for (Map.Entry<String, Object> entry : values.entrySet()) { final String propertyPath = entry.getKey(); if (matcher.isIgnoredPath(propertyPath)) { continue;
for (Map.Entry<String, Object> entry : values.entrySet()) { final String propertyPath = entry.getKey(); if (matcher.isIgnoredPath(propertyPath)) { continue;
LinkedList<StructuredQuery.Filter> filters = new LinkedList<>(); persistentEntity.doWithColumnBackedProperties((persistentProperty) -> { if (!example.getMatcher().isIgnoredPath(persistentProperty.getName())) { String fieldName = persistentProperty.getFieldName(); Value<?> value = probeEntity.getValue(fieldName);