int value = rs.getInt( name ); if ( rs.wasNull() ) { return getDefaultValue(); } else if ( value == 0 ) { return Boolean.FALSE; } else { return Boolean.TRUE; }
return "numeric_boolean";
return ( ( Boolean ) value ).booleanValue() ? "1" : "0";
if ( value == null ) { st.setNull( index, Types.INTEGER ); } else { boolean bool = ( ( Boolean ) value ).booleanValue(); st.setInt( index, bool ? 1 : 0 ); }
return Types.INTEGER;