Package org.apache.openjpa.jdbc.sql
Class BooleanRepresentationFactory.BooleanBooleanRepresentation
java.lang.Object
org.apache.openjpa.jdbc.sql.BooleanRepresentationFactory.BooleanBooleanRepresentation
- All Implemented Interfaces:
BooleanRepresentation<Boolean>
- Enclosing class:
- BooleanRepresentationFactory
public static class BooleanRepresentationFactory.BooleanBooleanRepresentation
extends Object
implements BooleanRepresentation<Boolean>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getBoolean
(ResultSet rs, int columnIndex) Read the boolean from the given ResultSetgetRepresentation
(boolean bool) void
setBoolean
(PreparedStatement stmnt, int idx, boolean val) Set the boolean value into the statementtoString()
-
Constructor Details
-
BooleanBooleanRepresentation
public BooleanBooleanRepresentation()
-
-
Method Details
-
setBoolean
Description copied from interface:BooleanRepresentation
Set the boolean value into the statement- Specified by:
setBoolean
in interfaceBooleanRepresentation<Boolean>
- Throws:
SQLException
-
getBoolean
Description copied from interface:BooleanRepresentation
Read the boolean from the given ResultSet- Specified by:
getBoolean
in interfaceBooleanRepresentation<Boolean>
- Throws:
SQLException
-
getRepresentation
- Specified by:
getRepresentation
in interfaceBooleanRepresentation<Boolean>
- Returns:
- return the representation for
true
andfalse
-
toString
-