ISQLServerDataSource Interface
Implements
public interface ISQLServerDataSource
extends javax.sql.CommonDataSource
Provides a factory to create connections to the data source represented by this object. This interface was added in SQL Server JDBC Driver 3.0. This interface is implemented by SQLServerDataSource Class.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| abstract java.lang.String |
getAADSecurePrincipalId()
Deprecated
Use getUser() instead
Returns the value for the connection property 'AADSecure |
| abstract java.lang.String |
getAccessToken()
Returns the access token. |
|
abstract
SQLServer |
getAccessTokenCallback()
Returns a SQLServerAccessTokenCallback, the access token callback delegate. |
| abstract java.lang.String |
getAccessTokenCallbackClass()
Returns the fully qualified class name of the implementing class for SQLServerAccessTokenCallback. |
| abstract java.lang.String |
getApplicationIntent()
Returns the application intent. |
| abstract java.lang.String |
getApplicationName()
Returns the application name. |
| abstract java.lang.String |
getAuthentication()
Returns the authentication mode. |
| abstract boolean |
getCalcBigDecimalPrecision()
Sets the value for 'calc |
| abstract int |
getCancelQueryTimeout()
Returns the cancel timeout. |
| abstract java.lang.String |
getClientCertificate()
Returns client certificate path for client certificate authentication. |
| abstract java.lang.String |
getClientKey()
Returns Private key file path for client certificate authentication. |
| abstract java.lang.String |
getColumnEncryptionSetting()
Returns the Always Encrypted functionality setting for the data source object. |
| abstract int |
getConnectRetryCount()
Returns the maximum number of attempts set to reestablish a broken connection. |
| abstract int |
getConnectRetryInterval()
Returns the interval set, in seconds, between attempts to reestablish a broken connection. |
| abstract java.lang.String |
getDatabaseName()
Returns the database name. |
| abstract java.lang.String |
getDatetimeParameterType()
Returns the value of the datetime |
| abstract boolean |
getDelayLoadingLobs()
Returns the current flag value for delay |
| abstract java.lang.String |
getDescription()
Returns a description of the data source. |
| abstract boolean |
getDisableStatementPooling()
Returns whether statement pooling is disabled. |
| abstract java.lang.String |
getDomain()
Returns the value for the connection property 'domain'. |
| abstract boolean |
getEnablePrepareOnFirstPreparedStatementCall()
Returns the value that indicates whether the first execution of a prepared statement will call sp_executesql and not prepare a statement. |
| abstract java.lang.String |
getEnclaveAttestationProtocol()
Returns the enclave attestation protocol used in Always Encrypted with Secure Enclaves. |
| abstract java.lang.String |
getEnclaveAttestationUrl()
Returns the enclave attestation URL used in Always Encrypted with Secure Enclaves. |
| abstract java.lang.String |
getEncrypt()
Returns the TLS encryption option. |
| abstract boolean |
getFIPS()
Returns the value of connection property "fips". |
| abstract java.lang.String |
getFailoverPartner()
Returns the name of the failover server that is used in a database mirroring configuration. |
| abstract org.ietf.jgss.GSSCredential |
getGSSCredentials()
Returns the GSSCredential. |
| abstract java.lang.String |
getHostNameInCertificate()
Returns the host name used in validating the SQL Server Secure Sockets Layer (SSL) certificate. |
| abstract java.lang.String |
getIPAddressPreference()
Gets the name of the preferred type of IP Address. |
| abstract java.lang.String |
getInstanceName()
Returns the SQL Server instance name. |
| abstract java.lang.String |
getJAASConfigurationName()
Returns the login configuration name for Kerberos authentication. |
| abstract java.lang.String |
getJASSConfigurationName()
Deprecated
Use getJAASConfigurationName() instead
Returns the login configuration name for Kerberos authentication. |
| abstract java.lang.String |
getKeyStoreAuthentication()
Returns the value of the key |
| abstract java.lang.String |
getKeyStoreLocation()
Returns the key |
| abstract java.lang.String |
getKeyStorePrincipalId()
Returns the value for the connection property 'key |
| abstract java.lang.String |
getKeyVaultProviderClientId()
Returns the value for the connection property 'key |
| abstract boolean |
getLastUpdateCount()
Returns a Boolean value that indicates if the last |
| abstract int |
getLockTimeout()
Returns an int value that indicates the number of milliseconds that the database will wait before reporting a lock time out. |
| abstract java.lang.String |
getMSIClientId()
Deprecated
Use getUser() instead.
Returns the value for the connection property 'msi |
| abstract java.lang.String |
getMaxResultBuffer()
Returns value of 'max |
| abstract int |
getMsiTokenCacheTtl()
Deprecated Time-to-live is no longer supported for the cached Managed Identity tokens. |
| abstract boolean |
getMultiSubnetFailover()
Returns the value of the multi |
| abstract int |
getPacketSize()
Returns the current network packet size used to communicate with SQL Server, specified in bytes. |
| abstract int |
getPortNumber()
Returns the current port number that is used to communicate with SQL Server. |
| abstract java.lang.String |
getPrepareMethod()
Returns the value indicating the prepare method. |
| abstract int |
getQueryTimeout()
Returns the query timeout. |
| abstract java.lang.String |
getRealm()
Returns the realm for Kerberos authentication. |
| abstract boolean |
getReplication()
Returns the value of the replication connection property. |
| abstract java.lang.String |
getResponseBuffering()
Returns the response buffering mode for this SQLServer |
| abstract java.lang.String |
getSSLProtocol()
Returns the value of connection property 'ssl |
| abstract java.lang.String |
getSelectMethod()
Returns the default cursor type used for all result sets that are created by using this SQLServer |
| abstract boolean |
getSendStringParametersAsUnicode()
Returns whether sending string parameters to the server in UNICODE format is enabled. |
| abstract boolean |
getSendTemporalDataTypesAsStringForBulkCopy()
Returns the current flag for value send |
| abstract boolean |
getSendTimeAsDatetime()
Returns the value of the send |
| abstract java.lang.String |
getServerCertificate()
Returns the path to the server certificate. |
| abstract java.lang.String |
getServerName()
Returns the name of the SQL Server instance. |
| abstract boolean |
getServerNameAsACE()
Returns if the server |
| abstract int |
getServerPreparedStatementDiscardThreshold()
Returns the value of the setting that 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. |
| abstract java.lang.String |
getServerSpn()
Returns the server spn. |
| abstract java.lang.String |
getSocketFactoryClass()
Returns the value for the connection property 'socket |
| abstract java.lang.String |
getSocketFactoryConstructorArg()
Returns the value for the connection property 'socket |
| abstract int |
getSocketTimeout()
Returns the socket timeout value. |
| abstract int |
getStatementPoolingCacheSize()
Returns the size of the prepared statement cache for this connection. |
| abstract boolean |
getTransparentNetworkIPResolution()
Returns the Transparent |
| abstract java.lang.String |
getTrustManagerClass()
Returns the value for the connection property 'trust |
| abstract java.lang.String |
getTrustManagerConstructorArg()
Returns the value for the connection property 'trust |
| abstract boolean |
getTrustServerCertificate()
Returns a boolean value that indicates if the trust |
| abstract java.lang.String |
getTrustStore()
Returns the path (including file name) to the certificate trust |
| abstract java.lang.String |
getTrustStoreType()
Returns the key |
| abstract java.lang.String |
getURL()
Returns the URL that is used to connect to the data source. |
| abstract boolean |
getUseBulkCopyForBatchInsert()
Returns whether the use Bulk Copy API is used for Batch Insert. |
| abstract boolean |
getUseDefaultGSSCredential()
Returns the use |
| abstract boolean |
getUseDefaultJaasConfig()
Returns whether the default JAAS Configuration should be used |
| abstract boolean |
getUseFlexibleCallableStatements()
Returns whether or not sp_sproc_columns is being used for parameter name lookup. |
| abstract boolean |
getUseFmtOnly()
Returns the current flag value for use |
| abstract java.lang.String |
getUser()
Returns the user name that is used to connect the data source. |
| abstract java.lang.String |
getWorkstationID()
Returns the name of the client computer name that is used to connect to the data source. |
| abstract boolean |
getXopenStates()
Returns the value that indicates if converting SQL states to XOPEN compliant states is enabled. |
| abstract boolean |
getcacheBulkCopyMetadata()
Sets the value for 'cache |
| abstract void |
setAADSecurePrincipalId(String aadSecurePrincipalId)
Deprecated
Use setUser(String user) instead
Sets the 'AADSecure |
| abstract void |
setAADSecurePrincipalSecret(String aadSecurePrincipalSecret)
Deprecated
Use setPassword(String password) instead
Sets the 'AADSecure |
| abstract void |
setAccessToken(String accessToken)
Sets the access token. |
| abstract void |
setAccessTokenCallback(SQLServerAccessTokenCallback accessTokenCallback)
Sets the SQLServerAccessTokenCallback delegate. |
| abstract void |
setAccessTokenCallbackClass(String accessTokenCallbackClass)
Sets 'access |
| abstract void |
setApplicationIntent(String applicationIntent)
Sets the application intent. |
| abstract void |
setApplicationName(String applicationName)
Sets the application name. |
| abstract void |
setAuthentication(String authentication)
Sets the authentication mode. |
| abstract void |
setAuthenticationScheme(String authenticationScheme)
Sets the kind of integrated security you want your application to use. |
| abstract void |
setCalcBigDecimalPrecision(boolean calcBigDecimalPrecision)
Returns value of 'calc |
| abstract void |
setCancelQueryTimeout(int cancelQueryTimeout)
Sets the cancel timeout. |
| abstract void |
setClientCertificate(String certPath)
Sets client certificate path for client certificate authentication. |
| abstract void |
setClientKey(String keyPath)
Sets Private key file path for client certificate authentication. |
| abstract void |
setClientKeyPassword(String password)
Sets the password to be used for Private key provided by the user for client certificate authentication. |
| abstract void |
setColumnEncryptionSetting(String columnEncryptionSetting)
Sets the value to enable/disable Always Encrypted functionality for the data source object. |
| abstract void |
setConnectRetryCount(int connectRetryCount)
Sets the maximum number of attempts to reestablish a broken connection. |
| abstract void |
setConnectRetryInterval(int connectRetryInterval)
Sets the interval, in seconds, between attempts to reestablish a broken connection. |
| abstract void |
setDatabaseName(String databaseName)
Sets the database name to connect to. |
| abstract void |
setDatetimeParameterType(String datetimeParameterType)
Sets the SQL server datatype to use for Java datetime and timestamp values. |
| abstract void |
setDelayLoadingLobs(boolean delayLoadingLobs)
Specifies the flag to load LOBs instead of streaming them. |
| abstract void |
setDescription(String description)
Sets the description of the data source. |
| abstract void |
setDisableStatementPooling(boolean disableStatementPooling)
Sets the value to disable/enable statement pooling. |
| abstract void |
setDomain(String domain)
Sets the 'domain' connection property used for NTLM Authentication. |
| abstract void |
setEnablePrepareOnFirstPreparedStatementCall(boolean enablePrepareOnFirstPreparedStatementCall)
Sets the value that enables/disables whether the first execution of a prepared statement will call sp_executesql and not prepare a statement. |
| abstract void |
setEnclaveAttestationProtocol(String protocol)
Sets the enclave attestation protocol to be used in Always Encrypted with Secure Enclaves. |
| abstract void |
setEnclaveAttestationUrl(String url)
Sets the enclave attestation URL used in Always Encrypted with Secure Enclaves. |
| abstract void |
setEncrypt(boolean encryptOption)
Deprecated
Use setEncrypt(String encryptOption) instead
Sets the option whether TLS encryption is used. |
| abstract void |
setEncrypt(String encryptOption)
Sets the option whether TLS encryption is used. |
| abstract void |
setFIPS(boolean fips)
Sets whether Fips Mode should be enabled/disabled on the connection. |
| abstract void |
setFailoverPartner(String serverName)
Sets the name of the failover server that is used in a database mirroring configuration. |
| abstract void |
setGSSCredentials(GSSCredential userCredential)
Sets the GSSCredential. |
| abstract void |
setHostNameInCertificate(String hostName)
Sets the host name to be used in validating the SQL Server Secure Sockets Layer (SSL) certificate. |
| abstract void |
setIPAddressPreference(String iPAddressPreference)
Sets the name of the preferred type of IP Address. |
| abstract void |
setInstanceName(String instanceName)
Sets the SQL Server instance name. |
| abstract void |
setIntegratedSecurity(boolean enable)
Sets a Boolean value that indicates if the integrated |
| abstract void |
setJAASConfigurationName(String configurationName)
Sets the login configuration name for Kerberos authentication. |
| abstract void |
setJASSConfigurationName(String configurationName)
Deprecated Sets the login configuration name for Kerberos authentication. |
| abstract void |
setKeyStoreAuthentication(String keyStoreAuthentication)
Sets the name that identifies a key store. |
| abstract void |
setKeyStoreLocation(String keyStoreLocation)
Sets the location including the file name for the Java keystore. |
| abstract void |
setKeyStorePrincipalId(String keyStorePrincipalId)
Sets the value for the connection property 'key |
| abstract void |
setKeyStoreSecret(String keyStoreSecret)
Sets the password for the Java keystore. |
| abstract void |
setKeyVaultProviderClientId(String keyVaultProviderClientId)
Sets the Azure Key Vault (AKV) Provider Client Id to provided value to be used for column encryption. |
| abstract void |
setKeyVaultProviderClientKey(String keyVaultProviderClientKey)
Sets the Azure Key Vault (AKV) Provider Client Key to provided value to be used for column encryption. |
| abstract void |
setLastUpdateCount(boolean lastUpdateCount)
Sets a Boolean value that indicates if the last |
| abstract void |
setLockTimeout(int lockTimeout)
Sets an int value that indicates the number of milliseconds to wait before the database reports a lock time out. |
| abstract void |
setMSIClientId(String managedIdentityClientId)
Deprecated
Use setUser(String user) instead.
Sets the client id to be used to retrieve the access token for a user-assigned Managed Identity. |
| abstract void |
setMaxResultBuffer(String maxResultBuffer)
Sets the value for 'max |
| abstract void |
setMsiTokenCacheTtl(int timeToLive)
Deprecated Time-to-live is no longer supported for the cached Managed Identity tokens. |
| abstract void |
setMultiSubnetFailover(boolean multiSubnetFailover)
Sets the value of the multi |
| abstract void |
setPacketSize(int packetSize)
Sets the current network packet size used to communicate with SQL Server, specified in bytes. |
| abstract void |
setPassword(String password)
Sets the password that will be used to connect to SQL Server. |
| abstract void |
setPortNumber(int portNumber)
Sets the port number to be used to communicate with SQL Server. |
| abstract void |
setPrepareMethod(String prepareMethod)
Sets the behavior for the prepare method. |
| abstract void |
setQueryTimeout(int queryTimeout)
Setting the query timeout. |
| abstract void |
setRealm(String realm)
Sets the realm for Kerberos authentication. |
| abstract void |
setReplication(boolean replication)
Sets the value to enable/disable the replication connection property. |
| abstract void |
setResponseBuffering(String bufferingMode)
Sets the response buffering mode for connections created by using this SQLServer |
| abstract void |
setSSLProtocol(String sslProtocol)
Sets the ssl |
| abstract void |
setSelectMethod(String selectMethod)
Sets the default cursor type that is used for all result sets that are created by using this SQLServer |
| abstract void |
setSendStringParametersAsUnicode(boolean sendStringParametersAsUnicode)
Sets a boolean value that indicates if sending string parameters to the server in UNICODE format is enabled. |
| abstract void |
setSendTemporalDataTypesAsStringForBulkCopy(boolean sendTemporalDataTypesAsStringForBulkCopy)
Specifies the flag to send temporal datatypes as String for Bulk Copy. |
| abstract void |
setSendTimeAsDatetime(boolean sendTimeAsDatetime)
Sets the value to enable/disable the send |
| abstract void |
setServerCertificate(String cert)
Sets the connection property 'server |
| abstract void |
setServerName(String serverName)
Sets the name of the computer that is running SQL Server. |
| abstract void |
setServerNameAsACE(boolean serverNameAsACE)
Sets whether the server |
| abstract void |
setServerPreparedStatementDiscardThreshold(int serverPreparedStatementDiscardThreshold)
Sets the value that 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. |
| abstract void |
setServerSpn(String serverSpn)
Sets the server spn. |
| abstract void |
setSocketFactoryClass(String socketFactoryClass)
Sets the connection property 'socket |
| abstract void |
setSocketFactoryConstructorArg(String socketFactoryConstructorArg)
Sets Constructor Arguments to be provided on constructor of 'socket |
| abstract void |
setSocketTimeout(int socketTimeout)
Sets the socket timeout value. |
| abstract void |
setStatementPoolingCacheSize(int statementPoolingCacheSize)
Sets the size of the prepared statement cache for this connection. |
| abstract void |
setTransparentNetworkIPResolution(boolean tnir)
Sets the value to enable/disable Transparent Network IP Resolution (TNIR). |
| abstract void |
setTrustManagerClass(String trustManagerClass)
Sets the connection property 'trust |
| abstract void |
setTrustManagerConstructorArg(String trustManagerConstructorArg)
Sets Constructor Arguments to be provided on constructor of 'trust |
| abstract void |
setTrustServerCertificate(boolean e)
Sets a boolean value that indicates if the trust |
| abstract void |
setTrustStore(String trustStore)
Sets the path (including file name) to the certificate trust |
| abstract void |
setTrustStorePassword(String trustStorePassword)
Sets the password that is used to check the integrity of the trust |
| abstract void |
setTrustStoreType(String trustStoreType)
Sets the keystore type for the trust |
| abstract void |
setURL(String url)
Sets the URL that is used to connect to the data source. |
| abstract void |
setUseBulkCopyForBatchInsert(boolean useBulkCopyForBatchInsert)
Sets whether the use Bulk Copy API should be used for Batch Insert. |
| abstract void |
setUseDefaultGSSCredential(boolean enable)
Sets the value to indicate whether use |
| abstract void |
setUseDefaultJaasConfig(boolean useDefaultJaasConfig)
Sets whether the default JAAS Configuration will be used. |
| abstract void |
setUseFlexibleCallableStatements(boolean useFlexibleCallableStatements)
Sets whether or not sp_sproc_columns will be used for parameter name lookup. |
| abstract void |
setUseFmtOnly(boolean useFmtOnly)
Specifies the flag to use FMTONLY for parameter metadata queries. |
| abstract void |
setUser(String user)
Sets the user name that is used to connect the data source. |
| abstract void |
setWorkstationID(String workstationID)
Sets the name of the client computer name that is used to connect to the data source. |
| abstract void |
setXopenStates(boolean xopenStates)
Sets whether converting SQL states to XOPEN compliant states is enabled. |
| abstract void |
setcacheBulkCopyMetadata(boolean cacheBulkCopyMetadata)
Returns value of 'cache |
Method Details
getAADSecurePrincipalId
(=9.4.1,=true)
public abstract String getAADSecurePrincipalId()
Deprecated
Returns the value for the connection property 'AADSecurePrincipalId'.
Returns:
getAccessToken
public abstract String getAccessToken()
Returns the access token.
Returns:
getAccessTokenCallback
public abstract SQLServerAccessTokenCallback getAccessTokenCallback()
Returns a SQLServerAccessTokenCallback, the access token callback delegate.
Returns:
getAccessTokenCallbackClass
public abstract String getAccessTokenCallbackClass()
Returns the fully qualified class name of the implementing class for SQLServerAccessTokenCallback.
Returns:
getApplicationIntent
public abstract String getApplicationIntent()
Returns the application intent.
Returns:
getApplicationName
public abstract String getApplicationName()
Returns the application name.
Returns:
getAuthentication
public abstract String getAuthentication()
Returns the authentication mode.
Returns:
getCalcBigDecimalPrecision
public abstract boolean getCalcBigDecimalPrecision()
Sets the value for 'calcBigDecimalPrecision' property
Returns:
getCancelQueryTimeout
public abstract int getCancelQueryTimeout()
Returns the cancel timeout.
Returns:
getClientCertificate
public abstract String getClientCertificate()
Returns client certificate path for client certificate authentication.
Returns:
getClientKey
public abstract String getClientKey()
Returns Private key file path for client certificate authentication.
Returns:
getColumnEncryptionSetting
public abstract String getColumnEncryptionSetting()
Returns the Always Encrypted functionality setting for the data source object.
Returns:
getConnectRetryCount
public abstract int getConnectRetryCount()
Returns the maximum number of attempts set to reestablish a broken connection.
Returns:
getConnectRetryInterval
public abstract int getConnectRetryInterval()
Returns the interval set, in seconds, between attempts to reestablish a broken connection.
Returns:
getDatabaseName
public abstract String getDatabaseName()
Returns the database name.
Returns:
getDatetimeParameterType
public abstract String getDatetimeParameterType()
Returns the value of the datetimeParameterType connection property. This method was added in SQL Server JDBC Driver 12.2. Returns the setting of the datetimeParameterType connection property.
Returns:
getDelayLoadingLobs
public abstract boolean getDelayLoadingLobs()
Returns the current flag value for delayLoadingLobs.
Returns:
getDescription
public abstract String getDescription()
Returns a description of the data source.
Returns:
getDisableStatementPooling
public abstract boolean getDisableStatementPooling()
Returns whether statement pooling is disabled.
Returns:
getDomain
public abstract String getDomain()
Returns the value for the connection property 'domain'.
Returns:
getEnablePrepareOnFirstPreparedStatementCall
public abstract boolean getEnablePrepareOnFirstPreparedStatementCall()
Returns the value that indicates whether the first execution of a prepared statement will call sp_executesql and not prepare a statement. 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. Following executions will call sp_execute. This relieves the need for sp_unprepare on prepared statement close if the statement is only executed once.
Returns:
getEnclaveAttestationProtocol
public abstract String getEnclaveAttestationProtocol()
Returns the enclave attestation protocol used in Always Encrypted with Secure Enclaves.
Returns:
getEnclaveAttestationUrl
public abstract String getEnclaveAttestationUrl()
Returns the enclave attestation URL used in Always Encrypted with Secure Enclaves.
Returns:
getEncrypt
public abstract String getEncrypt()
Returns the TLS encryption option.
Returns:
getFIPS
public abstract boolean getFIPS()
Returns the value of connection property "fips". For FIPS enabled JVM this property should be true.
Returns:
getFailoverPartner
public abstract String getFailoverPartner()
Returns the name of the failover server that is used in a database mirroring configuration.
Returns:
getGSSCredentials
public abstract GSSCredential getGSSCredentials()
Returns the GSSCredential.
Returns:
getHostNameInCertificate
public abstract String getHostNameInCertificate()
Returns the host name used in validating the SQL Server Secure Sockets Layer (SSL) certificate.
Returns:
getIPAddressPreference
public abstract String getIPAddressPreference()
Gets the name of the preferred type of IP Address.
Returns:
getInstanceName
public abstract String getInstanceName()
Returns the SQL Server instance name.
Returns:
getJAASConfigurationName
public abstract String getJAASConfigurationName()
Returns the login configuration name for Kerberos authentication.
Returns:
getJASSConfigurationName
(=9.3.0,=true)
public abstract String getJASSConfigurationName()
Deprecated
Returns the login configuration name for Kerberos authentication.
Returns:
getKeyStoreAuthentication
public abstract String getKeyStoreAuthentication()
Returns the value of the keyStoreAuthentication setting for the data source object.
Returns:
getKeyStoreLocation
public abstract String getKeyStoreLocation()
Returns the keyStoreLocation for the Java Key Store.
Returns:
getKeyStorePrincipalId
public abstract String getKeyStorePrincipalId()
Returns the value for the connection property 'keyStorePrincipalId'.
Returns:
getKeyVaultProviderClientId
public abstract String getKeyVaultProviderClientId()
Returns the value for the connection property 'keyVaultProviderClientId'.
Returns:
getLastUpdateCount
public abstract boolean getLastUpdateCount()
Returns a Boolean value that indicates if the lastUpdateCount property is enabled.
Returns:
getLockTimeout
public abstract int getLockTimeout()
Returns an int value that indicates the number of milliseconds that the database will wait before reporting a lock time out.
Returns:
getMSIClientId
(=12.1.0,=true)
public abstract String getMSIClientId()
Deprecated
Returns the value for the connection property 'msiClientId'.
Returns:
getMaxResultBuffer
public abstract String getMaxResultBuffer()
Returns value of 'maxResultBuffer' from Connection String.
Returns:
getMsiTokenCacheTtl
(=12.1.0,=true)
public abstract int getMsiTokenCacheTtl()
Deprecated
Time-to-live is no longer supported for the cached Managed Identity tokens. This method will always return 0 and is for backwards compatibility only.
Returns:
getMultiSubnetFailover
public abstract boolean getMultiSubnetFailover()
Returns the value of the multiSubnetFailover connection property.
Returns:
getPacketSize
public abstract int getPacketSize()
Returns the current network packet size used to communicate with SQL Server, specified in bytes.
Returns:
getPortNumber
public abstract int getPortNumber()
Returns the current port number that is used to communicate with SQL Server.
Returns:
getPrepareMethod
public abstract String getPrepareMethod()
Returns the value indicating the prepare method. PrepareMethod
Returns:
getQueryTimeout
public abstract int getQueryTimeout()
Returns the query timeout.
Returns:
getRealm
public abstract String getRealm()
Returns the realm for Kerberos authentication.
Returns:
getReplication
public abstract boolean getReplication()
Returns the value of the replication connection property.
Returns:
getResponseBuffering
public abstract String getResponseBuffering()
Returns the response buffering mode for this SQLServerDataSource object.
Returns:
getSSLProtocol
public abstract String getSSLProtocol()
Returns the value of connection property 'sslProtocol'.
Returns:
getSelectMethod
public abstract String getSelectMethod()
Returns the default cursor type used for all result sets that are created by using this SQLServerDataSource object.
Returns:
getSendStringParametersAsUnicode
public abstract boolean getSendStringParametersAsUnicode()
Returns whether sending string parameters to the server in UNICODE format is enabled.
Returns:
getSendTemporalDataTypesAsStringForBulkCopy
public abstract boolean getSendTemporalDataTypesAsStringForBulkCopy()
Returns the current flag for value sendTemporalDataTypesAsStringForBulkCopy
Returns:
getSendTimeAsDatetime
public abstract boolean getSendTimeAsDatetime()
Returns the value of the sendTimeAsDatetime connection property. This method was added in SQL Server JDBC Driver 3.0. Returns the setting of the sendTimeAsDatetime connection property.
Returns:
getServerCertificate
public abstract String getServerCertificate()
Returns the path to the server certificate.
Returns:
getServerName
public abstract String getServerName()
Returns the name of the SQL Server instance.
Returns:
getServerNameAsACE
public abstract boolean getServerNameAsACE()
Returns if the serverName should be translated from Unicode to ASCII Compatible Encoding (ACE).
Returns:
getServerPreparedStatementDiscardThreshold
public abstract int getServerPreparedStatementDiscardThreshold()
Returns the value of the setting that 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.
Returns:
getServerSpn
public abstract String getServerSpn()
Returns the server spn.
Returns:
getSocketFactoryClass
public abstract String getSocketFactoryClass()
Returns the value for the connection property 'socketFactoryClass'.
Returns:
getSocketFactoryConstructorArg
public abstract String getSocketFactoryConstructorArg()
Returns the value for the connection property 'socketFactoryConstructorArg'.
Returns:
getSocketTimeout
public abstract int getSocketTimeout()
Returns the socket timeout value.
Returns:
getStatementPoolingCacheSize
public abstract int getStatementPoolingCacheSize()
Returns the size of the prepared statement cache for this connection. A value less than 1 means no cache.
Returns:
getTransparentNetworkIPResolution
public abstract boolean getTransparentNetworkIPResolution()
Returns the TransparentNetworkIPResolution value.
Returns:
getTrustManagerClass
public abstract String getTrustManagerClass()
Returns the value for the connection property 'trustManagerClass'.
Returns:
getTrustManagerConstructorArg
public abstract String getTrustManagerConstructorArg()
Returns the value for the connection property 'trustManagerConstructorArg'.
Returns:
getTrustServerCertificate
public abstract boolean getTrustServerCertificate()
Returns a boolean value that indicates if the trustServerCertificate property is enabled.
Returns:
getTrustStore
public abstract String getTrustStore()
Returns the path (including file name) to the certificate trustStore file.
Returns:
getTrustStoreType
public abstract String getTrustStoreType()
Returns the keyStore Type for the trustStore.
Returns:
getURL
public abstract String getURL()
Returns the URL that is used to connect to the data source.
Returns:
getUseBulkCopyForBatchInsert
public abstract boolean getUseBulkCopyForBatchInsert()
Returns whether the use Bulk Copy API is used for Batch Insert.
Returns:
getUseDefaultGSSCredential
public abstract boolean getUseDefaultGSSCredential()
Returns the useDefaultGSSCredential.
Returns:
getUseDefaultJaasConfig
public abstract boolean getUseDefaultJaasConfig()
Returns whether the default JAAS Configuration should be used
Returns:
getUseFlexibleCallableStatements
public abstract boolean getUseFlexibleCallableStatements()
Returns whether or not sp_sproc_columns is being used for parameter name lookup.
Returns:
getUseFmtOnly
public abstract boolean getUseFmtOnly()
Returns the current flag value for useFmtOnly.
Returns:
getUser
public abstract String getUser()
Returns the user name that is used to connect the data source.
Returns:
getWorkstationID
public abstract String getWorkstationID()
Returns the name of the client computer name that is used to connect to the data source.
Returns:
getXopenStates
public abstract boolean getXopenStates()
Returns the value that indicates if converting SQL states to XOPEN compliant states is enabled.
Returns:
getcacheBulkCopyMetadata
public abstract boolean getcacheBulkCopyMetadata()
Sets the value for 'cacheBulkCopyMetadata' property
Returns:
setAADSecurePrincipalId
(=9.4.1,=true)
public abstract void setAADSecurePrincipalId(String aadSecurePrincipalId)
Deprecated
Sets the 'AADSecurePrincipalId' connection property used for Active Directory Service Principal authentication.
Parameters:
setAADSecurePrincipalSecret
(=9.4.1,=true)
public abstract void setAADSecurePrincipalSecret(String aadSecurePrincipalSecret)
Deprecated
Sets the 'AADSecurePrincipalSecret' connection property used for Active Directory Service Principal authentication.
Parameters:
setAccessToken
public abstract void setAccessToken(String accessToken)
Sets the access token.
Parameters:
setAccessTokenCallback
public abstract void setAccessTokenCallback(SQLServerAccessTokenCallback accessTokenCallback)
Sets the SQLServerAccessTokenCallback delegate.
Parameters:
setAccessTokenCallbackClass
public abstract void setAccessTokenCallbackClass(String accessTokenCallbackClass)
Sets 'accessTokenCallbackClass' to the fully qualified class name of the implementing class for SQLServerAccessTokenCallback.
Parameters:
setApplicationIntent
public abstract void setApplicationIntent(String applicationIntent)
Sets the application intent.
Parameters:
setApplicationName
public abstract void setApplicationName(String applicationName)
Sets the application name.
Parameters:
setAuthentication
public abstract void setAuthentication(String authentication)
Sets the authentication mode.
Parameters:
setAuthenticationScheme
public abstract void setAuthenticationScheme(String authenticationScheme)
Sets the kind of integrated security you want your application to use.
Parameters:
setCalcBigDecimalPrecision
public abstract void setCalcBigDecimalPrecision(boolean calcBigDecimalPrecision)
Returns value of 'calcBigDecimalPrecision' from Connection String.
Parameters:
setCancelQueryTimeout
public abstract void setCancelQueryTimeout(int cancelQueryTimeout)
Sets the cancel timeout.
Parameters:
setClientCertificate
public abstract void setClientCertificate(String certPath)
Sets client certificate path for client certificate authentication.
Parameters:
setClientKey
public abstract void setClientKey(String keyPath)
Sets Private key file path for client certificate authentication.
Parameters:
setClientKeyPassword
public abstract void setClientKeyPassword(String password)
Sets the password to be used for Private key provided by the user for client certificate authentication.
Parameters:
setColumnEncryptionSetting
public abstract void setColumnEncryptionSetting(String columnEncryptionSetting)
Sets the value to enable/disable Always Encrypted functionality for the data source object. The default is Disabled.
Parameters:
setConnectRetryCount
public abstract void setConnectRetryCount(int connectRetryCount)
Sets the maximum number of attempts to reestablish a broken connection.
Parameters:
setConnectRetryInterval
public abstract void setConnectRetryInterval(int connectRetryInterval)
Sets the interval, in seconds, between attempts to reestablish a broken connection.
Parameters:
setDatabaseName
public abstract void setDatabaseName(String databaseName)
Sets the database name to connect to.
Parameters:
setDatetimeParameterType
public abstract void setDatetimeParameterType(String datetimeParameterType)
Sets the SQL server datatype to use for Java datetime and timestamp values.
Parameters:
setDelayLoadingLobs
public abstract void setDelayLoadingLobs(boolean delayLoadingLobs)
Specifies the flag to load LOBs instead of streaming them.
Parameters:
setDescription
public abstract void setDescription(String description)
Sets the description of the data source.
Parameters:
setDisableStatementPooling
public abstract void setDisableStatementPooling(boolean disableStatementPooling)
Sets the value to disable/enable statement pooling.
Parameters:
setDomain
public abstract void setDomain(String domain)
Sets the 'domain' connection property used for NTLM Authentication.
Parameters:
setEnablePrepareOnFirstPreparedStatementCall
public abstract void setEnablePrepareOnFirstPreparedStatementCall(boolean enablePrepareOnFirstPreparedStatementCall)
Sets the value that enables/disables whether the first execution of a prepared statement will call sp_executesql and not prepare a statement. 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. Following executions will call sp_execute. This relieves the need for sp_unprepare on prepared statement close if the statement is only executed once.
Parameters:
setEnclaveAttestationProtocol
public abstract void setEnclaveAttestationProtocol(String protocol)
Sets the enclave attestation protocol to be used in Always Encrypted with Secure Enclaves.
Parameters:
setEnclaveAttestationUrl
public abstract void setEnclaveAttestationUrl(String url)
Sets the enclave attestation URL used in Always Encrypted with Secure Enclaves.
Parameters:
setEncrypt
(=10.1.0,=true)
public abstract void setEncrypt(boolean encryptOption)
Deprecated
Sets the option whether TLS encryption is used.
Parameters:
setEncrypt
public abstract void setEncrypt(String encryptOption)
Sets the option whether TLS encryption is used.
Parameters:
setFIPS
public abstract void setFIPS(boolean fips)
Sets whether Fips Mode should be enabled/disabled on the connection. For FIPS enabled JVM this property should be true.
Parameters:
setFailoverPartner
public abstract void setFailoverPartner(String serverName)
Sets the name of the failover server that is used in a database mirroring configuration.
Parameters:
setGSSCredentials
public abstract void setGSSCredentials(GSSCredential userCredential)
Sets the GSSCredential.
Parameters:
setHostNameInCertificate
public abstract void setHostNameInCertificate(String hostName)
Sets the host name to be used in validating the SQL Server Secure Sockets Layer (SSL) certificate.
Parameters:
setIPAddressPreference
public abstract void setIPAddressPreference(String iPAddressPreference)
Sets the name of the preferred type of IP Address.
Parameters:
setInstanceName
public abstract void setInstanceName(String instanceName)
Sets the SQL Server instance name.
Parameters:
setIntegratedSecurity
public abstract void setIntegratedSecurity(boolean enable)
Sets a Boolean value that indicates if the integratedSecurity property is enabled.
Parameters:
setJAASConfigurationName
public abstract void setJAASConfigurationName(String configurationName)
Sets the login configuration name for Kerberos authentication. This overrides the default configuration SQLJDBCDriver
Parameters:
setJASSConfigurationName
(=9.3.0,=true)
public abstract void setJASSConfigurationName(String configurationName)
Deprecated
Sets the login configuration name for Kerberos authentication. This overrides the default configuration SQLJDBCDriver
Parameters:
setKeyStoreAuthentication
public abstract void setKeyStoreAuthentication(String keyStoreAuthentication)
Sets the name that identifies a key store. Only value supported is the "JavaKeyStorePassword" for identifying the Java Key Store. The default is null.
Parameters:
setKeyStoreLocation
public abstract void setKeyStoreLocation(String keyStoreLocation)
Sets the location including the file name for the Java keystore. Note that, keyStoreAuthentication must be set with "JavaKeyStorePassword".
Parameters:
setKeyStorePrincipalId
public abstract void setKeyStorePrincipalId(String keyStorePrincipalId)
Sets the value for the connection property 'keyStorePrincipalId'.
Parameters:
When keyStoreAuthentication = keyVaultClientSecret, set this value to a valid Azure Active Directory Application Client ID.
When keyStoreAuthentication = keyVaultManagedIdentity, set this value to a valid Azure Active Directory Application Object ID (optional, for user-assigned only).
setKeyStoreSecret
public abstract void setKeyStoreSecret(String keyStoreSecret)
Sets the password for the Java keystore. Note that, for Java Key Store provider the password for the keystore and the key must be the same. Note that, keyStoreAuthentication must be set with "JavaKeyStorePassword".
Parameters:
setKeyVaultProviderClientId
public abstract void setKeyVaultProviderClientId(String keyVaultProviderClientId)
Sets the Azure Key Vault (AKV) Provider Client Id to provided value to be used for column encryption.
Parameters:
setKeyVaultProviderClientKey
public abstract void setKeyVaultProviderClientKey(String keyVaultProviderClientKey)
Sets the Azure Key Vault (AKV) Provider Client Key to provided value to be used for column encryption.
Parameters:
setLastUpdateCount
public abstract void setLastUpdateCount(boolean lastUpdateCount)
Sets a Boolean value that indicates if the lastUpdateCount property is enabled.
Parameters:
setLockTimeout
public abstract void setLockTimeout(int lockTimeout)
Sets an int value that indicates the number of milliseconds to wait before the database reports a lock time out.
Parameters:
setMSIClientId
(=12.1.0,=true)
public abstract void setMSIClientId(String managedIdentityClientId)
Deprecated
Sets the client id to be used to retrieve the access token for a user-assigned Managed Identity.
Parameters:
setMaxResultBuffer
public abstract void setMaxResultBuffer(String maxResultBuffer)
Sets the value for 'maxResultBuffer' property
Parameters:
setMsiTokenCacheTtl
(=12.1.0,=true)
public abstract void setMsiTokenCacheTtl(int timeToLive)
Deprecated
Time-to-live is no longer supported for the cached Managed Identity tokens. This method is a no-op for backwards compatibility only.
Parameters:
setMultiSubnetFailover
public abstract void setMultiSubnetFailover(boolean multiSubnetFailover)
Sets the value of the multiSubnetFailover connection property.
Parameters:
setPacketSize
public abstract void setPacketSize(int packetSize)
Sets the current network packet size used to communicate with SQL Server, specified in bytes.
Parameters:
setPassword
public abstract void setPassword(String password)
Sets the password that will be used to connect to SQL Server.
Parameters:
setPortNumber
public abstract void setPortNumber(int portNumber)
Sets the port number to be used to communicate with SQL Server.
Parameters:
setPrepareMethod
public abstract void setPrepareMethod(String prepareMethod)
Sets the behavior for the prepare method. PrepareMethod
Parameters:
setQueryTimeout
public abstract void setQueryTimeout(int queryTimeout)
Setting the query timeout.
Parameters:
setRealm
public abstract void setRealm(String realm)
Sets the realm for Kerberos authentication.
Parameters:
setReplication
public abstract void setReplication(boolean replication)
Sets the value to enable/disable the replication connection property.
Parameters:
setResponseBuffering
public abstract void setResponseBuffering(String bufferingMode)
Sets the response buffering mode for connections created by using this SQLServerDataSource object.
Parameters:
setSSLProtocol
public abstract void setSSLProtocol(String sslProtocol)
Sets the sslProtocol property for connection Set this value to specify TLS protocol keyword. Acceptable values are: TLS, TLSv1, TLSv1.1, and TLSv1.2.
Parameters:
setSelectMethod
public abstract void setSelectMethod(String selectMethod)
Sets the default cursor type that is used for all result sets that are created by using this SQLServerDataSource object.
Parameters:
setSendStringParametersAsUnicode
public abstract void setSendStringParametersAsUnicode(boolean sendStringParametersAsUnicode)
Sets a boolean value that indicates if sending string parameters to the server in UNICODE format is enabled.
Parameters:
setSendTemporalDataTypesAsStringForBulkCopy
public abstract void setSendTemporalDataTypesAsStringForBulkCopy(boolean sendTemporalDataTypesAsStringForBulkCopy)
Specifies the flag to send temporal datatypes as String for Bulk Copy.
Parameters:
setSendTimeAsDatetime
public abstract void setSendTimeAsDatetime(boolean sendTimeAsDatetime)
Sets the value to enable/disable the sendTimeAsDatetime connection property.
Parameters:
setServerCertificate
public abstract void setServerCertificate(String cert)
Sets the connection property 'serverCertificate' on the connection.
Parameters:
setServerName
public abstract void setServerName(String serverName)
Sets the name of the computer that is running SQL Server.
Parameters:
setServerNameAsACE
public abstract void setServerNameAsACE(boolean serverNameAsACE)
Sets whether the serverName will be translated from Unicode to ASCII Compatible Encoding (ACE).
Parameters:
setServerPreparedStatementDiscardThreshold
public abstract void setServerPreparedStatementDiscardThreshold(int serverPreparedStatementDiscardThreshold)
Sets the value that 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. If the setting is <= 1 unprepare actions will be executed immedietely on prepared statement close. If it is set to > 1 these calls will be batched together to avoid overhead of calling sp_unprepare too often.
Parameters:
setServerSpn
public abstract void setServerSpn(String serverSpn)
Sets the server spn.
Parameters:
setSocketFactoryClass
public abstract void setSocketFactoryClass(String socketFactoryClass)
Sets the connection property 'socketFactoryClass' on the connection.
Parameters:
setSocketFactoryConstructorArg
public abstract void setSocketFactoryConstructorArg(String socketFactoryConstructorArg)
Sets Constructor Arguments to be provided on constructor of 'socketFactoryClass'.
Parameters:
setSocketTimeout
public abstract void setSocketTimeout(int socketTimeout)
Sets the socket timeout value.
Parameters:
setStatementPoolingCacheSize
public abstract void setStatementPoolingCacheSize(int statementPoolingCacheSize)
Sets the size of the prepared statement cache for this connection. A value less than 1 means no cache.
Parameters:
setTransparentNetworkIPResolution
public abstract void setTransparentNetworkIPResolution(boolean tnir)
Sets the value to enable/disable Transparent Network IP Resolution (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. When transparentNetworkIPResolution is true, the driver attempts to connect to the first IP address available. If the first attempt fails, the driver tries to connect to all IP addresses in parallel until the timeout expires, discarding any pending connection attempts when one of them succeeds.
transparentNetworkIPResolution 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
Parameters:
setTrustManagerClass
public abstract void setTrustManagerClass(String trustManagerClass)
Sets the connection property 'trustManagerClass' on the connection.
Parameters:
setTrustManagerConstructorArg
public abstract void setTrustManagerConstructorArg(String trustManagerConstructorArg)
Sets Constructor Arguments to be provided on constructor of 'trustManagerClass'.
Parameters:
setTrustServerCertificate
public abstract void setTrustServerCertificate(boolean e)
Sets a boolean value that indicates if the trustServerCertificate property is enabled.
Parameters:
setTrustStore
public abstract void setTrustStore(String trustStore)
Sets the path (including file name) to the certificate trustStore file.
Parameters:
setTrustStorePassword
public abstract void setTrustStorePassword(String trustStorePassword)
Sets the password that is used to check the integrity of the trustStore data.
Parameters:
setTrustStoreType
public abstract void setTrustStoreType(String trustStoreType)
Sets the keystore type for the trustStore.
Parameters:
setURL
public abstract void setURL(String url)
Sets the URL that is used to connect to the data source.
Parameters:
setUseBulkCopyForBatchInsert
public abstract void setUseBulkCopyForBatchInsert(boolean useBulkCopyForBatchInsert)
Sets whether the use Bulk Copy API should be used for Batch Insert.
Parameters:
setUseDefaultGSSCredential
public abstract void setUseDefaultGSSCredential(boolean enable)
Sets the value to indicate whether useDefaultGSSCredential is enabled.
Parameters:
setUseDefaultJaasConfig
public abstract void setUseDefaultJaasConfig(boolean useDefaultJaasConfig)
Sets whether the default JAAS Configuration will be used. This means the system-wide JAAS configuration is ignored to avoid conflicts with libraries that override the JAAS configuration.
Parameters:
setUseFlexibleCallableStatements
public abstract void setUseFlexibleCallableStatements(boolean useFlexibleCallableStatements)
Sets whether or not sp_sproc_columns will be used for parameter name lookup.
Parameters:
setUseFmtOnly
public abstract void setUseFmtOnly(boolean useFmtOnly)
Specifies the flag to use FMTONLY for parameter metadata queries.
Parameters:
setUser
public abstract void setUser(String user)
Sets the user name that is used to connect the data source.
Parameters:
setWorkstationID
public abstract void setWorkstationID(String workstationID)
Sets the name of the client computer name that is used to connect to the data source.
Parameters:
setXopenStates
public abstract void setXopenStates(boolean xopenStates)
Sets whether converting SQL states to XOPEN compliant states is enabled.
Parameters:
setcacheBulkCopyMetadata
public abstract void setcacheBulkCopyMetadata(boolean cacheBulkCopyMetadata)
Returns value of 'cacheBulkCopyMetadata' from Connection String.
Parameters: