if( ! res.next() ) return lr(err_code.err_noent, "");  idx = 1; ui.value.type = res.getShort(idx++); if( res.wasNull() ) ui.value.type = 0; ui.value.val = res.getString(idx++); if( res.wasNull() ) ui.value.val = "";
if( res.next() ) { idx = 1; ui.value.type = res.getShort(idx++); if( res.wasNull() ) ui.value.type = 0; ui.value.val = res.getString(idx++); if( res.wasNull() ) ui.value.val = ""; } else { ec = err_code.err_noent; ec_msg = ""; }
	public error user_conf_get( user_conf_infoHolder ui )			throws null_error, db_error, except { try {		PreparedStatement st = null;		ResultSet res = null;		try {			st = con.prepareStatement( 				"SELECT TYPE,VAL FROM vq_view_USER_CONF_GET WHERE id_conf=?");			int idx=1;			st.setInt(idx++, ui.value.id_conf);			res = st.executeQuery();			if( ! res.next() )				return lr(err_code.err_noent, "");			idx = 1;			ui.value.type = res.getShort(idx++);			if( res.wasNull() ) ui.value.type = 0;			ui.value.val = res.getString(idx++);			if( res.wasNull() ) ui.value.val = "";		} finally {			try { if(res != null) res.close(); } catch(Exception e) {}			try { if(st != null) st.close(); } catch(Exception e) {}		}		return lr(err_code.err_no, "");	} 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);	} }