code: public static String getResultSetCloseString(int value) {
          switch (value) {
              case Statement.CLOSE_ALL_RESULTS:
                  return "CLOSE ALL RESULTS (" + value + ')'; 
  
              case Statement.CLOSE_CURRENT_RESULT:
                  return "CLOSE CURRENT RESULT (" + value + ')'; 
  
              case Statement.KEEP_CURRENT_RESULT:
                  return "KEEP CURRENT RESULT (" + value + ')'; 
          }
  
          return "UNKNOWN CLOSE RESULTSET CONSTANT (" + value + ')'; 
      }
docs: Display the java.sql.Statement ResultSet close constant corresponding to the value
  supplied.
  
  @param value a valid ResultSet close value
  
  @return the name of the constant, or a string indicating the constant is unknown.