@@ -78,6 +78,9 @@ native void nativeSetParameter(long handle, int entityId, int propertyId, @Nulla
78
78
native void nativeSetParameters (long handle , int entityId , int propertyId , @ Nullable String parameterAlias ,
79
79
double value1 , double value2 );
80
80
81
+ native void nativeSetParameters (long handle , int entityId , int propertyId , @ Nullable String parameterAlias ,
82
+ String [] values );
83
+
81
84
final Box <T > box ;
82
85
private final BoxStore store ;
83
86
private final boolean hasOrder ;
@@ -535,6 +538,24 @@ public Query<T> setParameters(String alias, double value1, double value2) {
535
538
return this ;
536
539
}
537
540
541
+ /**
542
+ * Sets a parameter previously given to the {@link QueryBuilder} to new values.
543
+ */
544
+ public Query <T > setParameters (Property property , String [] values ) {
545
+ nativeSetParameters (handle , property .getEntityId (), property .getId (), null , values );
546
+ return this ;
547
+ }
548
+
549
+ /**
550
+ * Sets a parameter previously given to the {@link QueryBuilder} to new values.
551
+ *
552
+ * @param alias as defined using {@link QueryBuilder#parameterAlias(String)}.
553
+ */
554
+ public Query <T > setParameters (String alias , String [] values ) {
555
+ nativeSetParameters (handle , 0 , 0 , alias , values );
556
+ return this ;
557
+ }
558
+
538
559
/**
539
560
* Removes (deletes) all Objects matching the query
540
561
*
0 commit comments