Package org.apache.openjpa.jdbc.sql
Class BooleanRepresentationFactory.Int10BooleanRepresentation
- java.lang.Object
- 
- org.apache.openjpa.jdbc.sql.BooleanRepresentationFactory.Int10BooleanRepresentation
 
- 
- All Implemented Interfaces:
- BooleanRepresentation<java.lang.Integer>
 - Enclosing class:
- BooleanRepresentationFactory
 
 public static class BooleanRepresentationFactory.Int10BooleanRepresentation extends java.lang.Object implements BooleanRepresentation<java.lang.Integer> 
- 
- 
Constructor SummaryConstructors Constructor Description Int10BooleanRepresentation()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetBoolean(java.sql.ResultSet rs, int columnIndex)Read the boolean from the given ResultSetjava.lang.IntegergetRepresentation(boolean bool)voidsetBoolean(java.sql.PreparedStatement stmnt, int idx, boolean val)Set the boolean value into the statementjava.lang.StringtoString()
 
- 
- 
- 
Method Detail- 
setBooleanpublic void setBoolean(java.sql.PreparedStatement stmnt, int idx, boolean val) throws java.sql.SQLExceptionDescription copied from interface:BooleanRepresentationSet the boolean value into the statement- Specified by:
- setBooleanin interface- BooleanRepresentation<java.lang.Integer>
- Throws:
- java.sql.SQLException
 
 - 
getBooleanpublic boolean getBoolean(java.sql.ResultSet rs, int columnIndex) throws java.sql.SQLExceptionDescription copied from interface:BooleanRepresentationRead the boolean from the given ResultSet- Specified by:
- getBooleanin interface- BooleanRepresentation<java.lang.Integer>
- Throws:
- java.sql.SQLException
 
 - 
getRepresentationpublic java.lang.Integer getRepresentation(boolean bool) - Specified by:
- getRepresentationin interface- BooleanRepresentation<java.lang.Integer>
- Returns:
- return the representation for trueandfalse
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-