登录
首页 » 点对点 » 一个通用些连接数据库的包,其中有三个类: 1.DBConn.java:主要用来连接和关闭数据库.连接数据库的URL,USER,PASSWORD通过配置文件完成c...

一个通用些连接数据库的包,其中有三个类: 1.DBConn.java:主要用来连接和关闭数据库.连接数据库的URL,USER,PASSWORD通过配置文件完成c...

于 2023-05-11 发布 文件大小:45.51 kB
0 60
下载积分: 2 下载次数: 1

代码说明:

一个通用些连接数据库的包,其中有三个类: 1.DBConn.java:主要用来连接和关闭数据库.连接数据库的URL,USER,PASSWORD通过配置文件完成com/bcxy/util/systemconfig.properties 2.SqlQuery.java:主要用来执行查询的SQL语句.构造方法: SqlQuery(Connection con, String sql) 将结果存在容器中. 3.SqlUpdate.java:主要用来执行更新的SQL语句.构造方法: SqlUpdate(Connection con, String sql) 另: jar包中有一个util.*,主要是一些常用工具类,下面简单介绍一下: 其中主要包括了 StringUtil.java:对字串的一些操作 DateUtil.java:对时间的一些操作 FileUtil.java:对文件的一些操作 SystemConfig.java:读取配置文件systemconfig.properties ParamUtil.java:页面传参数的操作-a more generic database connectivity package, which has three categories : 1.DBConn.java : mainly used to connect to the database and closure. Connecting to the database URL, USER, PASSWORD through configuration files completed com/bcxy/util/systemconfig.properties 2.SqlQuery. java : mainly used for the implementation of the SQL statement. Construction : SqlQuery (Connection con, String sql) of the results there containers. 3.SqlUpdate.java : mainly used for the implementation of the updated SQL. Construction : SqlUpdate (Conne

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696518资源总数
  • 105554会员总数
  • 2今日下载