Interface JDBCMetadataProvider

    • Method Detail

      • toJavaType

        Class toJavaType​(int jdbcType,
                         String typeName,
                         int precision,
                         int scale)
        Converts a JDBC type to a Java type.

        The following Java types are supported:

        • String
        • Integer
        • Long
        • Float
        • Double
        • com.spotfire.ws.dat.Date
        • com.spotfire.ws.dat.Time
        • com.spotfire.ws.dat.DateTime
        • com.spotfire.ws.dat.Clob
        • com.spotfire.ws.dat.Blob
        Parameters:
        jdbcType - a JDBC type
        typeName - data source dependent type name
        precision - a precision used for numeric types
        scale - a scale used for numeric types
        Returns:
        a Java type
        Since:
        3.0
        See Also:
        Types
      • toJDBCType

        int toJDBCType​(Class type)
        Converts a Java type to a JDBC type.

        The following Java types must be supported:

        • String
        • Integer
        • Long
        • Float
        • Double
        • com.spotfire.ws.dat.Date
        • com.spotfire.ws.dat.Time
        • com.spotfire.ws.dat.DateTime
        • com.spotfire.ws.dat.Clob
        • com.spotfire.ws.dat.Blob
        Parameters:
        type - a Java type
        Returns:
        a JDBC type
        Since:
        3.0
        See Also:
        Types
      • setContext

        void setContext​(JDBCContext c)
        Sets the JDBCContext.
        Parameters:
        c - JDBCContext
        Since:
        3.0