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>
BooleanRepresentationFactory.BooleanBooleanRepresentation
public BooleanRepresentationFactory.BooleanBooleanRepresentation()
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<Boolean>
- 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<Boolean>
- Throws:
SQLException
getRepresentation
public Boolean getRepresentation(boolean bool)
- Specified by:
getRepresentation
in interface BooleanRepresentation<Boolean>
- 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.