Request an enhancement:
/**
* Get the best data type for a CREATE TABLE clause. The driver has
to convert the
* the request in the data type for the underlying dabase
version.<p>
* for example:<p>
* getBestDataType( java.sqlTypey.TINIYINT, 3, 0, true );<br>
* should return<br>
* Oracle: NUMBER(3)<br>
* DB2: SMALLINT<br>
* MS SQL: TINIYINT<br>
*
* @param type SQL type from java.sql.Types
* @param precision the max precision of the values
* @param scale the scale of the values. It has only an effect of
types with decimal point.
* @param nullable are null values valid
* @return a String to create a column in the database or null if
there are no valid mapping.
*/
public String getBestDataType( int type, int precision, int scale,
boolean nullable )
###@###.### 2004-02-02
/**
* Get the best data type for a CREATE TABLE clause. The driver has
to convert the
* the request in the data type for the underlying dabase
version.<p>
* for example:<p>
* getBestDataType( java.sqlTypey.TINIYINT, 3, 0, true );<br>
* should return<br>
* Oracle: NUMBER(3)<br>
* DB2: SMALLINT<br>
* MS SQL: TINIYINT<br>
*
* @param type SQL type from java.sql.Types
* @param precision the max precision of the values
* @param scale the scale of the values. It has only an effect of
types with decimal point.
* @param nullable are null values valid
* @return a String to create a column in the database or null if
there are no valid mapping.
*/
public String getBestDataType( int type, int precision, int scale,
boolean nullable )
###@###.### 2004-02-02