getConcurrency Method (SQLServerResultSet)

Retrieves the concurrency mode of this SQLServerResultSet object.

public int getConcurrency()

返回值

An int that indicates the concurrency type, which can be one of the following values:

ResultSet.CONCUR_READ_ONLY

ResultSet.CONCUR_UPDATABLE

异常

SQLServerException

备注

This getConcurrency method is specified by the getConcurrency method in the java.sql.ResultSet interface.

The concurrency used is determined by the SQLServerStatement object that created the result set.

This method can be used to determine the actual concurrency. If the application selected CONCUR_READ_ONLY or CONCUR_UPDATABLE, these will be returned. If the application used default concurrency, CONCUR_READ_ONLY will be returned.

另请参见

参考

SQLServerResultSet Class

概念

SQLServerResultSet Methods
SQLServerResultSet Members