Compartir a través de


SQLServerConnection Methods

The following tables list the methods that are exposed by the SQLServerConnection class.

Methods

Name Description

clearWarnings

Clears all warnings that are reported for this SQLServerConnection object.

close

Releases this SQLServerConnection object's database and JDBC resources immediately instead of waiting for them to be automatically released.

commit

Makes all changes made since the previous commit or rollback permanent, and releases any database locks currently held by this SQLServerConnection object.

createStatement

Creates a SQLServerStatement object for sending SQL statements to the database.

getAutoCommit

Retrieves the current auto-commit mode for this SQLServerConnection object.

getCatalog

Retrieves this SQLServerConnection object's current catalog name.

getHoldability

Retrieves the current holdability of SQLServerResultSet objects that are created by using this SQLServerConnection object.

getMetaData

Retrieves a SQLServerDatabaseMetaData object that contains metadata about the database to which this SQLServerConnection object represents a connection.

getTransactionIsolation

Retrieves the current transaction isolation level for this SQLServerConnection object.

getTypeMap

Retrieves the Map object that is associated with this SQLServerConnection object.

getWarnings

Retrieves the first warning that is reported by calls on this SQLServerConnection object.

isClosed

Indicates whether this SQLServerConnection object has been closed.

isReadOnly

Indicates whether this SQLServerConnection object is in read-only mode.

nativeSQL

Converts the given SQL statement into the native SQL grammar of the database server.

prepareCall

Creates a SQLServerCallableStatement object for calling database stored procedures.

prepareStatement

Creates a SQLServerPreparedStatement object for sending parameterized SQL statements to the database.

releaseSavepoint

Removes the given SQLServerSavepoint object from the current transaction.

rollback

Undoes all changes made in the current transaction and releases any database locks currently held by this SQLServerConnection object.

setAutoCommit

Sets the auto-commit mode for this SQLServerConnection object to the given state.

setCatalog

Sets the given catalog name to select a subspace of this SQLServerConnection object's database in which to work.

setHoldability

Changes the holdability of SQLServerResultSet objects that are created by using this SQLServerSavepoint object to the given holdability.

setReadOnly

Puts this SQLServerConnection object in read-only mode as a hint to the JDBC driver to enable database optimizations.

setSavepoint

Creates an unnamed savepoint in the current transaction and returns the new SQLServerSavepoint object that represents it.

setTransactionIsolation

Attempts to change the transaction isolation level for this SQLServerConnection object to the one given.

setTypeMap

Installs the given TypeMap object as the type map for this SQLServerConnection object.

Inherited Methods

Class inherited from: Methods

java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait

Vea también

Referencia

SQLServerConnection Class

Conceptos

SQLServerConnection Members