protected QueryBuilder processPropertyNullPredicate( final PropertyNullPredicate<?> predicate, final Boolean negationActive, final SQLVendor vendor, BooleanExpression entityTypeCondition ) { return this.singleQuery( predicate, predicate.property(), null, null, negationActive, vendor, entityTypeCondition, new PropertyNullWhereClauseProcessor( this._state, vendor, predicate.property(), negationActive ) ); }
/** * Create a new NULL specification for a Property. * * @param <T> Property type * @param property a Property * * @return a new NULL specification for a Property. */ public static <T> PropertyNullPredicate<T> isNull( Property<T> property ) { return new PropertyNullPredicate<>( property( property ) ); }
private void processNullPredicate( final PropertyNullPredicate<?> predicate, StringBuilder builder ) { final String value = triples.addTriple( predicate.property(), true ).value(); builder.append( format( "(! bound(%s))", value ) ); }
/** * Create a new NULL specification for a Property. * * @param <T> Property type * @param property a Property * * @return a new NULL specification for a Property. */ public static <T> PropertyNullPredicate<T> isNull( Property<T> property ) { return new PropertyNullPredicate<>( property( property ) ); }
private void processNullPredicate( final PropertyNullPredicate<?> predicate, StringBuilder builder ) { final String value = triples.addTriple( predicate.property(), true ).value(); builder.append( format( "(! bound(%s))", value ) ); }
private void processPropertyNullSpecification( BoolQueryBuilder queryBuilder, PropertyNullPredicate<?> spec ) { LOGGER.trace( "Processing PropertyNullSpecification {}", spec ); queryBuilder.mustNot( existsQuery( ( spec.property().toString() ) ) ); }