/** * Retrieves the value of the designated column in the current row * of this <code>ResultSet</code> object as * a <code>java.time.LocalDateTime</code> in the Java programming language. * * @param timezone the calendar providing the timezone configuration * @param mapNull true if 1.1.1970 00:00:00.000 should be mapped to null * @return the column value; if the value is SQL <code>NULL</code>, the * value returned is <code>null</code> */ public LocalDateTime getLocalDateTime(Calendar timezone, boolean mapNull) { Timestamp ts = getTimestamp(timezone, mapNull); return ts == null ? null : ts.toLocalDateTime(); }
/** * Retrieves the value of the designated column in the current row * of this <code>ResultSet</code> object as * a <code>java.time.LocalDateTime</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 * @param mapNull true if 1.1.1970 00:00:00.000 should be mapped to null * @return the column value; if the value is SQL <code>NULL</code>, the * value returned is <code>null</code> */ public LocalDateTime getLocalDateTime(String name, Calendar timezone, boolean mapNull) { Timestamp ts = getTimestamp(name, timezone, mapNull); return ts == null ? null : ts.toLocalDateTime(); }
/** * Retrieves the value of the designated column in the current row * of this <code>ResultSet</code> object as * a <code>java.time.LocalDateTime</code> in the Java programming language. * * @param pos the parameter index in the result set * @param timezone the calendar providing the timezone configuration * @param mapNull true if 1.1.1970 00:00:00.000 should be mapped to null * @return the column value; if the value is SQL <code>NULL</code>, the * value returned is <code>null</code> */ public LocalDateTime getLocalDateTime(int pos, Calendar timezone, boolean mapNull) { Timestamp ts = getTimestamp(pos, timezone, mapNull); return ts == null ? null : ts.toLocalDateTime(); }