code: public void setTimestamp(final int parameterIndex, final Timestamp timestamp)
        throws SQLException {
      if (timestamp == null) {
        setNull(parameterIndex, ColumnType.DATETIME);
        return;
      }
      setParameter(parameterIndex,
          new TimestampParameter(timestamp, protocol.getTimeZone(), useFractionalSeconds));
  
    }
docs: Sets the designated parameter to the given <code>java.sql.Timestamp</code> value. The driver
  converts this to an SQL <code>TIMESTAMP</code> value when it sends it to the database.
  
  @param parameterIndex the first parameter is 1, the second is 2, ...
  @param timestamp      the parameter value
  @throws SQLException if parameterIndex does not correspond to a parameter marker in the SQL
  statement; if a database access error occurs or this method is called on a
  closed
  <code>PreparedStatement</code>