Class JDBCTypeSettings.TypeMapping

  • Enclosing class:
    JDBCTypeSettings

    public static class JDBCTypeSettings.TypeMapping
    extends Object
    Mapping between a Java and a SQL 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
    Since:
    3.0
    • Constructor Detail

      • TypeMapping

        public TypeMapping​(Class javaType,
                           String sqlType,
                           int maxLength)
        Creates a TypeMapping instance.
        Parameters:
        javaType - a Java type
        sqlType - a SQL type
        maxLength - maximim length for strings
        Since:
        3.0
      • TypeMapping

        public TypeMapping​(Class javaType,
                           String sqlType)
        Creates a TypeMapping instance.
        Parameters:
        javaType - a Java type
        sqlType - a SQL type
        Since:
        3.0
    • Method Detail

      • getJavaType

        public Class getJavaType()
        Returns the Java type.
        Returns:
        a Java type
        Since:
        3.0
      • getSQLType

        public String getSQLType()
        Returns the SQL type.
        Returns:
        a SQL type
        Since:
        3.0
      • getMaxLength

        public int getMaxLength()
        Returns the maximum length.
        Returns:
        a maximum length value
        Since:
        3.0