Connection property descriptions
- Last Updated: May 13, 2025
- 2 minute read
- DataDirect Connectors
- JDBC
- SAP HANA 6.0
- Documentation
You can use connection properties to customize the driver for your
environment. This section organizes connection properties according to functionality. You can
use connection properties with either the JDBC DriverManager
or a JDBC data source. For a DriverManager connection, a
property is expressed as a key value pair and takes the form property=value.
For a data source connection, a property is expressed as a JDBC method and takes the form
setproperty(value).
- In a JDBC data source, string values must be enclosed in double quotation
marks, for example,
setUser("abc@defcorp.com"). - The data type listed for each connection property is the Java data type used for the property value in a JDBC data source.
- Connection property names are case-insensitive. For example,
Passwordis the same aspassword. - For connection properties that support string values, use the following
escape sequence to specify values containing leading or trailing spaces and
curly brackets:
{value}. For example:User={hello }orPassword={{hello}}.
The following tables describe the connection properties by functionality.
- General properties
- Proxy server properties
- Data type properties
- Data encryption properties
- Timeout properties
- Statement pooling properties
- Failover properties
- Client information properties
- Additional properties
General properties
The following table summarizes the properties used for connecting.
| Property | Data Source Method | Default |
|---|---|---|
| AuthenticationMethod | getAuthenticationMethod()
|
userIdPassword |
| Password | getPassword()
|
No default value |
| PortNumber | getPortNumber()
|
|
| ServerName | getServerName()
|
No default value |
| User | getUser()
|
No default value |
Proxy server properties
The following table summarizes proxy server connection properties.
| Property | Data Source Method | Default |
|---|---|---|
| ProxyHost | getProxyHost()
|
No default value |
| ProxyPassword | getProxyPassword()
|
No default value |
| ProxyPort | getProxyPort()
|
0 which means the default
is determined by the ProxyHost property.For HTTP URLs: For HTTPS URLs: |
| ProxyUser | getProxyUser()
|
No default value |
| UseSystemProxyOptions | getUseSystemProxy()
|
true |
Data type properties
The following table summarizes connection properties which can be used to handle data types.
| Property | Data Source Method | Default |
|---|---|---|
| ConvertNull | getConvertNull()
|
true |
| JavaDoubleToString | getJavaDoubleToString()
|
|
Data encryption properties
The following table summarizes connection properties that can be used to enable TLS/SSL encryption.
| Property | Data Source Method | Default |
|---|---|---|
| EncryptionMethod | setEncryptionMethod
|
noEncryption |
| HostNameInCertificate | setHostNameInCertificate
|
No default value |
| KeyStore | setKeyStore
|
No default value |
| KeyStorePassword | setKeyStorePassword
|
No default value |
| KeyPassword | setKeyPassword
|
No default value |
| TrustStore | setTrustStore
|
No default value |
| TrustStorePassword | setTrustStorePassword
|
No default value |
| ValidateServerCertificate | setValidateServerCertificate
|
true |
Timeout properties
The following table summarizes timeout connection properties.
| Property | Data Source Method | Default |
|---|---|---|
| LoginTimeout | getLoginTimeout()
|
0 |
| QueryTimeout | getQueryTimeout()
|
0 |
Statement pooling properties
The following table summarizes statement pooling connection properties.
| Property | Data Source Method | Default |
|---|---|---|
| ImportStatementPool | getImportStatementPool()
|
No default value |
| MaxPooledStatements | getMaxPooledStatements()
|
0 |
| RegisterStatementPoolMonitorMBean | getRegisterStatementPoolMonitorMBean()
|
false |
Failover properties
The following table summarizes connection properties which are used to implement failover.
| Property | Data Source Method | Default |
|---|---|---|
| AlternateServers | getAlternateServers()
|
No default value |
| ConnectionRetryCount | getConnectionRetryCount()
|
5 |
| ConnectionRetryDelay | getConnectionRetryDelay()
|
1 |
| DatabaseName | getDatabaseName()
|
No default value |
| FailoverGranularity | getFailoverGranularity()
|
nonAtomic |
| FailoverMode | getFailoverMode()
|
connect |
| FailoverPreconnect | getFailoverPreconnect()
|
false |
| LoadBalancing | getLoadBalancing()
|
No default value |
Client information properties
The following table summarizes connection properties which are used to return client information.
| Property | Data Source Method | Default |
|---|---|---|
| ApplicationName | getApplicationName()
|
No default value |
| ClientHostName | getClientHostName()
|
No default value |
| ClientUser | getClientUser()
|
No default value |
| ProgramID | getProgramID()
|
No default value |
Additional properties
The following table summarizes additional connection properties.
| Property | Data Source Method | Default |
|---|---|---|
| FetchSize | getFetchSize()
|
100 |
| InsensitiveResultSetBufferSize | getInsensitiveResultsetBufferSize()
|
2048 |
| SpyAttributes | getSpyAttributes()
|
No default value |