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