|
|
|
@ -30,10 +30,6 @@ import java.util.UUID; |
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.core.convert.converter.Converter; |
|
|
|
import org.springframework.core.convert.converter.Converter; |
|
|
|
import org.springframework.core.convert.converter.ConverterFactory; |
|
|
|
import org.springframework.core.convert.converter.ConverterFactory; |
|
|
|
import org.springframework.data.r2dbc.convert.R2dbcConverters.RowToNumberConverterFactory.RowToOffsetDateTimeConverter; |
|
|
|
|
|
|
|
import org.springframework.data.r2dbc.convert.R2dbcConverters.RowToNumberConverterFactory.RowToStringConverter; |
|
|
|
|
|
|
|
import org.springframework.data.r2dbc.convert.R2dbcConverters.RowToNumberConverterFactory.RowToUuidConverter; |
|
|
|
|
|
|
|
import org.springframework.data.r2dbc.convert.R2dbcConverters.RowToNumberConverterFactory.RowToZonedDateTimeConverter; |
|
|
|
|
|
|
|
import org.springframework.util.Assert; |
|
|
|
import org.springframework.util.Assert; |
|
|
|
import org.springframework.util.NumberUtils; |
|
|
|
import org.springframework.util.NumberUtils; |
|
|
|
|
|
|
|
|
|
|
|
@ -42,6 +38,7 @@ import org.springframework.util.NumberUtils; |
|
|
|
* |
|
|
|
* |
|
|
|
* @author Hebert Coelho |
|
|
|
* @author Hebert Coelho |
|
|
|
* @author Mark Paluch |
|
|
|
* @author Mark Paluch |
|
|
|
|
|
|
|
* @author Valeriy Vyrva |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
abstract class R2dbcConverters { |
|
|
|
abstract class R2dbcConverters { |
|
|
|
|
|
|
|
|
|
|
|
@ -169,6 +166,7 @@ abstract class R2dbcConverters { |
|
|
|
return (object != null ? NumberUtils.convertNumberToTargetClass((Number) object, this.targetType) : null); |
|
|
|
return (object != null ? NumberUtils.convertNumberToTargetClass((Number) object, this.targetType) : null); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Simple singleton to convert {@link Row}s to their {@link OffsetDateTime} representation. |
|
|
|
* Simple singleton to convert {@link Row}s to their {@link OffsetDateTime} representation. |
|
|
|
@ -231,4 +229,3 @@ abstract class R2dbcConverters { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|