@@ -182,6 +182,8 @@ private native long nativeLink(long handle, long storeHandle, int relationOwnerE
182
182
183
183
private native long nativeContains (long handle , int propertyId , String value , boolean caseSensitive );
184
184
185
+ private native long nativeContainsElement (long handle , int propertyId , String value , boolean caseSensitive );
186
+
185
187
private native long nativeStartsWith (long handle , int propertyId , String value , boolean caseSensitive );
186
188
187
189
private native long nativeEndsWith (long handle , int propertyId , String value , boolean caseSensitive );
@@ -759,7 +761,8 @@ public QueryBuilder<T> contains(Property<T> property, String value, StringOrder
759
761
if (String [].class == property .type ) {
760
762
throw new UnsupportedOperationException ("For String[] only containsElement() is supported at this time." );
761
763
}
762
- containsNoTypeCheck (property , value , order );
764
+ verifyHandle ();
765
+ checkCombineCondition (nativeContains (handle , property .getId (), value , order == StringOrder .CASE_SENSITIVE ));
763
766
return this ;
764
767
}
765
768
@@ -770,13 +773,9 @@ public QueryBuilder<T> containsElement(Property<T> property, String value, Strin
770
773
if (String [].class != property .type ) {
771
774
throw new IllegalArgumentException ("containsElement is only supported for String[] properties." );
772
775
}
773
- containsNoTypeCheck (property , value , order );
774
- return this ;
775
- }
776
-
777
- void containsNoTypeCheck (Property <T > property , String value , StringOrder order ) {
778
776
verifyHandle ();
779
- checkCombineCondition (nativeContains (handle , property .getId (), value , order == StringOrder .CASE_SENSITIVE ));
777
+ checkCombineCondition (nativeContainsElement (handle , property .getId (), value , order == StringOrder .CASE_SENSITIVE ));
778
+ return this ;
780
779
}
781
780
782
781
public QueryBuilder <T > startsWith (Property <T > property , String value , StringOrder order ) {
0 commit comments