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