Connection property descriptions
- Last Updated: May 13, 2025
- 2 minute read
- DataDirect Connectors
- JDBC
- 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.
- Required properties
- Data encryption properties
- Proxy server properties
- Data type properties
- Timeout properties
- Statement pooling properties
- Failover properties
- Bulk load properties
- Client information properties
- Additional properties
Required properties
The following table summarizes properties required for connecting.
| Property | Data Source Method | Default |
|---|---|---|
| DatabaseName | getDatabaseName()
|
No default value |
| Password | getPassword()
|
No default value |
| PortNumber | getPortNumber()
|
|
| ServerName | getServerName()
|
No default value |
| User | getUser()
|
No default value |
Data encryption properties
The following table summarizes properties used in the implementation of SSL data encryption, including server and client authentication.
| Property | Data Source Method | Default |
|---|---|---|
| CryptoProtocolVersion | getCryptoProtocolVersion()
|
No default value |
| EncryptionMethod | getEncryptionMethod()
|
noEncryption |
| HostNameInCertificate | getHostNameInCertificate()
|
No default value |
| KeyPassword | getKeyPassword()
|
No default value |
| KeyStore | getKeyStore()
|
No default value |
| KeyStorePassword | getKeyStorePassword()
|
No default value |
| TrustStore | getTrustStore()
|
No default value |
| TrustStorePassword | getTrustStorePassword()
|
No default value |
| ValidateServerCertificate | getValidateServerCertificate()
|
true |
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()
|
|
| MaxNumericPrecision | getMaxNumericPrecision()
|
1000 |
| MaxNumericScale | setMaxNumericScale()
|
998 |
| MaxVarcharSize | getMaxVarcharSize()
|
10485760 |
| VarcharClobThreshold | getVarcharClobThreshold()
|
32768
|
Timeout properties
The following table summarizes timeout connection properties.
| Property | Data Source Method | Default |
|---|---|---|
| EnableCancelTimeout | getEnableCancelTimeout()
|
false
|
| 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()
|
0 |
Bulk load properties
The following table contains the only connection property that affects how DataDirect bulk load works with the driver.
| Property | Data Source Method | Default |
|---|---|---|
| BulkLoadBatchSize | getBulkLoadBatchSize()
|
1000 |
Failover properties
The following table summarizes connection properties which can be used to implement failover.
| Property | Data Source Method | Default |
|---|---|---|
| ConnectionRetryCount | getConnectionRetryCount()
|
5 |
| ConnectionRetryDelay | getConnectionRetryDelay()
|
1 |
Client information properties
The following table summarizes connection properties which can be used to return client information.
| Property | Data Source Method | Default |
|---|---|---|
| AccountingInfo | getAccountingInfo()
|
No default value |
| 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 |
|---|---|---|
| BatchMechanism | getBatchMechanism()
|
MultiRowInsert |
| CallEscapeBehavior | getCallEscapeBehavior()
|
callIfNoReturn
|
| CatalogOptions | getCatalogOptions()
|
2
|
| ExtendedColumnMetadata | getExtendedColumnMetadata()
|
false
|
| InitializationString | getInitializationString()
|
No default value |
| InsensitiveResultSetBufferSize | getInsensitiveResultsetBufferSize()
|
2048 |
| ResultSetMetaDataOptions | getResultSetMetaDataOptions()
|
0 |
| SpyAttributes | getSpyAttributes()
|
No default value |
| SupportsCatalogs | getSupportsCatalogs()
|
true |
| TransactionErrorBehavior | getTransactionErrorBehavior()
|
RollbackTransaction |