Package org.jdbi.v3.sqlobject.customizer
Class TimestampedConfig
java.lang.Object
org.jdbi.v3.sqlobject.customizer.TimestampedConfig
- All Implemented Interfaces:
JdbiConfig<TimestampedConfig>
Configuration for
Timestamped
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of this configuration object.Returns the timezone used in the resultingOffsetDateTime
.void
setTimezone
(ZoneId timezone) Sets the timezone used for the conversion ofOffsetDateTime
objects.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jdbi.v3.core.config.JdbiConfig
setRegistry
-
Constructor Details
-
TimestampedConfig
public TimestampedConfig()
-
-
Method Details
-
getTimezone
Returns the timezone used in the resultingOffsetDateTime
.- Returns:
- The timezone used in the resulting
OffsetDateTime
-
setTimezone
Sets the timezone used for the conversion ofOffsetDateTime
objects.- Parameters:
timezone
- used in the resultingOffsetDateTime
-
createCopy
Description copied from interface:JdbiConfig
Returns a copy of this configuration object. Changes to the copy should not modify the original, and vice-versa.- Specified by:
createCopy
in interfaceJdbiConfig<TimestampedConfig>
- Returns:
- a copy of this configuration object.
-