private Icons getIcons(long featureId, StyleMappingDao mappingDao) {

        Icons icons = null;

        if (mappingDao != null) {

            IconDao iconDao = getIconDao();
            if (iconDao != null) {

                List<StyleMappingRow> styleMappingRows = mappingDao
                        .queryByBaseFeatureId(featureId);
                if (!styleMappingRows.isEmpty()) {

                    for (StyleMappingRow styleMappingRow : styleMappingRows) {

                        IconRow iconRow = iconDao.queryForRow(styleMappingRow);
                        if (iconRow != null) {
                            if (icons == null) {
                                icons = new Icons();
                            }
                            icons.setIcon(iconRow,
                                    styleMappingRow.getGeometryType());
                        }
                    }
                }
            }
        }

        return icons;
    }
private Icons getIcons ( long featureId , StyleMappingDao mappingDao ) { Icons icons = null ; if ( mappingDao != null ) { IconDao iconDao = getIconDao ( ) ; if ( iconDao != null ) { List < StyleMappingRow > styleMappingRows = mappingDao . queryByBaseFeatureId ( featureId ) ; if ( ! styleMappingRows . isEmpty ( ) ) { for ( StyleMappingRow styleMappingRow : styleMappingRows ) { IconRow iconRow = iconDao . queryForRow ( styleMappingRow ) ; if ( iconRow != null ) { if ( icons == null ) { icons = new Icons ( ) ; } icons . setIcon ( iconRow , styleMappingRow . getGeometryType ( ) ) ; } } } } } return icons ; }
Get the icons for feature id from the icon mapping dao

@param featureId  geometry feature id or feature table id
@param mappingDao icon mapping dao
@return icons