public class IntegerMapper extends TypedMapper<Integer>
| Modifier and Type | Field and Description |
|---|---|
static IntegerMapper |
FIRST
An instance which extracts value from the first field
|
| Constructor and Description |
|---|
IntegerMapper()
Create a new instance which extracts the value from the first column
|
IntegerMapper(int index)
Create a new instance which extracts the value positionally
in the result set
|
IntegerMapper(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 Integer |
extractByIndex(ResultSet r,
int index) |
protected Integer |
extractByName(ResultSet r,
String name) |
mappublic static final IntegerMapper FIRST
public IntegerMapper()
public IntegerMapper(int index)
index - 1 based column index into the result setpublic IntegerMapper(String name)
name - The name or alias for the fieldprotected Integer extractByIndex(ResultSet r, int index) throws SQLException
extractByIndex in class TypedMapper<Integer>SQLExceptionprotected Integer extractByName(ResultSet r, String name) throws SQLException
extractByName in class TypedMapper<Integer>SQLExceptionCopyright © 2025. All rights reserved.