/* * Class: org_opensextant_giscore_filegdb_Table * Method: enumerate * Signature: ()Lorg/opensextant/giscore/filegdb/EnumRows; */ JNIEXPORT jobject JNICALL Java_org_opensextant_giscore_filegdb_Table_enumerate1(JNIEnv *env, jobject self) { try { menv me(env); Table *t = me.getTable(self); EnumRows *enumRows = new EnumRows(); Envelope envelope; envelope.SetEmpty(); wstring fields(L"*"); wstring where(L""); me.esriCheckedCall(t->Search(fields, where, envelope, true, *enumRows), "Search failed"); return me.newObject("org.opensextant.giscore.filegdb.EnumRows", (void*) enumRows); } catch(jni_check) { return 0l; } }