/** * Get a User Mapping DAO from an extended relation * * @param extendedRelation * extended relation * @return user mapping dao */ public UserMappingDao getMappingDao(ExtendedRelation extendedRelation) { return getMappingDao(extendedRelation.getMappingTableName()); }
/** * Get a User Mapping DAO from an extended relation * * @param extendedRelation extended relation * @return user mapping dao */ public UserMappingDao getMappingDao(ExtendedRelation extendedRelation) { return getMappingDao(extendedRelation.getMappingTableName()); }
/** * Get the related id mappings for the base id * * @param tableName mapping table name * @param baseId base id * @return IDs representing the matching related IDs */ public List<Long> getMappingsForBase(String tableName, long baseId) { List<Long> relatedIds = new ArrayList<>(); UserMappingDao userMappingDao = getMappingDao(tableName); UserCustomCursor cursor = userMappingDao.queryByBaseId(baseId); try { while (cursor.moveToNext()) { UserMappingRow row = userMappingDao.getRow(cursor); relatedIds.add(row.getRelatedId()); } } finally { cursor.close(); } return relatedIds; }
/** * Get the base id mappings for the related id * * @param tableName mapping table name * @param relatedId related id * @return IDs representing the matching base IDs */ public List<Long> getMappingsForRelated(String tableName, long relatedId) { List<Long> baseIds = new ArrayList<>(); UserMappingDao userMappingDao = getMappingDao(tableName); UserCustomCursor cursor = userMappingDao .queryByRelatedId(relatedId); try { while (cursor.moveToNext()) { UserMappingRow row = userMappingDao.getRow(cursor); baseIds.add(row.getBaseId()); } } finally { cursor.close(); } return baseIds; }
/** * Get the base id mappings for the related id * * @param tableName * mapping table name * @param relatedId * related id * @return IDs representing the matching base IDs */ public List<Long> getMappingsForRelated(String tableName, long relatedId) { List<Long> baseIds = new ArrayList<>(); UserMappingDao userMappingDao = getMappingDao(tableName); UserCustomResultSet resultSet = userMappingDao .queryByRelatedId(relatedId); try { while (resultSet.moveToNext()) { UserMappingRow row = userMappingDao.getRow(resultSet); baseIds.add(row.getBaseId()); } } finally { resultSet.close(); } return baseIds; }
/** * Get the related id mappings for the base id * * @param tableName * mapping table name * @param baseId * base id * @return IDs representing the matching related IDs */ public List<Long> getMappingsForBase(String tableName, long baseId) { List<Long> relatedIds = new ArrayList<>(); UserMappingDao userMappingDao = getMappingDao(tableName); UserCustomResultSet resultSet = userMappingDao.queryByBaseId(baseId); try { while (resultSet.moveToNext()) { UserMappingRow row = userMappingDao.getRow(resultSet); relatedIds.add(row.getRelatedId()); } } finally { resultSet.close(); } return relatedIds; }
UserMappingDao dao = rte.getMappingDao(mappingTableName); UserMappingRow userMappingRow = null; for (int i = 0; i < 10; i++) { UserMappingDao userMappingDao = rte.getMappingDao(featureRelation); int totalMappedCount = userMappingDao.count(); UserCustomCursor mappingCursor = userMappingDao.queryForAll(); UserMappingDao userMappingDao = rte.getMappingDao(mediaRelation); int totalMappedCount = userMappingDao.count(); UserCustomCursor mappingCursor = userMappingDao.queryForAll();
UserMappingDao dao = rte.getMappingDao(mappingTableName); UserMappingRow userMappingRow = null; for (int i = 0; i < 10; i++) { .getMappingDao(attributesRelation); int totalMappedCount = userMappingDao.count(); UserCustomCursor mappingCursor = userMappingDao.queryForAll(); UserMappingDao userMappingDao = rte.getMappingDao(simpleRelation); int totalMappedCount = userMappingDao.count(); UserCustomCursor mappingCursor = userMappingDao.queryForAll();
UserMappingDao dao = rte.getMappingDao(mappingTableName); UserMappingRow userMappingRow = null; for (inx = 0; inx < 10; inx++) {
UserMappingDao userMappingDao = relatedTables.getMappingDao(relation); AttributesDao attributesDao = geoPackage.getAttributesDao(tableName);
UserMappingDao userMappingDao = relatedTables.getMappingDao(relation);
.getBaseTableName()); MediaDao mediaDao = relatedTables.getMediaDao(relation); UserMappingDao userMappingDao = relatedTables.getMappingDao(relation);