org.apache.openjpa.jdbc.sql
Class BooleanRepresentationFactory.Int10BooleanRepresentation

java.lang.Object
  extended by 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
BooleanRepresentationFactory.Int10BooleanRepresentation()
           
 
Method Summary
 boolean getBoolean(ResultSet rs, int columnIndex)
          Read the boolean from the given ResultSet
 Integer getRepresentation(boolean bool)
           
 void setBoolean(PreparedStatement stmnt, int idx, boolean val)
          Set the boolean value into the statement
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanRepresentationFactory.Int10BooleanRepresentation

public BooleanRepresentationFactory.Int10BooleanRepresentation()
Method Detail

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.