getTransactionIsolation Method (SQLServerConnection)

Retrieves the current transaction isolation level of this SQLServerConnection object.

public int getTransactionIsolation()

返回值

An int value that contains one of the following isolation levels:

TRANSACTION_NONE

TRANSACTION_READ_UNCOMMITTED

TRANSACTION_READ_COMMITTED

TRANSACTION_REPEATABLE_READ

TRANSACTION_SERIALIZABLE

TRANSACTION_SNAPSHOT = 0x1000

异常

SQLServerException

备注

This getTransactionIsolation method is specified by the getTransactionIsolation method in the java.sql.Connection interface.

另请参见

参考

SQLServerConnection Class

概念

SQLServerConnection Methods
SQLServerConnection Members