code: public static String getCursorHoldabilityString(int value) {
          switch (value) {
              case ResultSet.CLOSE_CURSORS_AT_COMMIT:
                  return "CLOSE CURSORS AT COMMIT (" + value + ')'; 
  
              case ResultSet.HOLD_CURSORS_OVER_COMMIT:
                  return "HOLD CURSORS OVER COMMIT (" + value + ')'; 
  
              case 0:
                  return "DEFAULT CURSOR HOLDABILITY VALUE (" + value + ')'; 
          }
  
          return "UNKNOWN CURSOR HOLDABILITY CONSTANT (" + value + ')'; 
      }
docs: Display the java.sql.ResultSet cursor holdability constant corresponding to the value
  supplied.
  
  @param value a valid cursor holdability value
  
  @return the name of the constant, or a string indicating the constant is unknown.