Freigeben über


setCharacterStream Method (SQLServerPreparedStatement)

Sets the designated parameter to the given Reader object, which is the given number of characters long.

public final void setCharacterStream(int n,
                                     java.io.Reader reader,
                                     int length)

Parameter

n

An int that indicates the parameter number.

reader

A Reader object.

length

The number of characters.

Ausnahmen

SQLServerException

Hinweise

This setCharacterStream method is specified by the setCharacterStream method in the java.sql.PreparedStatement interface.

When the length is set to -1, a stream is allowed, but a specific length is not required. If the Reader passes a stream of a different length than what is specified, the JDBC driver will stop the update while it tries to preserve the connection and the current transaction.

Siehe auch

Verweis

SQLServerPreparedStatement Class

Konzepte

SQLServerPreparedStatement Methods
SQLServerPreparedStatement Members