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 SummaryConstructors
- 
Method SummaryModifier 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- 
PostgresUtilspublic PostgresUtils()
 
- 
- 
Method Details- 
toBytesParse a Postgres-encodedbyteastring
- 
toPGIntervalConvert a jOOQDAY TO SECONDinterval to a Postgres representation
- 
toPGIntervalConvert a jOOQYEAR TO SECONDinterval to a Postgres representation
- 
toPGIntervalConvert a jOOQYEAR TO MONTHinterval to a Postgres representation
- 
toRedshiftIntervalConvert a jOOQDAY TO SECONDinterval to a Redshift representation
- 
toRedshiftIntervalConvert a jOOQYEAR TO SECONDinterval to a Redshift representation
- 
toRedshiftIntervalConvert a jOOQYEAR TO MONTHinterval to a Redshift representation
- 
toDayToSecondConvert a Postgres interval to a jOOQDAY TO SECONDinterval
- 
toYearToMonthConvert a Postgres interval to a jOOQYEAR TO MONTHinterval
- 
toYearToSecondConvert a Postgres interval to a jOOQYEAR TO SECONDinterval
- 
toPGArrayTokenize a PGObject input string.
- 
toPGObjectTokenize a PGObject input string.
- 
toPGArrayStringCreate a Postgres string representation of an array
- 
toPGStringCreate a PostgreSQL string representation of any object.
- 
toPGStringCreate a PostgreSQL string representation of a record.
- 
toPGStringCreate a PostgreSQL string representation of a binary.
 
-