Package org.apache.openjpa.jdbc.sql
Class BooleanRepresentationFactory.Int10BooleanRepresentation
java.lang.Object
org.apache.openjpa.jdbc.sql.BooleanRepresentationFactory.Int10BooleanRepresentation
- All Implemented Interfaces:
BooleanRepresentation<Integer>
- Enclosing class:
- BooleanRepresentationFactory
public static class BooleanRepresentationFactory.Int10BooleanRepresentation
extends Object
implements BooleanRepresentation<Integer>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBoolean(ResultSet rs, int columnIndex) Read the boolean from the given ResultSetgetRepresentation(boolean bool) voidsetBoolean(PreparedStatement stmnt, int idx, boolean val) Set the boolean value into the statementtoString()
-
Constructor Details
-
Int10BooleanRepresentation
public Int10BooleanRepresentation()
-
-
Method Details
-
setBoolean
Description copied from interface:BooleanRepresentationSet the boolean value into the statement- Specified by:
setBooleanin interfaceBooleanRepresentation<Integer>- Throws:
SQLException
-
getBoolean
Description copied from interface:BooleanRepresentationRead the boolean from the given ResultSet- Specified by:
getBooleanin interfaceBooleanRepresentation<Integer>- Throws:
SQLException
-
getRepresentation
- Specified by:
getRepresentationin interfaceBooleanRepresentation<Integer>- Returns:
- return the representation for
trueandfalse
-
toString
-