Module spring.data.jdbc
Class Jsr310TimestampBasedConverters
java.lang.Object
org.springframework.data.jdbc.core.convert.Jsr310TimestampBasedConverters
Helper class to register JSR-310 specific
Converter implementations. These converters are based on
Timestamp instead of Date and therefore preserve nanosecond precision- Since:
- 2.2
- Author:
- Jens Schauder
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enumstatic enumstatic enumstatic enumstatic enumstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<Converter<?,?>> Returns the converters to be registered.
-
Constructor Details
-
Jsr310TimestampBasedConverters
public Jsr310TimestampBasedConverters()
-
-
Method Details
-
getConvertersToRegister
Returns the converters to be registered. Note that theJsr310TimestampBasedConverters.LocalDateTimeToTimestampConverteris not included, since many database don't need that conversion. Databases that do need it, should include it in the conversions offered by their respective dialect.- Returns:
- a collection of converters. Guaranteed to be not null.
-