public interface JdbcValueReader
Modifier and Type | Field and Description |
---|---|
static JdbcValueReader |
DEFAULT
Deprecated.
use
ORIGINAL to replicate the pre-8.0.0 default behavior.
Maps database types to java types using the original DataPipeline algorithm. This mapping should
no longer be used and replaced with OPINIONATED (or STRICT ) instead. |
static JdbcValueReader |
OPINIONATED
Maps database types to java types based only on
java.sql.Types , column display size, and scale. |
static JdbcValueReader |
ORIGINAL |
static JdbcValueReader |
STRICT
Maps database types to java types based only on
java.sql.Types as defined by Sun/Oracle. |
Modifier and Type | Method and Description |
---|---|
Object |
readColumnValue(ResultSet result,
int columnIndex,
int columnType,
String columnName) |
default Object |
readColumnValue(ResultSet result,
int columnIndex,
int columnType,
String columnName,
FieldType fieldType) |
default Class<?> |
sqlToJavaType(int sqlTypeIndex,
int displaySize,
int decimals,
boolean nullable,
boolean signed,
String className) |
static final JdbcValueReader ORIGINAL
@Deprecated static final JdbcValueReader DEFAULT
ORIGINAL
to replicate the pre-8.0.0 default behavior.
Maps database types to java types using the original DataPipeline algorithm. This mapping should
no longer be used and replaced with OPINIONATED
(or STRICT
) instead.static final JdbcValueReader STRICT
java.sql.Types
as defined by Sun/Oracle.
Column display size and scale will not be considered for numeric types.static final JdbcValueReader OPINIONATED
java.sql.Types
, column display size, and scale.default Class<?> sqlToJavaType(int sqlTypeIndex, int displaySize, int decimals, boolean nullable, boolean signed, String className) throws Throwable
Throwable
Object readColumnValue(ResultSet result, int columnIndex, int columnType, String columnName) throws Throwable
Throwable
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.