Class JDBCTypeSettings.TypeMapping

java.lang.Object
com.spotfire.ws.im.ds.sql.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 Details

    • 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 Details

    • 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