private List resultSetToArrayList(final List<Object[]> resultList) throws ApplicationRuntimeException {
  final List list=new ArrayList();
  LabelValueBean labelValueBean=null;
  BigDecimal id;
  try {
    for (    final Object[] objArr : resultList) {
      labelValueBean=new LabelValueBean();
      id=(BigDecimal)objArr[0];
      labelValueBean.setId(id.intValue());
      labelValueBean.setName((String)objArr[1]);
      list.add(labelValueBean);
    }
  }
 catch (  final Exception e) {
    LOGGER.error("Error occurred in EgovMasterDataCaching resultSetToArrayList",e);
    throw new ApplicationRuntimeException("Error occurred in EgovMasterDataCaching resultSetToArrayList",e);
  }
  return list;
}

private List resultSetToArrayList ( final List < Object [ ] > resultList ) throws ApplicationRuntimeException { final List list = new ArrayList ( ) ; LabelValueBean labelValueBean = null ; BigDecimal id ; try { for ( final Object [ ] objArr : resultList ) { labelValueBean = new LabelValueBean ( ) ; id = ( BigDecimal ) objArr [ 0 ] ; labelValueBean . setId ( id . intValue ( ) ) ; labelValueBean . setName ( ( String ) objArr [ 1 ] ) ; list . add ( labelValueBean ) ; } } catch ( final Exception e ) { LOGGER . error ( "Error occurred in EgovMasterDataCaching resultSetToArrayList" , e ) ; throw new ApplicationRuntimeException ( "Error occurred in EgovMasterDataCaching resultSetToArrayList" , e ) ; } return list ; }
this method returns a list of labelvaluebean using the resultlist object .
