Package org.jdbi.v3.sqlobject.customizer
Class TimestampedConfig
- java.lang.Object
-
- org.jdbi.v3.sqlobject.customizer.TimestampedConfig
-
- All Implemented Interfaces:
JdbiConfig<TimestampedConfig>
public class TimestampedConfig extends java.lang.Object implements JdbiConfig<TimestampedConfig>
Configuration forTimestamped.
-
-
Field Summary
Fields Modifier and Type Field Description private java.time.ZoneIdtimezone
-
Constructor Summary
Constructors Modifier Constructor Description TimestampedConfig()privateTimestampedConfig(TimestampedConfig other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimestampedConfigcreateCopy()Returns a copy of this configuration object.java.time.ZoneIdgetTimezone()Returns the timezone used in the resultingOffsetDateTime.voidsetTimezone(java.time.ZoneId timezone)Sets the timezone used for the conversion ofOffsetDateTimeobjects.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jdbi.v3.core.config.JdbiConfig
setRegistry
-
-
-
-
Constructor Detail
-
TimestampedConfig
public TimestampedConfig()
-
TimestampedConfig
private TimestampedConfig(TimestampedConfig other)
-
-
Method Detail
-
getTimezone
public java.time.ZoneId getTimezone()
Returns the timezone used in the resultingOffsetDateTime.- Returns:
- The timezone used in the resulting
OffsetDateTime
-
setTimezone
public void setTimezone(java.time.ZoneId timezone)
Sets the timezone used for the conversion ofOffsetDateTimeobjects.- Parameters:
timezone- used in the resultingOffsetDateTime
-
createCopy
public TimestampedConfig createCopy()
Description copied from interface:JdbiConfigReturns a copy of this configuration object. Changes to the copy should not modify the original, and vice-versa.- Specified by:
createCopyin interfaceJdbiConfig<TimestampedConfig>- Returns:
- a copy of this configuration object.
-
-