ISQLServerDataSource, java.io.Serializable, java.sql.Wrapper, javax.naming.Referenceable, javax.sql.CommonDataSource, javax.sql.DataSourceSQLServerConnectionPoolDataSourcepublic class SQLServerDataSource extends java.lang.Object implements ISQLServerDataSource, javax.sql.DataSource, java.io.Serializable, javax.naming.Referenceable
| Constructor | Description |
|---|---|
SQLServerDataSource() |
Initializes a new instance of the SQLServerDataSource class.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getAccessToken() |
Retrieves the access token.
|
java.lang.String |
getApplicationIntent() |
Returns the application intent.
|
java.lang.String |
getApplicationName() |
Returns the application name.
|
java.lang.String |
getAuthentication() |
Retrieves the authentication mode
|
int |
getCancelQueryTimeout() |
Getting the cancel timeout
|
java.lang.String |
getColumnEncryptionSetting() |
Retrieves the Always Encrypted functionality setting for the data source object.
|
java.sql.Connection |
getConnection() |
|
java.sql.Connection |
getConnection(java.lang.String username,
java.lang.String password) |
|
java.lang.String |
getDatabaseName() |
Returns the database name.
|
java.lang.String |
getDescription() |
Returns a description of the data source.
|
boolean |
getDisableStatementPooling() |
Determine whether statement pooling is disabled.
|
boolean |
getEnablePrepareOnFirstPreparedStatementCall() |
If this configuration returns false the first execution of a prepared statement will call sp_executesql and not prepare a statement, once the
second execution happens it will call sp_prepexec and actually setup a prepared statement handle.
|
boolean |
getEncrypt() |
Returns a Boolean value that indicates if the encrypt property is enabled.
|
java.lang.String |
getFailoverPartner() |
Returns the name of the failover server that is used in a database mirroring configuration.
|
boolean |
getFIPS() |
Retrieves value of connection property "fips" For FIPS enabled JVM this property should be true.
|
org.ietf.jgss.GSSCredential |
getGSSCredentials() |
Retrieves the GSSCredential
|
java.lang.String |
getHostNameInCertificate() |
Returns the host name used in validating the SQL Server Secure Sockets Layer (SSL) certificate.
|
java.lang.String |
getInstanceName() |
Returns the SQL Server instance name.
|
java.lang.String |
getJASSConfigurationName() |
Retrieves the login configuration file for Kerberos authentication.
|
java.lang.String |
getKeyStoreAuthentication() |
Gets the value of the keyStoreAuthentication setting for the data source object.
|
java.lang.String |
getKeyStoreLocation() |
Retrieves the keyStoreLocation for the Java Key Store.
|
boolean |
getLastUpdateCount() |
Returns a Boolean value that indicates if the lastUpdateCount property is enabled.
|
int |
getLockTimeout() |
Returns an int value that indicates the number of milliseconds that the database will wait before reporting a lock time out.
|
int |
getLoginTimeout() |
|
java.io.PrintWriter |
getLogWriter() |
|
boolean |
getMultiSubnetFailover() |
Returns the value of the multiSubnetFailover connection property.
|
int |
getPacketSize() |
Returns the current network packet size used to communicate with SQL Server, specified in bytes.
|
java.util.logging.Logger |
getParentLogger() |
|
int |
getPortNumber() |
Returns the current port number that is used to communicate with SQL Server.
|
int |
getQueryTimeout() |
Getting the query timeout
|
javax.naming.Reference |
getReference() |
|
java.lang.String |
getResponseBuffering() |
Returns the response buffering mode for this SQLServerDataSource object.
|
java.lang.String |
getSelectMethod() |
Returns the default cursor type used for all result sets that are created by using this SQLServerDataSource object.
|
boolean |
getSendStringParametersAsUnicode() |
Returns a boolean value that indicates if sending string parameters to the server in UNICODE format is enabled.
|
boolean |
getSendTimeAsDatetime() |
This method was added in SQL Server JDBC Driver 3.0.
|
java.lang.String |
getServerName() |
Returns the name of the SQL Server instance.
|
boolean |
getServerNameAsACE() |
Retrieves if the serverName should be translated from Unicode to ASCII Compatible Encoding (ACE)
|
int |
getServerPreparedStatementDiscardThreshold() |
This setting controls how many outstanding prepared statement discard actions (sp_unprepare) can be outstanding per connection before a call to
clean-up the outstanding handles on the server is executed.
|
java.lang.String |
getServerSpn() |
Returns the server spn
|
int |
getSocketTimeout() |
Getting the socket timeout
|
java.lang.String |
getSSLProtocol() |
Retrieves value of connection property 'sslProtocol'
|
int |
getStatementPoolingCacheSize() |
Returns the size of the prepared statement cache for this connection.
|
boolean |
getTransparentNetworkIPResolution() |
Retrieves the TransparentNetworkIPResolution value.
|
java.lang.String |
getTrustManagerClass() |
Retrieves value for the connection property 'trustManagerClass'
|
java.lang.String |
getTrustManagerConstructorArg() |
Retrieves value for the connection property 'trustManagerConstructorArg'
|
boolean |
getTrustServerCertificate() |
Returns a Boolean value that indicates if the trustServerCertificate property is enabled.
|
java.lang.String |
getTrustStore() |
Returns the path (including file name) to the certificate trustStore file.
|
java.lang.String |
getTrustStoreType() |
Returns the keyStore Type for the trustStore
|
java.lang.String |
getURL() |
Returns the URL that is used to connect to the data source.
|
boolean |
getUseBulkCopyForBatchInsert() |
Getting the use Bulk Copy API for Batch Insert
|
java.lang.String |
getUser() |
Returns the user name that is used to connect the data source.
|
java.lang.String |
getWorkstationID() |
Returns the name of the client computer name that is used to connect to the data source.
|
boolean |
getXopenStates() |
Returns a boolean value that indicates if converting SQL states to XOPEN compliant states is enabled.
|
boolean |
isWrapperFor(java.lang.Class<?> iface) |
|
void |
setAccessToken(java.lang.String accessToken) |
Sets the access token.
|
void |
setApplicationIntent(java.lang.String applicationIntent) |
Sets the application intent.
|
void |
setApplicationName(java.lang.String applicationName) |
Sets the application name.
|
void |
setAuthentication(java.lang.String authentication) |
sets the authentication mode
|
void |
setAuthenticationScheme(java.lang.String authenticationScheme) |
Indicates the kind of integrated security you want your application to use.
|
void |
setCancelQueryTimeout(int cancelQueryTimeout) |
Setting the cancel timeout
|
void |
setColumnEncryptionSetting(java.lang.String columnEncryptionSetting) |
Enables/disables Always Encrypted functionality for the data source object.
|
void |
setDatabaseName(java.lang.String databaseName) |
Sets the database name to connect to.
|
void |
setDescription(java.lang.String description) |
Sets the description of the data source.
|
void |
setDisableStatementPooling(boolean disableStatementPooling) |
Disable/enable statement pooling.
|
void |
setEnablePrepareOnFirstPreparedStatementCall(boolean enablePrepareOnFirstPreparedStatementCall) |
If this configuration is false the first execution of a prepared statement will call sp_executesql and not prepare a statement, once the second
execution happens it will call sp_prepexec and actually setup a prepared statement handle.
|
void |
setEncrypt(boolean encrypt) |
Sets a Boolean value that indicates if the encrypt property is enabled.
|
void |
setFailoverPartner(java.lang.String serverName) |
Sets the name of the failover server that is used in a database mirroring configuration.
|
void |
setFIPS(boolean fips) |
Enables Fips Mode on the connection For FIPS enabled JVM this property should be true.
|
void |
setGSSCredentials(org.ietf.jgss.GSSCredential userCredential) |
sets GSSCredential
|
void |
setHostNameInCertificate(java.lang.String hostName) |
Sets the host name to be used in validating the SQL Server Secure Sockets Layer (SSL) certificate.
|
void |
setInstanceName(java.lang.String instanceName) |
Sets the SQL Server instance name.
|
void |
setIntegratedSecurity(boolean enable) |
Sets a Boolean value that indicates if the integratedSecurity property is enabled.
|
void |
setJASSConfigurationName(java.lang.String configurationName) |
Sets the login configuration file for Kerberos authentication.
|
void |
setKeyStoreAuthentication(java.lang.String keyStoreAuthentication) |
Sets the name that identifies a key store.
|
void |
setKeyStoreLocation(java.lang.String keyStoreLocation) |
Sets the location including the file name for the Java keystore.
|
void |
setKeyStoreSecret(java.lang.String keyStoreSecret) |
Sets the password for the Java keystore.
|
void |
setLastUpdateCount(boolean lastUpdateCount) |
Sets a Boolean value that indicates if the lastUpdateCount property is enabled.
|
void |
setLockTimeout(int lockTimeout) |
Sets an int value that indicates the number of milliseconds to wait before the database reports a lock time out.
|
void |
setLoginTimeout(int loginTimeout) |
|
void |
setLogWriter(java.io.PrintWriter out) |
|
void |
setMultiSubnetFailover(boolean multiSubnetFailover) |
Sets the value of the multiSubnetFailover connection property.
|
void |
setPacketSize(int packetSize) |
Sets the current network packet size used to communicate with SQL Server, specified in bytes.
|
void |
setPassword(java.lang.String password) |
Sets the password that will be used to connect to SQL Server.
|
void |
setPortNumber(int portNumber) |
Sets the port number to be used to communicate with SQL Server.
|
void |
setQueryTimeout(int queryTimeout) |
Setting the query timeout
|
void |
setResponseBuffering(java.lang.String bufferingMode) |
Sets the response buffering mode for connections created by using this SQLServerDataSource object.
|
void |
setSelectMethod(java.lang.String selectMethod) |
Sets the default cursor type that is used for all result sets that are created by using this SQLServerDataSource object.
|
void |
setSendStringParametersAsUnicode(boolean sendStringParametersAsUnicode) |
Sets a boolean value that indicates if sending string parameters to the server in UNICODE format is enabled.
|
void |
setSendTimeAsDatetime(boolean sendTimeAsDatetime) |
Modifies the setting of the sendTimeAsDatetime connection property.
|
void |
setServerName(java.lang.String serverName) |
Sets the name of the computer that is running SQL Server.
|
void |
setServerNameAsACE(boolean serverNameAsACE) |
Translates the serverName from Unicode to ASCII Compatible Encoding (ACE)
|
void |
setServerPreparedStatementDiscardThreshold(int serverPreparedStatementDiscardThreshold) |
This setting controls how many outstanding prepared statement discard actions (sp_unprepare) can be outstanding per connection before a call to
clean-up the outstanding handles on the server is executed.
|
void |
setServerSpn(java.lang.String serverSpn) |
Sets the server spn
|
void |
setSocketTimeout(int socketTimeout) |
Setting the socket timeout
|
void |
setSSLProtocol(java.lang.String sslProtocol) |
Sets the sslProtocol property for connection Set this value to specify TLS protocol keyword.
|
void |
setStatementPoolingCacheSize(int statementPoolingCacheSize) |
Specifies the size of the prepared statement cache for this connection.
|
void |
setTransparentNetworkIPResolution(boolean tnir) |
Beginning in version 6.0 of the Microsoft JDBC Driver for SQL Server, a new connection property transparentNetworkIPResolution (TNIR) is added
for transparent connection to Always On availability groups or to a server which has multiple IP addresses associated.
|
void |
setTrustManagerClass(java.lang.String trustManagerClass) |
Sets the connection property 'trustManagerClass' on the connection
|
void |
setTrustManagerConstructorArg(java.lang.String trustManagerConstructorArg) |
Sets Constructor Arguments to be provided on constructor of 'trustManagerClass'
|
void |
setTrustServerCertificate(boolean e) |
Sets a Boolean value that indicates if the trustServerCertificate property is enabled.
|
void |
setTrustStore(java.lang.String trustStore) |
Sets the path (including file name) to the certificate trustStore file.
|
void |
setTrustStorePassword(java.lang.String trustStorePassword) |
Sets the password that is used to check the integrity of the trustStore data.
|
void |
setTrustStoreType(java.lang.String trustStoreType) |
This parameter defines the keystore type for the trustStore.
|
void |
setURL(java.lang.String url) |
Sets the URL that is used to connect to the data source.
|
void |
setUseBulkCopyForBatchInsert(boolean useBulkCopyForBatchInsert) |
Setting the use Bulk Copy API for Batch Insert
|
void |
setUser(java.lang.String user) |
Sets the user name that is used to connect the data source.
|
void |
setWorkstationID(java.lang.String workstationID) |
Sets the name of the client computer name that is used to connect to the data source.
|
void |
setXopenStates(boolean xopenStates) |
Sets a Boolean value that indicates if converting SQL states to XOPEN compliant states is enabled.
|
java.lang.String |
toString() |
|
<T> T |
unwrap(java.lang.Class<T> iface) |
public SQLServerDataSource()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.sql.Connection getConnection()
throws SQLServerException
getConnection in interface javax.sql.DataSourceSQLServerExceptionpublic java.sql.Connection getConnection(java.lang.String username,
java.lang.String password)
throws SQLServerException
getConnection in interface javax.sql.DataSourceSQLServerExceptionpublic void setLoginTimeout(int loginTimeout)
setLoginTimeout in interface javax.sql.CommonDataSourcesetLoginTimeout in interface javax.sql.DataSourcepublic int getLoginTimeout()
getLoginTimeout in interface javax.sql.CommonDataSourcegetLoginTimeout in interface javax.sql.DataSourcepublic void setLogWriter(java.io.PrintWriter out)
setLogWriter in interface javax.sql.CommonDataSourcesetLogWriter in interface javax.sql.DataSourcepublic java.io.PrintWriter getLogWriter()
getLogWriter in interface javax.sql.CommonDataSourcegetLogWriter in interface javax.sql.DataSourcepublic java.util.logging.Logger getParentLogger()
throws java.sql.SQLFeatureNotSupportedException
getParentLogger in interface javax.sql.CommonDataSourcejava.sql.SQLFeatureNotSupportedExceptionpublic void setApplicationName(java.lang.String applicationName)
ISQLServerDataSourcesetApplicationName in interface ISQLServerDataSourceapplicationName - A String that contains the name of the application.public java.lang.String getApplicationName()
ISQLServerDataSourcegetApplicationName in interface ISQLServerDataSourcepublic void setDatabaseName(java.lang.String databaseName)
ISQLServerDataSourcesetDatabaseName in interface ISQLServerDataSourcedatabaseName - A String that contains the database name.public java.lang.String getDatabaseName()
ISQLServerDataSourcegetDatabaseName in interface ISQLServerDataSourcepublic void setInstanceName(java.lang.String instanceName)
ISQLServerDataSourcesetInstanceName in interface ISQLServerDataSourceinstanceName - A String that contains the instance name.public java.lang.String getInstanceName()
ISQLServerDataSourcegetInstanceName in interface ISQLServerDataSourcepublic void setIntegratedSecurity(boolean enable)
ISQLServerDataSourcesetIntegratedSecurity in interface ISQLServerDataSourceenable - true if integratedSecurity is enabled. Otherwise, false.public void setAuthenticationScheme(java.lang.String authenticationScheme)
ISQLServerDataSourcesetAuthenticationScheme in interface ISQLServerDataSourceauthenticationScheme - Values are "JavaKerberos" and the default "NativeAuthentication".public void setAuthentication(java.lang.String authentication)
ISQLServerDataSourcesetAuthentication in interface ISQLServerDataSourceauthentication - the authentication modepublic java.lang.String getAuthentication()
ISQLServerDataSourcegetAuthentication in interface ISQLServerDataSourcepublic void setGSSCredentials(org.ietf.jgss.GSSCredential userCredential)
ISQLServerDataSourcesetGSSCredentials in interface ISQLServerDataSourceuserCredential - the credentialpublic org.ietf.jgss.GSSCredential getGSSCredentials()
ISQLServerDataSourcegetGSSCredentials in interface ISQLServerDataSourcepublic void setAccessToken(java.lang.String accessToken)
ISQLServerDataSourcesetAccessToken in interface ISQLServerDataSourceaccessToken - to be set in the string property.public java.lang.String getAccessToken()
ISQLServerDataSourcegetAccessToken in interface ISQLServerDataSourcepublic void setColumnEncryptionSetting(java.lang.String columnEncryptionSetting)
ISQLServerDataSourcesetColumnEncryptionSetting in interface ISQLServerDataSourcecolumnEncryptionSetting - Enables/disables Always Encrypted functionality for the data source object. The default is Disabled.public java.lang.String getColumnEncryptionSetting()
ISQLServerDataSourcegetColumnEncryptionSetting in interface ISQLServerDataSourcepublic void setKeyStoreAuthentication(java.lang.String keyStoreAuthentication)
ISQLServerDataSourcesetKeyStoreAuthentication in interface ISQLServerDataSourcekeyStoreAuthentication - the name that identifies a key store.public java.lang.String getKeyStoreAuthentication()
ISQLServerDataSourcegetKeyStoreAuthentication in interface ISQLServerDataSourcepublic void setKeyStoreSecret(java.lang.String keyStoreSecret)
ISQLServerDataSourcesetKeyStoreSecret in interface ISQLServerDataSourcekeyStoreSecret - the password to use for the keystore as well as for the keypublic void setKeyStoreLocation(java.lang.String keyStoreLocation)
ISQLServerDataSourcesetKeyStoreLocation in interface ISQLServerDataSourcekeyStoreLocation - the location including the file name for the Java keystore.public java.lang.String getKeyStoreLocation()
ISQLServerDataSourcegetKeyStoreLocation in interface ISQLServerDataSourcepublic void setLastUpdateCount(boolean lastUpdateCount)
ISQLServerDataSourcesetLastUpdateCount in interface ISQLServerDataSourcelastUpdateCount - true if lastUpdateCount is enabled. Otherwise, false.public boolean getLastUpdateCount()
ISQLServerDataSourcegetLastUpdateCount in interface ISQLServerDataSourcepublic void setEncrypt(boolean encrypt)
ISQLServerDataSourcesetEncrypt in interface ISQLServerDataSourceencrypt - true if the Secure Sockets Layer (SSL) encryption is enabled between the client and the SQL Server. Otherwise, false.public boolean getEncrypt()
ISQLServerDataSourcegetEncrypt in interface ISQLServerDataSourcepublic void setTransparentNetworkIPResolution(boolean tnir)
ISQLServerDataSourcetransparentNetworkIPResolution is ignored if multiSubnetFailover is true
transparentNetworkIPResolution is ignored if database mirroring is used
transparentNetworkIPResolution is ignored if there are more than 64 IP addresses
setTransparentNetworkIPResolution in interface ISQLServerDataSourcetnir - if set to true, the driver attempts to connect to the first IP address available. It is true by default.public boolean getTransparentNetworkIPResolution()
ISQLServerDataSourcegetTransparentNetworkIPResolution in interface ISQLServerDataSourcepublic void setTrustServerCertificate(boolean e)
ISQLServerDataSourcesetTrustServerCertificate in interface ISQLServerDataSourcee - true, if the server Secure Sockets Layer (SSL) certificate should be automatically trusted when the communication layer is encrypted
using SSL. Otherwise, false.public boolean getTrustServerCertificate()
ISQLServerDataSourcegetTrustServerCertificate in interface ISQLServerDataSourcepublic void setTrustStoreType(java.lang.String trustStoreType)
ISQLServerDataSourcesetTrustStoreType in interface ISQLServerDataSourcetrustStoreType - A String that contains the trust store typepublic java.lang.String getTrustStoreType()
ISQLServerDataSourcegetTrustStoreType in interface ISQLServerDataSourcepublic void setTrustStore(java.lang.String trustStore)
ISQLServerDataSourcesetTrustStore in interface ISQLServerDataSourcetrustStore - A String that contains the path (including file name) to the certificate trustStore file.public java.lang.String getTrustStore()
ISQLServerDataSourcegetTrustStore in interface ISQLServerDataSourcepublic void setTrustStorePassword(java.lang.String trustStorePassword)
ISQLServerDataSourcesetTrustStorePassword in interface ISQLServerDataSourcetrustStorePassword - A String that contains the password that is used to check the integrity of the trustStore data.public void setHostNameInCertificate(java.lang.String hostName)
ISQLServerDataSourcesetHostNameInCertificate in interface ISQLServerDataSourcehostName - A String that contains the host name.public java.lang.String getHostNameInCertificate()
ISQLServerDataSourcegetHostNameInCertificate in interface ISQLServerDataSourcepublic void setLockTimeout(int lockTimeout)
ISQLServerDataSourcesetLockTimeout in interface ISQLServerDataSourcelockTimeout - An int value that contains the number of milliseconds to wait.public int getLockTimeout()
ISQLServerDataSourcegetLockTimeout in interface ISQLServerDataSourcepublic void setPassword(java.lang.String password)
ISQLServerDataSourcesetPassword in interface ISQLServerDataSourcepassword - A String that contains the password.public void setPortNumber(int portNumber)
ISQLServerDataSourcesetPortNumber in interface ISQLServerDataSourceportNumber - An int value that contains the port number.public int getPortNumber()
ISQLServerDataSourcegetPortNumber in interface ISQLServerDataSourcepublic void setSelectMethod(java.lang.String selectMethod)
ISQLServerDataSourcesetSelectMethod in interface ISQLServerDataSourceselectMethod - A String value that contains the default cursor type.public java.lang.String getSelectMethod()
ISQLServerDataSourcegetSelectMethod in interface ISQLServerDataSourcepublic void setResponseBuffering(java.lang.String bufferingMode)
ISQLServerDataSourcesetResponseBuffering in interface ISQLServerDataSourcebufferingMode - A String that contains the buffering and streaming mode. The valid mode can be one of the following case-insensitive Strings: full
or adaptive.public java.lang.String getResponseBuffering()
ISQLServerDataSourcegetResponseBuffering in interface ISQLServerDataSourcepublic void setApplicationIntent(java.lang.String applicationIntent)
ISQLServerDataSourcesetApplicationIntent in interface ISQLServerDataSourceapplicationIntent - A String that contains the application intent.public java.lang.String getApplicationIntent()
ISQLServerDataSourcegetApplicationIntent in interface ISQLServerDataSourcepublic void setSendTimeAsDatetime(boolean sendTimeAsDatetime)
ISQLServerDataSourcesetSendTimeAsDatetime in interface ISQLServerDataSourcesendTimeAsDatetime - A Boolean value. When true, causes java.sql.Time values to be sent to the server as SQL Server datetime types. When false, causes
java.sql.Time values to be sent to the server as SQL Server time types.public boolean getSendTimeAsDatetime()
ISQLServerDataSourcegetSendTimeAsDatetime in interface ISQLServerDataSourcepublic void setSendStringParametersAsUnicode(boolean sendStringParametersAsUnicode)
ISQLServerDataSourcesetSendStringParametersAsUnicode in interface ISQLServerDataSourcesendStringParametersAsUnicode - true if string parameters are sent to the server in UNICODE format. Otherwise, false.public boolean getSendStringParametersAsUnicode()
ISQLServerDataSourcegetSendStringParametersAsUnicode in interface ISQLServerDataSourcepublic void setServerNameAsACE(boolean serverNameAsACE)
ISQLServerDataSourcesetServerNameAsACE in interface ISQLServerDataSourceserverNameAsACE - if enabled the servername will be translated to ASCII Compatible Encoding (ACE)public boolean getServerNameAsACE()
ISQLServerDataSourcegetServerNameAsACE in interface ISQLServerDataSourcepublic void setServerName(java.lang.String serverName)
ISQLServerDataSourcesetServerName in interface ISQLServerDataSourceserverName - A String that contains the server name.public java.lang.String getServerName()
ISQLServerDataSourcegetServerName in interface ISQLServerDataSourcepublic void setServerSpn(java.lang.String serverSpn)
ISQLServerDataSourcesetServerSpn in interface ISQLServerDataSourceserverSpn - A String that contains the server spnpublic java.lang.String getServerSpn()
ISQLServerDataSourcegetServerSpn in interface ISQLServerDataSourcepublic void setFailoverPartner(java.lang.String serverName)
ISQLServerDataSourcesetFailoverPartner in interface ISQLServerDataSourceserverName - A String that contains the failover server name.public java.lang.String getFailoverPartner()
ISQLServerDataSourcegetFailoverPartner in interface ISQLServerDataSourcepublic void setMultiSubnetFailover(boolean multiSubnetFailover)
ISQLServerDataSourcesetMultiSubnetFailover in interface ISQLServerDataSourcemultiSubnetFailover - The new value of the multiSubnetFailover connection property.public boolean getMultiSubnetFailover()
ISQLServerDataSourcegetMultiSubnetFailover in interface ISQLServerDataSourcepublic void setUser(java.lang.String user)
ISQLServerDataSourcesetUser in interface ISQLServerDataSourceuser - A String that contains the user name.public java.lang.String getUser()
ISQLServerDataSourcegetUser in interface ISQLServerDataSourcepublic void setWorkstationID(java.lang.String workstationID)
ISQLServerDataSourcesetWorkstationID in interface ISQLServerDataSourceworkstationID - A String that contains the client computer name.public java.lang.String getWorkstationID()
ISQLServerDataSourcegetWorkstationID in interface ISQLServerDataSourcepublic void setXopenStates(boolean xopenStates)
ISQLServerDataSourcesetXopenStates in interface ISQLServerDataSourcexopenStates - true if converting SQL states to XOPEN compliant states is enabled. Otherwise, false.public boolean getXopenStates()
ISQLServerDataSourcegetXopenStates in interface ISQLServerDataSourcepublic void setFIPS(boolean fips)
ISQLServerDataSourcesetFIPS in interface ISQLServerDataSourcefips - Boolean property to enable/disable fipspublic boolean getFIPS()
ISQLServerDataSourcegetFIPS in interface ISQLServerDataSourcepublic void setSSLProtocol(java.lang.String sslProtocol)
ISQLServerDataSourcesetSSLProtocol in interface ISQLServerDataSourcesslProtocol - Value for SSL Protocol to be set.public java.lang.String getSSLProtocol()
ISQLServerDataSourcegetSSLProtocol in interface ISQLServerDataSourcepublic void setTrustManagerClass(java.lang.String trustManagerClass)
ISQLServerDataSourcesetTrustManagerClass in interface ISQLServerDataSourcetrustManagerClass - The fully qualified class name of a custom javax.net.ssl.TrustManager.public java.lang.String getTrustManagerClass()
ISQLServerDataSourcegetTrustManagerClass in interface ISQLServerDataSourcepublic void setTrustManagerConstructorArg(java.lang.String trustManagerConstructorArg)
ISQLServerDataSourcesetTrustManagerConstructorArg in interface ISQLServerDataSourcetrustManagerConstructorArg - 'trustManagerClass' constructor argumentspublic java.lang.String getTrustManagerConstructorArg()
ISQLServerDataSourcegetTrustManagerConstructorArg in interface ISQLServerDataSourcepublic void setURL(java.lang.String url)
ISQLServerDataSourcesetURL in interface ISQLServerDataSourceurl - A String that contains the URL.public java.lang.String getURL()
ISQLServerDataSourcegetURL in interface ISQLServerDataSourcepublic void setDescription(java.lang.String description)
ISQLServerDataSourcesetDescription in interface ISQLServerDataSourcedescription - A String that contains the description.public java.lang.String getDescription()
ISQLServerDataSourcegetDescription in interface ISQLServerDataSourcepublic void setPacketSize(int packetSize)
ISQLServerDataSourcesetPacketSize in interface ISQLServerDataSourcepacketSize - An int value containing the network packet size.public int getPacketSize()
ISQLServerDataSourcegetPacketSize in interface ISQLServerDataSourcepublic void setQueryTimeout(int queryTimeout)
ISQLServerDataSourcesetQueryTimeout in interface ISQLServerDataSourcequeryTimeout - The number of seconds to wait before a timeout has occurred on a query. The default value is 0, which means infinite timeout.public int getQueryTimeout()
ISQLServerDataSourcegetQueryTimeout in interface ISQLServerDataSourcepublic void setCancelQueryTimeout(int cancelQueryTimeout)
ISQLServerDataSourcesetCancelQueryTimeout in interface ISQLServerDataSourcecancelQueryTimeout - The number of seconds to wait before we wait for the query timeout to happen.public int getCancelQueryTimeout()
ISQLServerDataSourcegetCancelQueryTimeout in interface ISQLServerDataSourcepublic void setEnablePrepareOnFirstPreparedStatementCall(boolean enablePrepareOnFirstPreparedStatementCall)
ISQLServerDataSourcesetEnablePrepareOnFirstPreparedStatementCall in interface ISQLServerDataSourceenablePrepareOnFirstPreparedStatementCall - Changes the setting per the description.public boolean getEnablePrepareOnFirstPreparedStatementCall()
ISQLServerDataSourcegetEnablePrepareOnFirstPreparedStatementCall in interface ISQLServerDataSourcepublic void setServerPreparedStatementDiscardThreshold(int serverPreparedStatementDiscardThreshold)
ISQLServerDataSourcesetServerPreparedStatementDiscardThreshold in interface ISQLServerDataSourceserverPreparedStatementDiscardThreshold - Changes the setting per the description.public int getServerPreparedStatementDiscardThreshold()
ISQLServerDataSourcegetServerPreparedStatementDiscardThreshold in interface ISQLServerDataSourcepublic void setStatementPoolingCacheSize(int statementPoolingCacheSize)
ISQLServerDataSourcesetStatementPoolingCacheSize in interface ISQLServerDataSourcestatementPoolingCacheSize - Changes the setting per the description.public int getStatementPoolingCacheSize()
ISQLServerDataSourcegetStatementPoolingCacheSize in interface ISQLServerDataSourcepublic void setDisableStatementPooling(boolean disableStatementPooling)
ISQLServerDataSourcesetDisableStatementPooling in interface ISQLServerDataSourcedisableStatementPooling - true to disable statement pooling, false to enable it.public boolean getDisableStatementPooling()
ISQLServerDataSourcegetDisableStatementPooling in interface ISQLServerDataSourcepublic void setSocketTimeout(int socketTimeout)
ISQLServerDataSourcesetSocketTimeout in interface ISQLServerDataSourcesocketTimeout - The number of milliseconds to wait before a timeout is occurred on a socket read or accept. The default value is 0, which means
infinite timeout.public int getSocketTimeout()
ISQLServerDataSourcegetSocketTimeout in interface ISQLServerDataSourcepublic void setUseBulkCopyForBatchInsert(boolean useBulkCopyForBatchInsert)
ISQLServerDataSourcesetUseBulkCopyForBatchInsert in interface ISQLServerDataSourceuseBulkCopyForBatchInsert - indicates whether Bulk Copy API should be used for Batch Insert operations.public boolean getUseBulkCopyForBatchInsert()
ISQLServerDataSourcegetUseBulkCopyForBatchInsert in interface ISQLServerDataSourcepublic void setJASSConfigurationName(java.lang.String configurationName)
ISQLServerDataSourcesetJASSConfigurationName in interface ISQLServerDataSourceconfigurationName - the configuration namepublic java.lang.String getJASSConfigurationName()
ISQLServerDataSourcegetJASSConfigurationName in interface ISQLServerDataSourcepublic javax.naming.Reference getReference()
getReference in interface javax.naming.Referenceablepublic boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
isWrapperFor in interface java.sql.Wrapperjava.sql.SQLExceptionpublic <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
unwrap in interface java.sql.Wrapperjava.sql.SQLExceptionCopyright © 2018 Microsoft Corporation. All rights reserved.