/** * Constructor * * @param database database * @param db db connection * @param attributesDb attributes connection * @param table attributes table */ public AttributesDao(String database, GeoPackageConnection db, AttributesConnection attributesDb, AttributesTable table) { super(database, db, attributesDb, table); this.attributesDb = attributesDb; if (table.getContents() == null) { throw new GeoPackageException(AttributesTable.class.getSimpleName() + " " + table.getTableName() + " has null " + Contents.class.getSimpleName()); } }
/** * Constructor * * @param database * database * @param db * db connection * @param attributesDb * attributes connection * @param table * attributes table */ public AttributesDao(String database, GeoPackageConnection db, AttributesConnection attributesDb, AttributesTable table) { super(database, db, attributesDb, table); this.attributesDb = attributesDb; if (table.getContents() == null) { throw new GeoPackageException(AttributesTable.class.getSimpleName() + " " + table.getTableName() + " has null " + Contents.class.getSimpleName()); } }
AttributesTable attributesTable = attributesDao.getTable(); TestCase.assertNotNull(attributesTable); Contents attributesContents = attributesTable.getContents(); TestCase.assertNotNull(attributesContents); TestCase.assertEquals(ContentsDataType.ATTRIBUTES,
.createAttributesTableWithId("test_attributes", columns); TestCase.assertNotNull(attributesTable); Contents attributesContents = attributesTable.getContents(); TestCase.assertNotNull(attributesContents); TestCase.assertEquals(ContentsDataType.ATTRIBUTES,