test_class.file: shardingsphere-jdbc/shardingsphere-jdbc-core/src/test/java/org/apache/shardingsphere/driver/jdbc/core/resultset/ResultSetUtilTest.java
test_class.identifier: ResultSetUtilTest
test_case.body: @Test
      public void assertConvertNumberValueSuccess() {
          assertThat(ResultSetUtil.convertValue("1", String.class), is("1"));
          assertThat(ResultSetUtil.convertValue(1, boolean.class), is(true));
          assertThat(ResultSetUtil.convertValue((byte) 1, byte.class), is((byte) 1));
          assertThat(ResultSetUtil.convertValue((short) 1, short.class), is((short) 1));
          assertThat(ResultSetUtil.convertValue(new BigDecimal("1"), int.class), is(1));
          assertThat(ResultSetUtil.convertValue(new BigDecimal("1"), long.class), is(1L));
          assertThat(ResultSetUtil.convertValue(new BigDecimal("1"), double.class), is(1.0d));
          assertThat(ResultSetUtil.convertValue(new BigDecimal("1"), float.class), is(1.0f));
          assertThat(ResultSetUtil.convertValue(new BigDecimal("1"), BigDecimal.class), is(new BigDecimal("1")));
          assertThat(ResultSetUtil.convertValue((short) 1, BigDecimal.class), is(new BigDecimal("1")));
          assertThat(ResultSetUtil.convertValue(new Date(0L), Date.class), is(new Date(0L)));
          assertThat(ResultSetUtil.convertValue((short) 1, Object.class), is(Short.valueOf("1")));
          assertThat(ResultSetUtil.convertValue((short) 1, String.class), is("1"));
      }
