java.lang.Object
org.jooq.util.postgres.PostgresUtils
A collection of utilities to cover the Postgres JDBC driver's missing
 implementations.
 
The Postgres JDBC driver is known to miss out on quite a few JDBC feature implementations. This class should fill those gaps.
- Author:
 - Lukas Eder, Peter Ertl
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]Parse a Postgres-encodedbyteastringstatic DayToSecondtoDayToSecond(Object pgInterval) Convert a Postgres interval to a jOOQDAY TO SECONDintervalTokenize a PGObject input string.static StringtoPGArrayString(Object[] value) Create a Postgres string representation of an arraystatic ObjecttoPGInterval(DayToSecond interval) Convert a jOOQDAY TO SECONDinterval to a Postgres representationstatic ObjecttoPGInterval(YearToMonth interval) Convert a jOOQYEAR TO MONTHinterval to a Postgres representationstatic ObjecttoPGInterval(YearToSecond interval) Convert a jOOQYEAR TO SECONDinterval to a Postgres representationtoPGObject(String input) Tokenize a PGObject input string.static StringtoPGString(byte[] binary) Create a PostgreSQL string representation of a binary.static StringtoPGString(Object o) Create a PostgreSQL string representation of any object.static StringtoPGString(Record r) Create a PostgreSQL string representation of a record.static ObjecttoRedshiftInterval(DayToSecond interval) Convert a jOOQDAY TO SECONDinterval to a Redshift representationstatic ObjecttoRedshiftInterval(YearToMonth interval) Convert a jOOQYEAR TO MONTHinterval to a Redshift representationstatic ObjecttoRedshiftInterval(YearToSecond interval) Convert a jOOQYEAR TO SECONDinterval to a Redshift representationstatic YearToMonthtoYearToMonth(Object pgInterval) Convert a Postgres interval to a jOOQYEAR TO MONTHintervalstatic YearToSecondtoYearToSecond(Object pgInterval) Convert a Postgres interval to a jOOQYEAR TO SECONDinterval 
- 
Constructor Details
- 
PostgresUtils
public PostgresUtils() 
 - 
 - 
Method Details
- 
toBytes
Parse a Postgres-encodedbyteastring - 
toPGInterval
Convert a jOOQDAY TO SECONDinterval to a Postgres representation - 
toPGInterval
Convert a jOOQYEAR TO SECONDinterval to a Postgres representation - 
toPGInterval
Convert a jOOQYEAR TO MONTHinterval to a Postgres representation - 
toRedshiftInterval
Convert a jOOQDAY TO SECONDinterval to a Redshift representation - 
toRedshiftInterval
Convert a jOOQYEAR TO SECONDinterval to a Redshift representation - 
toRedshiftInterval
Convert a jOOQYEAR TO MONTHinterval to a Redshift representation - 
toDayToSecond
Convert a Postgres interval to a jOOQDAY TO SECONDinterval - 
toYearToMonth
Convert a Postgres interval to a jOOQYEAR TO MONTHinterval - 
toYearToSecond
Convert a Postgres interval to a jOOQYEAR TO SECONDinterval - 
toPGArray
Tokenize a PGObject input string. - 
toPGObject
Tokenize a PGObject input string. - 
toPGArrayString
Create a Postgres string representation of an array - 
toPGString
Create a PostgreSQL string representation of any object. - 
toPGString
Create a PostgreSQL string representation of a record. - 
toPGString
Create a PostgreSQL string representation of a binary. 
 -