public abstract class ColumnExtractor<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ColumnExtractor<java.math.BigDecimal> |
BIG_DECIMAL_EXTRACTOR |
static ColumnExtractor<java.lang.Boolean> |
BOOLEAN_EXTRACTOR |
static ColumnExtractor<java.sql.Date> |
DATE_EXTRACTOR |
static ColumnExtractor<java.lang.Object> |
DEFAULT_EXTRACTOR |
static ColumnExtractor<java.lang.Double> |
DOUBLE_EXTRACTOR |
static ColumnExtractor<java.lang.Integer> |
INT_EXTRACTOR |
static ColumnExtractor<java.lang.Long> |
LONG_EXTRACTOR |
static ColumnExtractor<java.lang.Short> |
SHORT_EXTRACTOR |
static java.util.Map<java.lang.Integer,java.lang.String> |
SQL_TYPE_NAMES |
static ColumnExtractor<java.lang.String> |
STRING_EXTRACTOR |
static ColumnExtractor<java.sql.Time> |
TIME_EXTRACTOR |
static ColumnExtractor<java.sql.Timestamp> |
TIMESTAMP_EXTRACTOR |
Constructor and Description |
---|
ColumnExtractor() |
Modifier and Type | Method and Description |
---|---|
abstract T |
extract(java.sql.ResultSet rs,
int columnIndex)
Extract the value from the column.
|
static <X> ColumnExtractor<X> |
getColumnExtractor(java.lang.Integer sqlType) |
abstract java.lang.Class<T> |
getType()
Get the class of this Column Extractor.
|
public static final java.util.Map<java.lang.Integer,java.lang.String> SQL_TYPE_NAMES
public static final ColumnExtractor<java.lang.Boolean> BOOLEAN_EXTRACTOR
public static final ColumnExtractor<java.lang.Short> SHORT_EXTRACTOR
public static final ColumnExtractor<java.lang.Integer> INT_EXTRACTOR
public static final ColumnExtractor<java.lang.Long> LONG_EXTRACTOR
public static final ColumnExtractor<java.lang.Double> DOUBLE_EXTRACTOR
public static final ColumnExtractor<java.math.BigDecimal> BIG_DECIMAL_EXTRACTOR
public static final ColumnExtractor<java.lang.String> STRING_EXTRACTOR
public static final ColumnExtractor<java.sql.Date> DATE_EXTRACTOR
public static final ColumnExtractor<java.sql.Time> TIME_EXTRACTOR
public static final ColumnExtractor<java.sql.Timestamp> TIMESTAMP_EXTRACTOR
public static final ColumnExtractor<java.lang.Object> DEFAULT_EXTRACTOR
public static <X> ColumnExtractor<X> getColumnExtractor(java.lang.Integer sqlType)
public abstract java.lang.Class<T> getType()
public abstract T extract(java.sql.ResultSet rs, int columnIndex) throws java.sql.SQLException
rs
- columnIndex
- java.sql.SQLException