Neoview JDBC Type 4 Driver Programmer's Reference (R2.2, R2.3, R2.4, R2.5)
roundingMode Property
The roundingMode property specifies the rounding behavior of the Type 4 driver. For example,
if the data is 1234.127 and column definition is numeric(6, 2) and the application does
setDouble() and getDouble(), the value returned is 1234.12, which is truncated as specified
by the default rounding mode, ROUND_DOWN.
Set this property on a DataSource object, ConnectionPoolDataSource object, or
DriverManager object. For information about how to set properties, see “How to Specify JDBC
Type 4 Properties” (page 38).
Data type: String
Default: ROUND_DOWN
Values for roundingMode are:
ROUND_CEILING
ROUND_DOWN
ROUND_FLOOR
ROUND_HALF_DOWN
ROUND_HALF_EVEN
ROUND_HALF_UP
ROUND_UNNECESSARY
ROUND_UP
• For the definition of rounding mode values, see the java.math.BigDecimal documentation
at http://java.sun.com/j2se/1.4.2/docs/api/index.html .
• If the application sets erroneous values for the roundingMode property, no error is thrown
by the Type 4 driver. The driver uses ROUND_DOWN value instead.
• To have the application get the DataTruncation exception when data is truncated, set the
roundingMode property to ROUND_UNNECESSARY.
schema Property
The schema property sets the database schema that accesses SQL objects referenced in SQL
statements if the SQL objects are not fully qualified.
Set this property on a DataSource object, ConnectionPoolDataSource object, or
DriverManager object. For information about how to set properties, see “How to Specify JDBC
Type 4 Properties” (page 38).
Data type: String
Default: none
For example, schema=sales
serverDataSource Property
NOTE: This property is for the use of HP support personnel.
The serverDataSource property sets the name of the data source on the server side (resides
on the Neoview platform).
Set this property on a DataSource object, ConnectionPoolDataSource object, or
DriverManager object. For information about how to set properties, see “How to Specify JDBC
Type 4 Properties” (page 38).
Type 4 Driver Property Descriptions 47