Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4986968

Request to add a new metadata method getBestDataType

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • 8.0pe
    • core-libs
    • sparc
    • solaris_8

      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

            jbrucesunw Jonathan Bruce (Inactive)
            lancea Lance Andersen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: