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
BooleanRepresentationsetBoolean in interface BooleanRepresentation<String>SQLExceptionpublic boolean getBoolean(ResultSet rs, int columnIndex) throws SQLException
BooleanRepresentationgetBoolean in interface BooleanRepresentation<String>SQLExceptionpublic String getRepresentation(boolean bool)
getRepresentation in interface BooleanRepresentation<String>true and falseCopyright © 2006–2022 Apache Software Foundation. All rights reserved.