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