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