JDBCBehavior
- Last Updated: May 15, 2020
- 1 minute read
- DataDirect Connectors
- JDBC
- IBM Db2 5.1
- MySQL 5.1
- Progress OpenEdge 5.1
- SAP Sybase 5.1
- Documentation
Purpose
Determines how the driver describes database data types that map to the following JDBC 4.0 data types: NCHAR, NVARCHAR, NLONGVARCHAR, NCLOB, and SQLXML.
This property is applicable only when the application is using Java SE 6 or higher.
Valid Values
0 | 1
Behavior
If
set to 0, the driver describes the data types as
JDBC 4.0 data types when using Java SE 6 or higher.
If
set to 1, the driver describes the data types using JDBC 3.0-equivalent
data types, regardless of JVM. This allows your application to continue
using JDBC 3.0 types in a Java SE 6 or higher environment.
In addition, the JDBC 4.0 method ResultSet.getHoldability() returns
the value of the JDBC 3.0 method Connection.getHoldability().
Default
1
Data Type
int