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 ; }
Get the related id mappings for the base id