Class PostgresPlugin
- All Implemented Interfaces:
- JdbiPlugin
- InetAddress(including- Inet4Addressand- Inet6Address)
- LocalDate
- LocalTime
- LocalDateTime
- OffsetDateTime
- Duration(see notes below)
- Period(see notes below)
- Map<String, String>(for- HSTOREcolumns)
- UUID
- InputStreamand- Readerfrom- oidlarge object columns
- @MacAddr String(forMACADDRcolumns)
- @HStore Map(forHSTOREcolumns)
Also sets up SQL array support for the following types:
 A note about the mapping between the Postgres interval type and the Java Period and
 Duration types:
 The Java library authors are much more strict about the temporal amounts representable by Periods and Durations than
 Postgres is with its interval type.  The argument factories and column mapper factories implemented in this
 package respect this spirit of unambiguous strictness.  Consequently:
 
- All Periods can be mapped tointervals.
- Not all Durations can be mapped tointervals.
- Not all intervals can be mapped toPeriods.
- Not all intervals can be mapped toDurations.
DurationArgumentFactory,
 PeriodColumnMapperFactory, and DurationColumnMapperFactory.
 In addition, some potentially unexpected implicit conversions can occur by virtue of the Postgres server logic. For example, at the time of writing, storing a Period of -3 years, 2 months, and -1 days results in an interval (and consequently, a column-mapped Period) of -2 years, -10 months, and -1 days.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.jdbi.v3.core.spi.JdbiPluginJdbiPlugin.Singleton
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncustomizeHandle(Handle handle) Configure customizations for a new Handle instance.voidcustomizeJdbi(Jdbi jdbi) Configure customizations global to any object managed by this Jdbi.static PostgresPluginDo not install the legacy (unqualified) bindings forHStoreArgumentFactoryandHStoreColumnMapper.Methods inherited from class org.jdbi.v3.core.spi.JdbiPlugin.Singletonequals, hashCodeMethods inherited from class java.lang.ObjectgetClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jdbi.v3.core.spi.JdbiPlugincustomizeConnection
- 
Constructor Details- 
PostgresPluginpublic PostgresPlugin()
 
- 
- 
Method Details- 
noUnqualifiedHstoreBindingsDo not install the legacy (unqualified) bindings forHStoreArgumentFactoryandHStoreColumnMapper. When using the plugin returned by this factory method, any lookup for HStore specific arguments and column mappers must be qualified with theHStoreannotation.
- 
customizeJdbiDescription copied from interface:JdbiPluginConfigure customizations global to any object managed by this Jdbi. This method is invoked immediately when the plugin is installed.- Parameters:
- jdbi- the jdbi to customize
 
- 
customizeHandleDescription copied from interface:JdbiPluginConfigure customizations for a new Handle instance.- Parameters:
- handle- the handle just created
- Returns:
- the transformed handle
 
 
-