Condividi tramite


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)

Parametri

n

An int that indicates the parameter number.

reader

A Reader object.

length

The number of characters.

Eccezioni

SQLServerException

Osservazioni

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.

Vedere anche

Riferimento

SQLServerPreparedStatement Class

Concetti

SQLServerPreparedStatement Methods
SQLServerPreparedStatement Members