String code = rs.getString(name); if ( code==null || code.length()==0 ) { return null; } else { return getTrueString().equalsIgnoreCase( code.trim() ) ? Boolean.TRUE : Boolean.FALSE; }
return "'" + toCharacter(value) + "'";
st.setString( index, toCharacter(value) );
return Types.CHAR;
if ( getTrueString().equalsIgnoreCase(xml) ) { return Boolean.TRUE; } else if ( getFalseString().equalsIgnoreCase(xml) ) { return Boolean.FALSE; } else { throw new HibernateException("Could not interpret: " + xml); }
return ( (Boolean) value ).booleanValue() ? getTrueString() : getFalseString();