/** * Retrieves the value of the designated column in the current row * of this <code>ResultSet</code> object as * a <code>java.time.LocalTime</code> in the Java programming language. * * @param timezone the calendar providing the timezone configuration * @return the column value; if the value is SQL <code>NULL</code>, the * value returned is <code>null</code> */ public LocalTime getLocalTime(Calendar timezone) { Time time = getTime(timezone); return time == null ? null : time.toLocalTime(); }
/** * Retrieves the value of the designated column in the current row * of this <code>ResultSet</code> object as * a <code>java.time.LocalTime</code> in the Java programming language. * * @param pos the parameter index in the result set * @param timezone the calendar providing the timezone configuration * @return the column value; if the value is SQL <code>NULL</code>, the * value returned is <code>null</code> */ public LocalTime getLocalTime(int pos, Calendar timezone) { Time time = getTime(pos, timezone); return time == null ? null : time.toLocalTime(); }
/** * Retrieves the value of the designated column in the current row * of this <code>ResultSet</code> object as * a <code>java.time.LocalTime</code> in the Java programming language. * * @param name the label for the column specified with the SQL AS clause. * If the SQL AS clause was not specified, then the label is the name of the column * @param timezone the calendar providing the timezone configuration * @return the column value; if the value is SQL <code>NULL</code>, the * value returned is <code>null</code> */ public LocalTime getLocalTime(String name, Calendar timezone) { Time time = getTime(name, timezone); return time == null ? null : time.toLocalTime(); }