Tip: Click lines to highlight, hold ctrl/cmd to multi-select

http://codedumper.com/ebeco (1-Jul @ 20:36)

Syntax Highlighted Code

  1.  
  2.    public List<AssignmentLE> getAssignments(AssignmentFilterCriteria filter) throws AppException
  3.    {
  4.        String METHOD_NAME = "getAssignedLegalEntities(AssignmentFilterCriteria)";
  5.        log.debug(METHOD_NAME + "enter");
  6.  
  7.        ArrayList<AssignmentLE> list = null;
  8.        
  9.        Connection con = null;
  10.  
  11.        try
  12.        {
  13.            con = repository.getConnection();
  14.  
  15.            list = getAssignments(filter, con);
  16.  
  17.        }
  18.        catch (Exception e)
  19.        {
  20.            throw new AppException(new AppErrorMessage(com.tanval.tbbsr.util.MessageConstants.E0021E_CODE, "Error Occured while retrieving assignments  " + e.getMessage()) );
  21.        }
  22.        finally
  23.        {
  24.            repository.closeHandle(con);
  25.        }
  26.        log.debug(METHOD_NAME + "Exit");
  27.  
  28.        return list;
  29.        
  30.    }
  31.  

Plain Code


   public List<AssignmentLE> getAssignments(AssignmentFilterCriteria filter) throws AppException
   {
       String METHOD_NAME = "getAssignedLegalEntities(AssignmentFilterCriteria)";
       log.debug(METHOD_NAME + "enter");

       ArrayList<AssignmentLE> list = null;
       
       Connection con = null;

       try
       {
           con = repository.getConnection();

           list = getAssignments(filter, con);

       }
       catch (Exception e)
       { 
           throw new AppException(new AppErrorMessage(com.tanval.tbbsr.util.MessageConstants.E0021E_CODE, "Error Occured while retrieving assignments  " + e.getMessage()) ); 
       }
       finally
       {
           repository.closeHandle(con);
       }
       log.debug(METHOD_NAME + "Exit");

       return list;
        
   }

Permalink: http://codedumper.com/ebeco