首页 | 本学科首页   官方微博 | 高级检索  
     

JDBC数据库连接池中事务处理的研究与实现
引用本文:何爱华,戚晓明. JDBC数据库连接池中事务处理的研究与实现[J]. 四川理工学院学报(自然科学版), 2011, 24(4): 422-425
作者姓名:何爱华  戚晓明
作者单位:1. 蚌埠学院计算机科学与技术系,安徽蚌埠,233030
2. 中国矿业大学地理信息与遥感科学系,江苏徐州,221116
基金项目:高校优秀青年人才基金项目
摘    要:JDBC驱动程序提供的连接类实现了事务控制机制,为了实现多任务多用户的操作,本文提出了一种禁用自动提交模式,该模式把对事务的控制权转交给程序开发人员,由程序员决定在适当的时候调用连接对象的适当方法来完成事务的任务。

关 键 词:连接池  事务处理  ACID  单事务  嵌套事务

Study and Implementation of the Transaction in the JDBC Database Connection Pool
HE Ai-hua,QI Xiao-ming. Study and Implementation of the Transaction in the JDBC Database Connection Pool[J]. Journal of Sichuan University of Science & Engineering(Natural Science Editton), 2011, 24(4): 422-425
Authors:HE Ai-hua  QI Xiao-ming
Affiliation:1.Department of Computer Science and Technology,Bengbu College,Bengbu 233030,China;2.Department of Remote Sensing and Geographic Information Science,China University of Mining and Technology,Xuzhou 221116,China)
Abstract:The connection class offers a transaction control mechanism in the JDBC drivers,and the JDBC drivers will automatically starts a transaction.By this way,the drivers will automatically end the transaction.It applies to any single user database,for many users of the database application,must change this automatic the way to achieve much more users.To solve the problem,a mode disables automatic submitted,the mode of the transaction control over to the application developer.Programmer in an appropriate time to call the connection object to the proper way to accomplish the task.
Keywords:connection pooling  transaction  ACID  single transaction  nested transaction
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号