test_case.class_method_signature: ResultSetUtilTest.assertConvertNumberValueSuccess()
test_case.full_signature: @Test public void assertConvertNumberValueSuccess()
test_case.identifier: assertConvertNumberValueSuccess
test_case.invocations: assertThat convertValue is assertThat convertValue is assertThat convertValue is assertThat convertValue is assertThat convertValue is assertThat convertValue is assertThat convertValue is assertThat convertValue is assertThat convertValue is assertThat convertValue is assertThat convertValue is assertThat convertValue is valueOf assertThat convertValue is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertConvertNumberValueSuccess()
focal_class.file: shardingsphere-jdbc/shardingsphere-jdbc-core/src/main/java/org/apache/shardingsphere/driver/jdbc/core/resultset/ResultSetUtil.java
focal_class.identifier: ResultSetUtil
focal_class.class_method_signature: ResultSetUtil.convertValue(final Object value, final Class<?> convertType)
focal_class.full_signature: public static Object convertValue(final Object value, final Class<?> convertType)
focal_class.identifier: convertValue
focal_class.modifiers: public static
focal_class.parameters: (final Object value, final Class<?> convertType)
focal_class.return: Object
focal_class.signature: Object convertValue(final Object value, final Class<?> convertType)
focal_class.class_method_signature: ResultSetUtil.convertURL(final Object value)
focal_class.full_signature: private static Object convertURL(final Object value)
focal_class.identifier: convertURL
focal_class.modifiers: private static
focal_class.parameters: (final Object value)
focal_class.return: Object
focal_class.signature: Object convertURL(final Object value)
focal_class.class_method_signature: ResultSetUtil.convertBigDecimalValue(final Object value, final boolean needScale, final int scale)
focal_class.full_signature: public static Object convertBigDecimalValue(final Object value, final boolean needScale, final int scale)
focal_class.identifier: convertBigDecimalValue
focal_class.modifiers: public static
focal_class.parameters: (final Object value, final boolean needScale, final int scale)
focal_class.return: Object
focal_class.signature: Object convertBigDecimalValue(final Object value, final boolean needScale, final int scale)
focal_class.class_method_signature: ResultSetUtil.adjustBigDecimalResult(final BigDecimal value, final boolean needScale, final int scale)
focal_class.full_signature: private static BigDecimal adjustBigDecimalResult(final BigDecimal value, final boolean needScale, final int scale)
focal_class.identifier: adjustBigDecimalResult
focal_class.modifiers: private static
focal_class.parameters: (final BigDecimal value, final boolean needScale, final int scale)
focal_class.return: BigDecimal
focal_class.signature: BigDecimal adjustBigDecimalResult(final BigDecimal value, final boolean needScale, final int scale)
focal_class.class_method_signature: ResultSetUtil.convertLocalDateTimeValue(final Object value)
focal_class.full_signature: private static Object convertLocalDateTimeValue(final Object value)
focal_class.identifier: convertLocalDateTimeValue
focal_class.modifiers: private static
focal_class.parameters: (final Object value)
focal_class.return: Object
focal_class.signature: Object convertLocalDateTimeValue(final Object value)
focal_class.class_method_signature: ResultSetUtil.convertLocalDateValue(final Object value)
focal_class.full_signature: private static Object convertLocalDateValue(final Object value)
focal_class.identifier: convertLocalDateValue
focal_class.modifiers: private static
focal_class.parameters: (final Object value)
focal_class.return: Object
focal_class.signature: Object convertLocalDateValue(final Object value)
focal_class.class_method_signature: ResultSetUtil.convertLocalTimeValue(final Object value)
focal_class.full_signature: private static Object convertLocalTimeValue(final Object value)
focal_class.identifier: convertLocalTimeValue
focal_class.modifiers: private static
focal_class.parameters: (final Object value)
focal_class.return: Object
focal_class.signature: Object convertLocalTimeValue(final Object value)
focal_class.class_method_signature: ResultSetUtil.convertNullValue(final Class<?> convertType)
focal_class.full_signature: private static Object convertNullValue(final Class<?> convertType)
focal_class.identifier: convertNullValue
focal_class.modifiers: private static
focal_class.parameters: (final Class<?> convertType)
focal_class.return: Object
focal_class.signature: Object convertNullValue(final Class<?> convertType)
focal_class.class_method_signature: ResultSetUtil.convertNumberValue(final Object value, final Class<?> convertType)
focal_class.full_signature: private static Object convertNumberValue(final Object value, final Class<?> convertType)
focal_class.identifier: convertNumberValue
focal_class.modifiers: private static
focal_class.parameters: (final Object value, final Class<?> convertType)
focal_class.return: Object
focal_class.signature: Object convertNumberValue(final Object value, final Class<?> convertType)
focal_class.class_method_signature: ResultSetUtil.convertDateValue(final Object value, final Class<?> convertType)
focal_class.full_signature: private static Object convertDateValue(final Object value, final Class<?> convertType)
focal_class.identifier: convertDateValue
focal_class.modifiers: private static
focal_class.parameters: (final Object value, final Class<?> convertType)
focal_class.return: Object
focal_class.signature: Object convertDateValue(final Object value, final Class<?> convertType)
focal_class.class_method_signature: ResultSetUtil.convertByteArrayValue(final Object value, final Class<?> convertType)
focal_class.full_signature: private static Object convertByteArrayValue(final Object value, final Class<?> convertType)
focal_class.identifier: convertByteArrayValue
focal_class.modifiers: private static
focal_class.parameters: (final Object value, final Class<?> convertType)
focal_class.return: Object
focal_class.signature: Object convertByteArrayValue(final Object value, final Class<?> convertType)
focal_method.body: public static Object convertValue(final Object value, final Class<?> convertType) {
          if (null == value) {
              return convertNullValue(convertType);
          }
          if (value.getClass() == convertType) {
              return value;
          }
          if (LocalDateTime.class.equals(convertType)) {
              return convertLocalDateTimeValue(value);
          }
          if (LocalDate.class.equals(convertType)) {
              return convertLocalDateValue(value);
          }
          if (LocalTime.class.equals(convertType)) {
              return convertLocalTimeValue(value);
          }
          if (URL.class.equals(convertType)) {
              return convertURL(value);
          }
          if (value instanceof Number) {
              return convertNumberValue(value, convertType);
          }
          if (value instanceof Date) {
              return convertDateValue(value, convertType);
          }
          if (value instanceof byte[]) {
              return convertByteArrayValue(value, convertType);
          }
          if (String.class.equals(convertType)) {
              return value.toString();
          } else {
              return value;
          }
      }
focal_method.class_method_signature: ResultSetUtil.convertValue(final Object value, final Class<?> convertType)
focal_method.full_signature: public static Object convertValue(final Object value, final Class<?> convertType)
focal_method.identifier: convertValue
focal_method.invocations: convertNullValue getClass equals convertLocalDateTimeValue equals convertLocalDateValue equals convertLocalTimeValue equals convertURL convertNumberValue convertDateValue convertByteArrayValue equals toString
focal_method.modifiers: public static
focal_method.parameters: (final Object value, final Class<?> convertType)
focal_method.return: Object
focal_method.signature: Object convertValue(final Object value, final Class<?> convertType)