public class TimestampMapper extends TypedMapper<Timestamp>
Modifier and Type | Field and Description |
---|---|
static TimestampMapper |
FIRST
An instance which extracts value from the first field
|
Constructor and Description |
---|
TimestampMapper()
Create a new instance which extracts the value from the first column
|
TimestampMapper(int index)
Create a new instance which extracts the value positionally
in the result set
|
TimestampMapper(String name)
Create a new instance which extracts the value by name or alias from the result set
|
Modifier and Type | Method and Description |
---|---|
protected Timestamp |
extractByIndex(ResultSet r,
int index) |
protected Timestamp |
extractByName(ResultSet r,
String name) |
map
public static final TimestampMapper FIRST
public TimestampMapper()
public TimestampMapper(int index)
index
- 1 based column index into the result setpublic TimestampMapper(String name)
name
- The name or alias for the fieldprotected Timestamp extractByIndex(ResultSet r, int index) throws SQLException
extractByIndex
in class TypedMapper<Timestamp>
SQLException
protected Timestamp extractByName(ResultSet r, String name) throws SQLException
extractByName
in class TypedMapper<Timestamp>
SQLException
Copyright © 2023. All rights reserved.