public class PGTime
extends java.sql.Time
| Modifier and Type | Field and Description |
|---|---|
private java.util.Calendar |
calendar
The optional calendar for this time.
|
private static long |
serialVersionUID
The serial version UID.
|
| Constructor and Description |
|---|
PGTime(long time)
Constructs a
PGTime without a time zone. |
PGTime(long time,
java.util.Calendar calendar)
Constructs a
PGTime with the given calendar object. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Calendar |
getCalendar()
Returns the calendar object for this time.
|
int |
hashCode() |
void |
setCalendar(java.util.Calendar calendar)
Sets the calendar object for this time.
|
getDate, getDay, getMonth, getYear, setDate, setMonth, setTime, setYear, toInstant, toLocalTime, toString, valueOf, valueOfprivate static final long serialVersionUID
private java.util.Calendar calendar
public PGTime(long time)
PGTime without a time zone.time - milliseconds since January 1, 1970, 00:00:00 GMT; a negative number is milliseconds
before January 1, 1970, 00:00:00 GMT.Time(long)public PGTime(long time,
java.util.Calendar calendar)
PGTime with the given calendar object. The calendar object is
optional. If absent, the driver will treat the time as time without time zone.
When present, the driver will treat the time as a time with time zone using the
TimeZone in the calendar object. Furthermore, this calendar will be used instead
of the calendar object passed to PreparedStatement.setTime(int, Time, Calendar).time - milliseconds since January 1, 1970, 00:00:00 GMT; a negative number is milliseconds
before January 1, 1970, 00:00:00 GMT.calendar - the calendar object containing the time zone or null.Time(long)public void setCalendar(java.util.Calendar calendar)
calendar - the calendar object or null.public java.util.Calendar getCalendar()
null.public int hashCode()
hashCode in class java.util.Datepublic boolean equals(java.lang.Object obj)
equals in class java.util.Datepublic java.lang.Object clone()
clone in class java.util.Date