org.apache.openjpa.jdbc.sql
Class BooleanRepresentationFactory.StringBooleanRepresentation
java.lang.Object
org.apache.openjpa.jdbc.sql.BooleanRepresentationFactory.StringBooleanRepresentation
- All Implemented Interfaces:
- BooleanRepresentation<String>
- Enclosing class:
- BooleanRepresentationFactory
public static class BooleanRepresentationFactory.StringBooleanRepresentation
- extends Object
- implements BooleanRepresentation<String>
BooleanRepresentation which takes 2 strings for true and false representations
as constructor parameter;
BooleanRepresentationFactory.StringBooleanRepresentation
public BooleanRepresentationFactory.StringBooleanRepresentation(String trueRepresentation,
String falseRepresentation)
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<String>
- 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<String>
- Throws:
SQLException
getRepresentation
public String getRepresentation(boolean bool)
- Specified by:
getRepresentation
in interface BooleanRepresentation<String>
- 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.