code: public static String getConcurrencyModeString(int concurrency) {
          switch (concurrency) {
              case ResultSet.CONCUR_READ_ONLY:
                  return "CONCUR READ ONLY (" + concurrency + ')'; 
  
              case ResultSet.CONCUR_UPDATABLE:
                  return "CONCUR UPDATABLE (" + concurrency + ')'; 
  
              case CONCUR_SS_SCROLL_LOCKS: 
                  return "CONCUR SS SCROLL LOCKS (" + concurrency + ')'; 
  
              case CONCUR_SS_OPTIMISTIC_CCVAL: 
                  return "CONCUR SS OPTIMISTIC CCVAL (" + concurrency + ')'; 
          }
  
          return "UNKNOWN RESULT SET CONCURRENCY (" + concurrency + ')'; 
      }
docs: Display the java.sql.ResultSet concurrency mode constant corresponding to the value
  supplied.
  
  @param level a valid java.sql.ResultSet concurrency mode constant.
  
  @return the name of the constant, or a string indicating the constant is unknown.