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

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.

getDescription

Returns a description of the data source.

getFailoverPartner

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

getInstanceName

Returns the SQL Server instance name.

getLastUpdateCount

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

getLockTimeout

Returns an integer value that indicates 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.

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.

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.

setFailoverPartner

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

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 integer value indicating the number of milliseconds to wait before the database reports a lock time out.

setLoginTimeout

Sets the number of seconds 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.

setSelectMethod

Sets the default cursor type used for all result sets that are 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.

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 client computer name 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

See Also