@@ -52,10 +52,6 @@ public abstract class Cursor<T> implements Closeable {
52
52
53
53
static native long nativeCount (long cursor );
54
54
55
- static native List nativeFindScalar (long cursor , String propertyName , long value );
56
-
57
- static native List nativeFindString (long cursor , String propertyName , String value );
58
-
59
55
static native List nativeFindScalarPropertyId (long cursor , int propertyId , long value );
60
56
61
57
static native List nativeFindStringPropertyId (long cursor , int propertyId , String value );
@@ -217,23 +213,13 @@ public int getPropertyId(String propertyName) {
217
213
}
218
214
219
215
@ Temporary
220
- public List <T > find (String propertyName , long value ) {
221
- return nativeFindScalar (cursor , propertyName , value );
222
- }
223
-
224
- @ Temporary
225
- public List <T > find (String propertyName , String value ) {
226
- return nativeFindString (cursor , propertyName , value );
227
- }
228
-
229
- @ Temporary
230
- public List <T > find (int propertyId , long value ) {
231
- return nativeFindScalarPropertyId (cursor , propertyId , value );
216
+ public List <T > find (Property property , long value ) {
217
+ return nativeFindScalarPropertyId (cursor , property .id , value );
232
218
}
233
219
234
220
@ Temporary
235
- public List <T > find (int propertyId , String value ) {
236
- return nativeFindStringPropertyId (cursor , propertyId , value );
221
+ public List <T > find (Property property , String value ) {
222
+ return nativeFindStringPropertyId (cursor , property . id , value );
237
223
}
238
224
239
225
/**
0 commit comments