setDateFormat(short format)

Syntax:

void setDateFormat(short format) throws SQLException

Description:

Tells the underlying database what format to use for dates when it must convert them to character strings. Note that this does not affect dates that are returned to the application as java.sql.Date objects or even those converted by the JDBC Driver, only those that are converted to strings internally in the engine. Valid values are:

com.raima.rdm.util.RSQLDateFormat.YYYYMMDD
com.raima.rdm.util.RSQLDateFormat.MMDDYYYY
com.raima.rdm.util.RSQLDateFormat.DDMMYYYY

The default is RSQLDateFormat.YYYYMMDD.

This is not a part of the JDBC Connection interface, so to access it you must cast the Connection to an RDMConnection.

Parameters:

format

One of the defined date format fields in com.raima.rdm.util.RSQLDateFormat.

Throws:

SQLException - if a database access error occurs