.getAttributesDao(extendedRelation.getRelatedTableName()); AttributesColumn pkColumn2 = relatedDao.getTable().getPkColumn(); AttributesCursor ars = relatedDao.queryForAll(); while (ars.moveToNext()) { long relatedId = ars.getLong(pkColumn2.getIndex());
TestCase.assertNotNull(dao); AttributesCursor cursor = dao.queryForAll(); int count = cursor.getCount(); if (count > 0) { .queryForIdRow(attributesRow.getId()); TestCase.assertNull(queryAttributesRow); cursor = dao.queryForAll(); TestCase.assertEquals(count - 1, cursor.getCount()); cursor.close();
AttributesCursor attributesCursor = attributesDao.queryForAll(); int attributesCount = attributesCursor.getCount(); List<Long> attributeIds = new ArrayList<>(); attributesCursor = attributesDao.queryForAll(); int totalMapped = 0; while (attributesCursor.moveToNext()) {
AttributesCursor cursor = dao.queryForAll(); int count = cursor.getCount(); if (count > 0) {
TestCase.assertNotNull(dao); AttributesCursor cursor = dao.queryForAll(); int count = cursor.getCount(); if (count > 0) { .queryForIdRow(newRowId); TestCase.assertNotNull(queryAttributesRow); cursor = dao.queryForAll(); TestCase.assertEquals(count + 1, cursor.getCount()); cursor.close(); .queryForIdRow(newRowId2); TestCase.assertNotNull(queryAttributesRow2); cursor = dao.queryForAll(); TestCase.assertEquals(count + 2, cursor.getCount()); cursor.close(); .queryForIdRow(newRowId3); TestCase.assertNotNull(queryAttributesRow3); cursor = dao.queryForAll(); TestCase.assertEquals(count + 3, cursor.getCount()); cursor.close();
AttributesCursor cursor = dao.queryForAll(); int count = cursor.getCount(); int manualCount = 0;
AttributesDao attributesDao = geoPackage.getAttributesDao(tableName); AttributesCursor attributesCursor = attributesDao.queryForAll(); while (attributesCursor.moveToNext()) { AttributesRow attributesRow = attributesCursor.getRow();