public abstract class Jsr310TimestampBasedConverters extends Object
Converter implementations. These converters are based on
Timestamp instead of Date and therefore preserve nanosecond precisionJsr310Converters| Modifier and Type | Class and Description |
|---|---|
static class |
Jsr310TimestampBasedConverters.InstantToTimestampConverter |
static class |
Jsr310TimestampBasedConverters.LocalDateTimeToTimestampConverter |
static class |
Jsr310TimestampBasedConverters.LocalDateToTimestampConverter |
static class |
Jsr310TimestampBasedConverters.LocalTimeToTimestampConverter |
static class |
Jsr310TimestampBasedConverters.TimestampToInstantConverter |
static class |
Jsr310TimestampBasedConverters.TimestampToLocalDateConverter |
static class |
Jsr310TimestampBasedConverters.TimestampToLocalDateTimeConverter |
static class |
Jsr310TimestampBasedConverters.TimestampToLocalTimeConverter |
| Constructor and Description |
|---|
Jsr310TimestampBasedConverters() |
| Modifier and Type | Method and Description |
|---|---|
static Collection<Converter<?,?>> |
getConvertersToRegister()
Returns the converters to be registered.
|
public static Collection<Converter<?,?>> getConvertersToRegister()
Jsr310TimestampBasedConverters.LocalDateTimeToTimestampConverter is 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.Copyright © 2017–2022 Pivotal Software, Inc.. All rights reserved.