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

java.lang.Object
  extended by 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>


Constructor Summary
BooleanRepresentationFactory.BooleanBooleanRepresentation()
           
 
Method Summary
 boolean getBoolean(ResultSet rs, int columnIndex)
          Read the boolean from the given ResultSet
 Boolean 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.BooleanBooleanRepresentation

public BooleanRepresentationFactory.BooleanBooleanRepresentation()
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<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.