public static class BooleanRepresentationFactory.StringBooleanRepresentation extends Object implements BooleanRepresentation<String>
Constructor and Description |
---|
StringBooleanRepresentation(String trueRepresentation,
String falseRepresentation) |
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean(ResultSet rs,
int columnIndex)
Read the boolean from the given ResultSet
|
String |
getRepresentation(boolean bool) |
void |
setBoolean(PreparedStatement stmnt,
int idx,
boolean val)
Set the boolean value into the statement
|
String |
toString() |
public void setBoolean(PreparedStatement stmnt, int idx, boolean val) throws SQLException
BooleanRepresentation
setBoolean
in interface BooleanRepresentation<String>
SQLException
public boolean getBoolean(ResultSet rs, int columnIndex) throws SQLException
BooleanRepresentation
getBoolean
in interface BooleanRepresentation<String>
SQLException
public String getRepresentation(boolean bool)
getRepresentation
in interface BooleanRepresentation<String>
true
and false
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.