java.lang.Object
org.jooq.postgres.extensions.types.DateRange
- All Implemented Interfaces:
Serializable
,Range<Date>
A data type representing the PostgreSQL
daterange
type.- Author:
- Lukas Eder
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic final DateRange
Create a newDateRange
.static final DateRange
Create a newDateRange
with a inclusive lower bound and an exclusive upper bound.boolean
int
hashCode()
boolean
isEmpty()
In PostgreSQL, a [x,x) range is considered "empty".final Date
lower()
The lower bound of the range.final boolean
Whether theRange.lower()
bound of the range is included in the range.toString()
final Date
upper()
The upper bound of the range.final boolean
Whether theRange.upper()
bound of the range is included in the range.
-
Method Details
-
dateRange
Create a newDateRange
with a inclusive lower bound and an exclusive upper bound. -
dateRange
public static final DateRange dateRange(Date lower, boolean lowerIncluding, Date upper, boolean upperIncluding) Create a newDateRange
. -
isEmpty
public boolean isEmpty()Description copied from interface:Range
In PostgreSQL, a [x,x) range is considered "empty". -
hashCode
public int hashCode() -
equals
-
lower
Description copied from interface:Range
The lower bound of the range. -
lowerIncluding
public final boolean lowerIncluding()Description copied from interface:Range
Whether theRange.lower()
bound of the range is included in the range.- Specified by:
lowerIncluding
in interfaceRange<T>
-
upper
Description copied from interface:Range
The upper bound of the range. -
upperIncluding
public final boolean upperIncluding()Description copied from interface:Range
Whether theRange.upper()
bound of the range is included in the range.- Specified by:
upperIncluding
in interfaceRange<T>
-
toString
-