newRow.setValue(column.getName(), 10); TestCase.fail("Set primary key on new row"); } catch (GeoPackageException e) { newRow.setValue(column.getName(), attributesRow.getValue(column.getName())); if (column.getDataType() == GeoPackageDataType.BLOB) { byte[] blob1 = (byte[]) queryAttributesRow2 .getValue(column.getName()); byte[] blob2 = (byte[]) copyRow.getValue(column .getName()); if (blob1 == null) { TestCase.assertNull(blob2); .getValue(column.getName()), copyRow .getValue(column.getName())); if (column.isPrimaryKey()) { TestCase.assertNotSame(queryAttributesRow2 .getValue(column.getName()), queryAttributesRow3.getValue(column .getName())); } else if (column.getDataType() == GeoPackageDataType.BLOB) { byte[] blob1 = (byte[]) queryAttributesRow2 .getValue(column.getName()); byte[] blob2 = (byte[]) queryAttributesRow3 .getValue(column.getName()); if (blob1 == null) {
.getName()); Class<?> column1ClassType = column1.getDataType() .getClassType(); cursor = dao.queryForEq(column1.getName(), column1AttributesValue); TestCase.assertTrue(cursor.getCount() > 0); queryAttributesRow = cursor.getRow(); TestCase.assertEquals(column1Value, queryAttributesRow.getValue(column1.getName())); if (!found) { found = attributesRow.getId() == queryAttributesRow fieldValues.put(column1.getName(), column1AttributesValue); Object column2Value = null; ColumnValue column2AttributesValue; if (column2 != null) { column2Value = attributesRow .getValue(column2.getName()); Class<?> column2ClassType = column2.getDataType() .getClassType(); fieldValues.put(column2.getName(), column2AttributesValue); queryAttributesRow = cursor.getRow(); TestCase.assertEquals(column1Value, queryAttributesRow.getValue(column1.getName()));
attributesRelation.getBaseTableName()); TestCase.assertEquals(attributesDao.getTable().getPkColumn() .getName(), attributesRelation.getBasePrimaryColumn()); TestCase.assertEquals(simpleDao.getTableName(), attributesRelation.getRelatedTableName()); simpleRelation.getBaseTableName()); TestCase.assertEquals(attributesDao.getTable().getPkColumn() .getName(), simpleRelation.getBasePrimaryColumn()); TestCase.assertEquals(simpleDao.getTableName(), simpleRelation.getRelatedTableName());
newRow.setValue(column.getName(), value);