|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jooq.util.postgres.PostgresUtils
public class 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.
Constructor Summary | |
---|---|
PostgresUtils()
|
Method Summary | |
---|---|
static byte[] |
toBytes(String string)
Parse a Postgres-encoded bytea string |
static DayToSecond |
toDayToSecond(Object pgInterval)
Convert a Postgres interval to a jOOQ DAY TO SECOND interval |
static Object |
toPGInterval(DayToSecond interval)
Convert a jOOQ DAY TO SECOND interval to a Postgres representation |
static Object |
toPGInterval(YearToMonth interval)
Convert a jOOQ YEAR TO MONTH interval to a Postgres representation |
static List<String> |
toPGObject(String input)
Tokenize a PGObject input string |
static YearToMonth |
toYearToMonth(Object pgInterval)
Convert a Postgres interval to a jOOQ YEAR TO MONTH interval |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PostgresUtils()
Method Detail |
---|
public static byte[] toBytes(String string)
bytea
string
public static Object toPGInterval(DayToSecond interval)
DAY TO SECOND
interval to a Postgres representation
public static Object toPGInterval(YearToMonth interval)
YEAR TO MONTH
interval to a Postgres representation
public static DayToSecond toDayToSecond(Object pgInterval)
DAY TO SECOND
interval
public static YearToMonth toYearToMonth(Object pgInterval)
YEAR TO MONTH
interval
public static List<String> toPGObject(String input)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |