public class DurationColumnMapperFactory extends Object implements ColumnMapperFactory
PGInterval type to Java's Duration.
Not all PGIntervals are representable as Durations. E.g., one with months, which is an
estimated ChronoUnit, or one whose seconds is larger than a long. An
IllegalArgumentException will be thrown in either case.
| Constructor and Description |
|---|
DurationColumnMapperFactory() |
| Modifier and Type | Method and Description |
|---|---|
Optional<ColumnMapper<?>> |
build(Type type,
ConfigRegistry config) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitofpublic Optional<ColumnMapper<?>> build(Type type, ConfigRegistry config)
build in interface ColumnMapperFactoryCopyright © 2018. All rights reserved.