code: 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;
  	}
docs: 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