st.setBoolean(idx++, pfix.length() == 0 );
st.setInt(idx++, pfix.length() == 0 ? 1 : 0 );
	public error user_conf_type_has( int dom_id, String login, 			String pfix, short ut )			throws null_error, db_error, except { try {		PreparedStatement st = null;		ResultSet res = null;		err_code ec = err_code.err_noent;		String ec_msg = "";		try {			st = con.prepareStatement( 				"SELECT COUNT(*) FROM vq_view_user_conf_type_has WHERE "				+"id_domain=? AND login=? AND (ext=? OR (?=1 AND ext IS NULL))"				+" AND type=?" );			int idx=1;			st.setInt(idx++, dom_id);			st.setString(idx++, login.toLowerCase());			st.setString(idx++, pfix.toLowerCase());			st.setBoolean(idx++, pfix.length() == 0 );			st.setShort(idx++, ut );			res = st.executeQuery();			while(res.next()) {				ec = res.getInt(1) != 0					? err_code.err_no : err_code.err_noent;				ec_msg = "";			}		} finally {			try { if(res != null) res.close(); } catch(Exception e) {}			try { if(st != null) st.close(); } catch(Exception e) {}		}		return lr(ec, ec_msg);	} catch( SQLException e ) {		throw new db_error(e.getMessage(), getClass().getName(), 0);	} catch( NullPointerException e ) {		throw new null_error(e.getMessage(), getClass().getName(), 0);	} catch( Exception e ) {		throw new except(e.getMessage(), getClass().getName(), 0);	} }