setResponseBuffering Method (SQLServerDataSource)

Sets the response buffering mode for connections created by using this SQLServerDataSource object.

public void setResponseBuffering(java.lang.String value)

参数

value

A String that contains the buffering and streaming mode. The valid mode can be one of the following case-insensitive Strings: full or adaptive.

备注

The full value specifies reading the entire result from the server at run time. The full value is the default behavior for the Microsoft SQL Server 2005 JDBC Driver version 1.2 and provides a backward compatibility with the Microsoft SQL Server 2005 JDBC Driver versions 1.1 and 1.0.

The adaptive value specifies buffering the minimum possible data when necessary. The adaptive value is the preferred buffering mode for the Microsoft SQL Server 2005 JDBC Driver version 1.2.

For more information about using the response buffering mode, see 使用自适应缓冲.

另请参见

参考

SQLServerDataSource Class

概念

SQLServerDataSource Methods
SQLServerDataSource Members