会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
cloudsky
QQ群交流:微服务架构实战 181942601 nlp研究与讨论 1群598640522
大数据_人工智能交流621943289
博客园
首页
新随笔
联系
管理
订阅
2011年4月19日
设计模式(7)-模板(从事务处理应用的模板)
摘要: 首先看一个对于数据库操作的程序:#include <iostream>using namespace std;class DataOper{public: void insertStu(){ cout<<"开连接..."<<endl; cout<<"开启事务..."<<endl; cout<<"执行insert()操作"<<endl; cout<<"提交事务..."<<endl; cout<<&q
阅读全文
posted @ 2011-04-19 10:17 skyme
阅读(495)
评论(0)
推荐(0)
编辑
公告