org.jooq.util.postgres
Class PGIntervalConverter

java.lang.Object
  extended by org.jooq.util.postgres.PGIntervalConverter

Deprecated. - 2.3.0 - Use PostgresUtils methods instead

@Deprecated
public class PGIntervalConverter
extends Object

A converter for org.postgresql.util.PGInterval

Postgres returns an undisclosed internal type for intervals. This converter takes care of converting the internal type to jOOQ's interval data types DayToSecond and YearToMonth

Note, that Postgres uses some non-standard ways of describing negative intervals. Negative intervals have a sign before every date part!

Author:
Lukas Eder

Constructor Summary
PGIntervalConverter()
          Deprecated.  
 
Method Summary
static DayToSecond toDayToSecond(Object pgInterval)
          Deprecated. - 2.3.0 - Use PostgresUtils.toDayToSecond(Object) methods instead
static Object toPGInterval(DayToSecond interval)
          Deprecated. - 2.3.0 - Use PostgresUtils.toPGInterval(DayToSecond) methods instead
static Object toPGInterval(YearToMonth interval)
          Deprecated. - 2.3.0 - Use PostgresUtils.toPGInterval(YearToMonth) methods instead
static YearToMonth toYearToMonth(Object pgInterval)
          Deprecated. - 2.3.0 - Use PostgresUtils.toYearToMonth(Object) methods instead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PGIntervalConverter

public PGIntervalConverter()
Deprecated. 
Method Detail

toPGInterval

@Deprecated
public static Object toPGInterval(DayToSecond interval)
Deprecated. - 2.3.0 - Use PostgresUtils.toPGInterval(DayToSecond) methods instead

Convert a jOOQ DAY TO SECOND interval to a Postgres representation


toPGInterval

@Deprecated
public static Object toPGInterval(YearToMonth interval)
Deprecated. - 2.3.0 - Use PostgresUtils.toPGInterval(YearToMonth) methods instead

Convert a jOOQ YEAR TO MONTH interval to a Postgres representation


toDayToSecond

@Deprecated
public static DayToSecond toDayToSecond(Object pgInterval)
Deprecated. - 2.3.0 - Use PostgresUtils.toDayToSecond(Object) methods instead

Convert a Postgres interval to a jOOQ DAY TO SECOND interval


toYearToMonth

@Deprecated
public static YearToMonth toYearToMonth(Object pgInterval)
Deprecated. - 2.3.0 - Use PostgresUtils.toYearToMonth(Object) methods instead

Convert a Postgres interval to a jOOQ YEAR TO MONTH interval



Copyright © 2012. All Rights Reserved.