publicvoidsetNonNullParameter(PreparedStatement ps, int i, Date parameter, JdbcType jdbcType)throws SQLException { ps.setTimestamp(i, new Timestamp(parameter.getTime())); }
public Date getNullableResult(ResultSet rs, String columnName)throws SQLException { Timestamp sqlTimestamp = rs.getTimestamp(columnName); return sqlTimestamp != null ? new Date(sqlTimestamp.getTime()) : null; }
public Date getNullableResult(ResultSet rs, int columnIndex)throws SQLException { Timestamp sqlTimestamp = rs.getTimestamp(columnIndex); return sqlTimestamp != null ? new Date(sqlTimestamp.getTime()) : null; }
public Date getNullableResult(CallableStatement cs, int columnIndex)throws SQLException { Timestamp sqlTimestamp = cs.getTimestamp(columnIndex); return sqlTimestamp != null ? new Date(sqlTimestamp.getTime()) : null; } }