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>
BooleanRepresentationFactory.Int10BooleanRepresentation
public BooleanRepresentationFactory.Int10BooleanRepresentation()
setBoolean
public void setBoolean(PreparedStatement stmnt,
int idx,
boolean val)
throws SQLException
- Description copied from interface:
BooleanRepresentation
- Set the boolean value into the statement
- Specified by:
setBoolean
in interface BooleanRepresentation<Integer>
- Throws:
SQLException
getBoolean
public boolean getBoolean(ResultSet rs,
int columnIndex)
throws SQLException
- Description copied from interface:
BooleanRepresentation
- Read the boolean from the given ResultSet
- Specified by:
getBoolean
in interface BooleanRepresentation<Integer>
- Throws:
SQLException
getRepresentation
public Integer getRepresentation(boolean bool)
- Specified by:
getRepresentation
in interface BooleanRepresentation<Integer>
- Returns:
- return the representation for
true
and false
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2006–2015 Apache Software Foundation. All rights reserved.