Package com.spotfire.ws.im.ds.sql
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 Summary
Constructors Constructor Description TypeMapping(Class javaType, String sqlType)
Creates aTypeMapping
instance.TypeMapping(Class javaType, String sqlType, int maxLength)
Creates aTypeMapping
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class
getJavaType()
Returns the Java type.int
getMaxLength()
Returns the maximum length.String
getSQLType()
Returns the SQL type.
-
-
-
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
-
-