/** * Get the base id mappings for the related id * * @param extendedRelation extended relation * @param relatedId related id * @return IDs representing the matching base IDs */ public List<Long> getMappingsForRelated(ExtendedRelation extendedRelation, long relatedId) { return getMappingsForRelated(extendedRelation.getMappingTableName(), relatedId); }
/** * Get the base id mappings for the related id * * @param extendedRelation * extended relation * @param relatedId * related id * @return IDs representing the matching base IDs */ public List<Long> getMappingsForRelated(ExtendedRelation extendedRelation, long relatedId) { return getMappingsForRelated(extendedRelation.getMappingTableName(), relatedId); }
while (ars.moveToNext()) { long relatedId = ars.getLong(pkColumn2.getIndex()); List<Long> baseIds = rte.getMappingsForRelated( extendedRelation, relatedId); TestCase.assertFalse(baseIds.isEmpty());
while (mediaCursor.moveToNext()) { MediaRow mediaRow = mediaDao.getRow(mediaCursor); List<Long> mappedIds = rte.getMappingsForRelated(mediaRelation, mediaRow.getId()); for (long mappedId : mappedIds) {
SimpleAttributesRow simpleRow = simpleDao .getRow(simpleCursor); List<Long> mappedIds = rte.getMappingsForRelated( simpleRelation, simpleRow.getId()); for (long mappedId : mappedIds) {