finalize Method (SQLServerResultSet)

Explicitly closes this SQLServerResultSet object.

public void finalize()

备注

Closes the result set if the application does not. This method exists only to conform to the JDBC specification. Because the Java Virtual Machine (JVM) does not guarantee when a finalizer will have a chance to run, applications that neglect to explicitly close their result sets could still deadlock on another statement that is using the same connection and is blocked on a common server resource, such as row locks.

另请参见

参考

SQLServerResultSet Class

概念

SQLServerResultSet Methods
SQLServerResultSet Members