/** * Create a new CONTAINS ALL specification for a Collection Property. * * @param <T> Collection property type * @param collectionProperty a Collection Property * @param values its values * * @return a new CONTAINS ALL specification for a Collection Property. */ public static <T> ContainsAllPredicate<T> containsAll( Property<? extends Collection<T>> collectionProperty, Collection<T> values ) { Objects.requireNonNull( values, "Values" ); return new ContainsAllPredicate<>( property( collectionProperty ), values ); }
Collection<?> values = spec.containedValues(); if( values.isEmpty() ) String name = spec.collectionProperty().toString(); BoolQueryBuilder contAllBuilder = boolQuery(); for( Object value : values )
predicate.collectionProperty(), //
private void processContainsAllPredicate( final ContainsAllPredicate<?> predicate, StringBuilder builder ) Collection<?> values = predicate.containedValues(); String valueVariable = triples.addTriple( predicate.collectionProperty(), false ).value(); String[] strings = new String[ values.size() ]; Integer x = 0;
private void processContainsAllPredicate( final ContainsAllPredicate<?> predicate, StringBuilder builder ) Collection<?> values = predicate.containedValues(); String valueVariable = triples.addTriple( predicate.collectionProperty(), false ).value(); String[] strings = new String[ values.size() ]; Integer x = 0;
/** * Create a new CONTAINS ALL specification for a Collection Property. * * @param <T> Collection property type * @param collectionProperty a Collection Property * @param values its values * * @return a new CONTAINS ALL specification for a Collection Property. */ public static <T> ContainsAllPredicate<T> containsAll( Property<? extends Collection<T>> collectionProperty, Collection<T> values ) { Objects.requireNonNull( values, "Values" ); return new ContainsAllPredicate<>( property( collectionProperty ), values ); }
ColumnsFactory c = vendor.getColumnsFactory(); Collection<?> collection = predicate.containedValues(); List<QNameJoin> joins = new ArrayList<>(); for( Object value : collection ) l.s( DBNames.QNAME_TABLE_COLLECTION_PATH_TOP_LEVEL_NAME + ".*{1,}" ) ) ); modifyFromClauseAndWhereClauseToGetValue( QualifiedName.fromAccessor( predicate.collectionProperty().accessor() ), value, predicate, false, lastTableIndex, new ModifiableInt( lastTableIndex ),
/** * Create a new CONTAINS ALL specification for a Collection Property using named Variables. * * @param <T> Collection property type * @param collectionProperty a Collection Property * @param variables named Variables * * @return a new CONTAINS ALL specification for a Collection Property using named Variables. */ @SuppressWarnings( {"raw", "unchecked"} ) public static <T> ContainsAllPredicate<T> containsAllVariables( Property<? extends Collection<T>> collectionProperty, Collection<Variable> variables ) { Objects.requireNonNull( variables, "Variables" ); return new ContainsAllPredicate( property( collectionProperty ), variables ); }
/** * Create a new CONTAINS ALL specification for a Collection Property using named Variables. * * @param <T> Collection property type * @param collectionProperty a Collection Property * @param variables named Variables * * @return a new CONTAINS ALL specification for a Collection Property using named Variables. */ @SuppressWarnings( {"raw", "unchecked"} ) public static <T> ContainsAllPredicate<T> containsAllVariables( Property<? extends Collection<T>> collectionProperty, Collection<Variable> variables ) { Objects.requireNonNull( variables, "Variables" ); return new ContainsAllPredicate( property( collectionProperty ), variables ); }