Package org.postgresql.pljava.pg.adt
package org.postgresql.pljava.pg.adt
Built-in implementations of
Adapter
for common PostgreSQL
data types.- Author:
- Chapman Flack
-
ClassDescriptionArrayAdapter<T>Ancestor of adapters that can map a PostgreSQL array to some representation <T>.PostgreSQL
bytea
.Adapter producing a Java byte array.Adapter producing anInputStream
.PostgreSQL date, time, timestamp, and interval types, available in various representations by implementing the corresponding functional interfaces to construct them.Adapter for theDATE
type to the functional interfaceDatetime.Date
.Adapter for theINTERVAL
type to the functional interfaceTimespan.Interval
.Instances of the date/time/timestamp adapters using the JSR310java.time
types.Adapter for theTIME
type to the functional interfaceDatetime.Time
.Adapter for theTIMESTAMP
type to the functional interfaceDatetime.Timestamp
.Adapter for theTIMESTAMP WITH TIME ZONE
type to the functional interfaceDatetime.TimestampTZ
.Adapter for theTIME WITH TIME ZONE
type to the functional interfaceDatetime.TimeTZ
.PostgreSQL character set encoding (int4
in the catalogs) represented asCharsetEncoding
.PostgreSQLaclitem
represented asGrant
.MoneyAdapter<T>Adapter for theMONEY
type to the functional interfaceMoney
.NameAdapter<T extends Lexicals.Identifier.Unqualified>PostgreSQLname
type represented asLexicals.Identifier.Simple
orLexicals.Identifier.Operator
.Adapter for thename
type, returning a JavaString
.Adapter for thename
type, returning anIdentifier.Operator
.Adapter for thename
type, returning anIdentifier.Simple
.Adapter for theNUMERIC
type to the functional interfaceNumeric
.OidAdapter<T extends CatalogObject>PostgreSQLoid
type represented asCatalogObject
or one of itsAddressed
subtypes.OidAdapter.Addressed<T extends CatalogObject.Addressed<T>>Adapter for theoid
type, able to return most of theCatalogObject.Addressed
subinterfaces.Adapter for theoid
type, returned as a primitiveint
.A distinct adapter class is needed here because the parameterizedRegProcedure<?>
type can't be indicated with a class literal argument toAddressed
.PostgreSQL primitive numeric and boolean, as the corresponding Java primitive types.Adapter for theboolean
type.Adapter for thefloat4
type.Adapter for thefloat8
type.Adapter for the"char"
type.Adapter for theint2
type.Adapter for theint4
type.Adapter for theint8
type.Implementation of a service defined byAdapter
for data types.PostgreSQLtext
,varchar
, and similar types represented as JavaString
.PostgreSQLuuid
type represented asjava.util.UUID
.PostgreSQLcid
,tid
,xid
, andxid8
types.Adapter for thecid
orxid
type, returned as a primitiveint
.Adapter for thetid
type using the functional interfaceInternal.Tid
.Adapter for thexid8
type, returned as a primitivelong
.PostgreSQLxml
type represented asjava.sql.SQLXML
.Adapter for use when the PostgreSQL type is not actually XML, but to be synthetically rendered as XML (such aspg_node_tree
).