Class ValueConverterFactory
- java.lang.Object
-
- com.vividsolutions.jump.datastore.jdbc.ValueConverterFactory
-
public class ValueConverterFactory extends Object
Standard data converters for JDBC. Clients can extend this class, or simply call it.- Version:
- 1.0
- Author:
- Martin Davis
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ValueConverterFactory.BooleanConverter
static class
ValueConverterFactory.DateConverter
static class
ValueConverterFactory.DoubleConverter
static class
ValueConverterFactory.IntegerConverter
static class
ValueConverterFactory.LongConverter
static class
ValueConverterFactory.ObjectConverter
static class
ValueConverterFactory.StringConverter
-
Field Summary
Fields Modifier and Type Field Description static ValueConverter
BOOLEAN_MAPPER
static ValueConverter
DATE_MAPPER
static ValueConverter
DOUBLE_MAPPER
static ValueConverter
INTEGER_MAPPER
static ValueConverter
LONG_MAPPER
static ValueConverter
OBJECT_MAPPER
static ValueConverter
STRING_MAPPER
-
Constructor Summary
Constructors Constructor Description ValueConverterFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ValueConverter
getConverter(ResultSetMetaData rsm, int columnIndex)
Handles finding a converter for standard JDBC types.
-
-
-
Field Detail
-
DOUBLE_MAPPER
public static final ValueConverter DOUBLE_MAPPER
-
INTEGER_MAPPER
public static final ValueConverter INTEGER_MAPPER
-
DATE_MAPPER
public static final ValueConverter DATE_MAPPER
-
STRING_MAPPER
public static final ValueConverter STRING_MAPPER
-
LONG_MAPPER
public static final ValueConverter LONG_MAPPER
-
BOOLEAN_MAPPER
public static final ValueConverter BOOLEAN_MAPPER
-
OBJECT_MAPPER
public static final ValueConverter OBJECT_MAPPER
-
-
Method Detail
-
getConverter
public static ValueConverter getConverter(ResultSetMetaData rsm, int columnIndex) throws SQLException
Handles finding a converter for standard JDBC types. Clients should handle custom types themselves.- Returns:
- null if no converter could be found
- Throws:
SQLException
- if an SQLException occurs
-
-