/** * Get the related id mappings for the base id * * @param extendedRelation extended relation * @param baseId base id * @return IDs representing the matching related IDs */ public List<Long> getMappingsForBase(ExtendedRelation extendedRelation, long baseId) { return getMappingsForBase(extendedRelation.getMappingTableName(), baseId); }
/** * Get the related id mappings for the base id * * @param extendedRelation * extended relation * @param baseId * base id * @return IDs representing the matching related IDs */ public List<Long> getMappingsForBase(ExtendedRelation extendedRelation, long baseId) { return getMappingsForBase(extendedRelation.getMappingTableName(), baseId); }
while (frs.moveToNext()) { long baseId = frs.getLong(pkColumn.getIndex()); List<Long> relatedIds = rte.getMappingsForBase( extendedRelation, baseId); TestCase.assertFalse(relatedIds.isEmpty());
while (featureCursor.moveToNext()) { FeatureRow featureRow = featureCursor.getRow(); List<Long> mappedIds = rte.getMappingsForBase(featureRelation, featureRow.getId()); List<MediaRow> mediaRows = mediaDao.getRows(mappedIds);
while (attributesCursor.moveToNext()) { AttributesRow attributesRow = attributesCursor.getRow(); List<Long> mappedIds = rte.getMappingsForBase( attributesRelation, attributesRow.getId()); List<SimpleAttributesRow> simpleRows = simpleDao