/** * Create a new NOT specification. * * @param operand specification to be negated * * @return a new NOT specification */ public static Notpredicate not( Predicate<Composite> operand ) { return new Notpredicate( operand ); }
@Override public QueryBuilder processBooleanExpression( AbstractSQLQuerying thisObject, Predicate<Composite> expression, Boolean negationActive, SQLVendor vendor, BooleanExpression entityTypeCondition, Map<String, Object> variables, List<Object> values, List<Integer> valueSQLTypes ) { return thisObject.processBooleanExpression( ( (Notpredicate) expression ).operand(), !negationActive, vendor, entityTypeCondition, variables, values, valueSQLTypes ); } } );
private void processNotSpecification( BoolQueryBuilder queryBuilder, Notpredicate spec, Map<String, Object> variables ) throws EntityFinderException { LOGGER.trace( "Processing NotSpecification {}", spec ); BoolQueryBuilder operandBuilder = boolQuery(); processSpecification( operandBuilder, spec.operand(), variables ); queryBuilder.mustNot( operandBuilder ); }
processFilter( ( (Notpredicate) expression ).operand(), false, builder ); builder.append( ")" );
/** * Create a new NOT specification. * * @param operand specification to be negated * * @return a new NOT specification */ public static Notpredicate not( Predicate<Composite> operand ) { return new Notpredicate( operand ); }
processFilter( ( (Notpredicate) expression ).operand(), false, builder ); builder.append( ")" );