public NullHandler getNullHandler() { return delegate.getNullHandler(); }
public NullHandler getNullHandler() { return delegate.getNullHandler(); }
/** * Get defined null handling. * * @return never {@literal null} */ public ExampleMatcher.NullHandler getNullHandler() { return matcher.getNullHandler(); }
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); } }); }
final Operator operator; if (entry.getValue() == null) { if (ExampleMatcher.NullHandler.IGNORE.equals(matcher.getNullHandler())) { continue; } else {
final Operator operator; if (entry.getValue() == null) { if (ExampleMatcher.NullHandler.IGNORE.equals(matcher.getNullHandler())) { continue; } else {
Value<?> value = probeEntity.getValue(fieldName); if (value instanceof NullValue && example.getMatcher().getNullHandler() != ExampleMatcher.NullHandler.INCLUDE) {