Compartir a través de


SQLServerDataSource Members

The following tables list the members exposed by the SQLServerDataSource class.

Constructors

Name Description

SQLServerDataSource ()

Initializes a new instance of the SQLServerDataSource class.

Fields

None.

Inherited Fields

None.

Methods

Name Description

getApplicationName

Returns the application name.

getConnection

Tries to establish a connection with the data source that this SQLServerDataSource object represents.

getDatabaseName

Returns the database name.

getEncrypt

Returns a boolean value indicating whether the encrypt property is enabled.

getDescription

Returns a description of the data source.

getFailoverPartner

Returns the name of the failover server used in a database mirroring configuration.

getHostNameInCertificate

Returns the host name used in validating the SQL Server Secure Sockets Layer (SSL) certificate.

getInstanceName

Returns the SQL Server instance name.

getLastUpdateCount

Returns a boolean value indicating whether the lastUpdateCount property is enabled.

getLockTimeout

Returns an int value indicating the number of milliseconds the database waits before reporting a lock time out.

getLoginTimeout

Returns the number of seconds this SQLServerDataSource object waits while trying to make a connection.

getLogWriter

Returns a character output stream to be used for all logging and tracing messages.

getPacketSize

Returns the current network packet size used to communicate with SQL Server, specified in bytes.

getPortNumber

Returns the current port number used to communicate with SQL Server.

getReference

Returns a reference to this SQLServerDataSource object.

getResponseBuffering

Returns the response buffering mode for this SQLServerDataSource object.

getSelectMethod

Returns the default cursor type used for all result sets created by using this SQLServerDataSource object.

getSendStringParametersAsUnicode

Returns a boolean value indicating whether sending string parameters to the server in UNICODE format is enabled.

getServerName

Returns the name of the computer running SQL Server.

getTrustServerCertificate

Returns a boolean value indicating whether the trustServerCertificate property is enabled.

getTrustStore

Returns the path (including file name) to the certificate trustStore file.

getURL

Returns the URL used to connect to the data source.

getUser

Returns the user name used to connect the data source.

getWorkstationID

Returns the name of the client computer name used to connect to the data source.

getXopenStates

Returns a boolean value indicating whether converting SQL states to XOPEN compliant states is enabled.

setApplicationName

Sets the application name.

setDatabaseName

Sets the database name to connect to.

setDescription

Sets the description of the data source.

setEncrypt

Sets a boolean value indicating whether the encrypt property is enabled.

setFailoverPartner

Sets the name of the failover server used in a database mirroring configuration.

setHostNameInCertificate

Sets the host name to be used in validating the SQL Server Secure Sockets Layer (SSL) certificate.

setInstanceName

Sets the SQL Server instance name.

setIntegratedSecurity

Sets a boolean value indicating whether the integratedSecurity property is enabled.

setLastUpdateCount

Sets a boolean value indicating whether the lastUpdateCount property is enabled.

setLockTimeout

Sets an int value indicating the number of milliseconds to wait before the database reports a lock time out.

setLoginTimeout

Sets the number of seconds that this SQLServerDataSource object waits while trying to make a connection.

setLogWriter

Sets a character output stream to be used for all logging and tracing messages.

setPacketSize

Sets the current network packet size used to communicate with SQL Server, specified in bytes.

setPassword

Sets the password used to connect to SQL Server.

setPortNumber

Sets the port number used to communicate with SQL Server.

setResponseBuffering

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

setSelectMethod

Sets the default cursor type used for all result sets created by using this SQLServerDataSource object.

setSendStringParametersAsUnicode

Sets a boolean value indicating whether sending string parameters to the server in UNICODE format is enabled.

setServerName

Sets the name of the computer running SQL Server.

setTrustServerCertificate

Sets a boolean value indicating whether the trustServerCertificate property is enabled.

setTrustStore

Sets the path (including file name) to the certificate trustStore file.

setTrustStorePassword

Sets the password that is used to check the integrity of the trustStore data.

setURL

Sets the URL used to connect to the data source.

setUser

Sets the user name used to connect the data source.

setWorkstationID

Sets the name of the client computer used to connect to the data source.

setXopenStates

Sets a boolean value indicating whether converting SQL states to XOPEN compliant states is enabled.

Inherited Methods

Class inherited from: Methods

java.lang.Object

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

Vea también

Referencia

SQLServerDataSource Class