以问题为导向的JDBC优化与实现  被引量:1

Optimization and Implementation of Problem-Oriented JDBC

在线阅读下载全文

作  者:彭嘉隆 兰全祥 

机构地区:[1]攀枝花学院,四川攀枝花617000

出  处:《大众科技》2023年第10期22-26,共5页Popular Science & Technology

基  金:2022年校级大学生创新创业训练计划项目(2022cxcy147);四川省创新创业教育示范课程建设项目(Java Web应用开发实训)(sxsxx2002-2021)。

摘  要:文章介绍了JDBC在程序开发中的实现步骤,阐述了原生JDBC在开发过程中存在的问题。以问题为导向,从数据库连接、数据库操作两方面入手,详细介绍了数据库驱动注册、数据库配置信息加载、数据库连接创建及释放、数据库CRUD操作等产生问题的原因,给出了解决数据库连接和操作的优化方案。经验证,优化方案能够有效解决驱动重复注册、配置信息不灵活、操作效率低、CRUD大量冗余代码等问题。最后,介绍了DBCP、C3P0、Druid、DBUtils、JdbcTemplate等开发中用于数据库连接和操作的类库,为开发人员进行JDBC优化提供参考。This paper introduces the implementation steps of JDBC in program development,and expounds the problems existing in the development process of native JDBC.This paper introduces in detail the causes of problems in database-driven registration,database configuration information loading,database connection creation and release,and database CRUD operation from two aspects of database connection and database operation,and gives an optimization scheme to solve database connection and operation.It has been proved that the optimization scheme can effectively solve the problems such as driver registration,inflexible configuration information,low operation efficiency and large number of redundant CRUD codes.Finally,the class libraries used for database connection and operation in DBCP,C3P0,Druid,DBUtils,JdbcTemplate are introduced to provide reference for developers to optimize JDBC.

关 键 词:JDBC 数据库连接优化 数据库操作优化 CRUD 

分 类 号:TP3[自动化与计算机技术—计算机科学与技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象