Module org.jooq.postgres.extensions
Class LocalDateTimeRange
java.lang.Object
org.jooq.postgres.extensions.types.LocalDateTimeRange
- All Implemented Interfaces:
Serializable,Range<LocalDateTime>
A data type representing the PostgreSQL
tsrange type.- Author:
- Lukas Eder
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanisEmpty()In PostgreSQL, a [x,x) range is considered "empty".static final LocalDateTimeRangelocalDateTimeRange(LocalDateTime lower, boolean lowerIncluding, LocalDateTime upper, boolean upperIncluding) Create a newLocalDateTimeRange.static final LocalDateTimeRangelocalDateTimeRange(LocalDateTime lower, LocalDateTime upper) Create a newLocalDateTimeRangewith a inclusive lower bound and an exclusive upper bound.final LocalDateTimelower()The lower bound of the range.final booleanWhether theRange.lower()bound of the range is included in the range.toString()final LocalDateTimeupper()The upper bound of the range.final booleanWhether theRange.upper()bound of the range is included in the range.
-
Method Details
-
localDateTimeRange
Create a newLocalDateTimeRangewith a inclusive lower bound and an exclusive upper bound. -
localDateTimeRange
public static final LocalDateTimeRange localDateTimeRange(LocalDateTime lower, boolean lowerIncluding, LocalDateTime upper, boolean upperIncluding) Create a newLocalDateTimeRange. -
isEmpty
public boolean isEmpty()Description copied from interface:RangeIn PostgreSQL, a [x,x) range is considered "empty". -
lower
Description copied from interface:RangeThe lower bound of the range. -
lowerIncluding
public final boolean lowerIncluding()Description copied from interface:RangeWhether theRange.lower()bound of the range is included in the range.- Specified by:
lowerIncludingin interfaceRange<T>
-
upper
Description copied from interface:RangeThe upper bound of the range. -
upperIncluding
public final boolean upperIncluding()Description copied from interface:RangeWhether theRange.upper()bound of the range is included in the range.- Specified by:
upperIncludingin interfaceRange<T>
-
hashCode
public int hashCode() -
equals
-
toString
-