public void Insert( int step_id, int host_id, byte[] wiki_abrv, String wiki_date, String import_name, int import_type, byte zip_type, byte[] md5, long size_zip, long size_raw, long prog_size_end, int prog_count_end) { if (insert_stmt == null) insert_stmt = conn.Stmt_insert(tbl_name, flds); insert_stmt.Clear() .Val_int(fld_step_id, step_id) .Val_int(fld_host_id, host_id) .Val_bry_as_str(fld_wiki_abrv, wiki_abrv) .Val_str(fld_wiki_date, wiki_date) .Val_str(fld_import_name, import_name) .Val_int(fld_import_type, import_type) .Val_byte(fld_import_zip, zip_type) .Val_long(fld_import_size_zip, size_zip) .Val_long(fld_import_size_raw, size_raw) .Val_bry_as_str(fld_import_md5, md5) .Val_long(fld_prog_size_end, prog_size_end) .Val_int(fld_prog_count_end, prog_count_end) .Exec_insert(); }
public static void Insert(Db_stmt stmt, byte status, int id, byte wkr_tid, String wkr_msg) { stmt.Clear().Val_int(id).Val_byte(status).Val_byte(wkr_tid).Val_str(wkr_msg).Exec_insert(); }