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(expected = ShardingSphereException.class)
      public void assertConvertDateValueError() {
          ResultSetUtil.convertValue(new Date(), int.class);
      }
test_case.class_method_signature: ResultSetUtilTest.assertConvertDateValueError()
test_case.full_signature: @Test(expected = ShardingSphereException.class) public void assertConvertDateValueError()
test_case.identifier: assertConvertDateValueError
test_case.invocations: convertValue
test_case.modifiers: @Test(expected = ShardingSphereException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertConvertDateValueError()
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)