Package com.spotfire.ws.im.ds.sql
Class JDBCTypeSettings.TypeMapping
java.lang.Object
com.spotfire.ws.im.ds.sql.JDBCTypeSettings.TypeMapping
- Enclosing class:
- JDBCTypeSettings
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
ConstructorDescriptionTypeMapping
(Class javaType, String sqlType) Creates aTypeMapping
instance.TypeMapping
(Class javaType, String sqlType, int maxLength) Creates aTypeMapping
instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the Java type.int
Returns the maximum length.Returns the SQL type.
-
Constructor Details
-
TypeMapping
Creates aTypeMapping
instance.- Parameters:
javaType
- a Java typesqlType
- a SQL typemaxLength
- maximim length for strings- Since:
- 3.0
-
TypeMapping
Creates aTypeMapping
instance.- Parameters:
javaType
- a Java typesqlType
- a SQL type- Since:
- 3.0
-
-
Method Details
-
getJavaType
Returns the Java type.- Returns:
- a Java type
- Since:
- 3.0
-
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
-