Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java EE 综合讨论区  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:SQLExecutor : A Simple Open-Source JDBC Framework (TheServerSide) [Re:why]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2003-09-12 05:31 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
More comments:

user-related:
1. Connection pool should be an interface, not a concrete class, so we could plug in other implementations, e.g., DataSource/JNDI lookup.
2. This implementation of Connection pool assumes we can create as many connections as we want - if none is available, creat a new one. So this is not in a production quality.

implementation-related
1. It would be better that SQLResults is also an interface, to shield out what users get and what package creator needs to populate; it would be easier to maintain it too, e.g., performance improvement later on, we just change the class, not the interface.
2. Transaction can be implemented in a seperate class to avoid complexity.
3. A better pool can be implemented using BoundedBuffer in Doug Lee's util.concurrent package.
4. Move all implementations to subdirectories could have a cleaner view of the src tree.

So overall, this one is really close except the connection pool.



"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler, Refactoring - Improving the Design of Existing Code

话题树型展开
人气 标题 作者 字数 发贴时间
18675 [精华] SQLExecutor : A Simple Open-Source JDBC Framework (TheServerSide) why 940 2003-09-03 09:51
14894 Re:SQLExecutor : A Simple Open-Source JDBC Framework (TheServerSide) zls 192 2003-10-24 01:24
14724 Re:SQLExecutor : A Simple Open-Source JDBC Framework (TheServerSide) floater 1194 2003-10-26 10:00
14865 Re:SQLExecutor : A Simple Open-Source JDBC Framework (TheServerSide) Julian13 11 2003-09-11 03:03
14871 Re:SQLExecutor : A Simple Open-Source JDBC Framework (TheServerSide) floater 325 2003-09-11 04:27
14776 Re:SQLExecutor : A Simple Open-Source JDBC Framework (TheServerSide) floater 131 2003-10-21 23:19
15190 Re:SQLExecutor v1.22 why 1276 2004-08-29 13:37
14813 Re:SQLExecutor : A Simple Open-Source JDBC Framework (TheServerSide) zls 109 2003-10-24 01:25
14732 Re:SQLExecutor : A Simple Open-Source JDBC Framework (TheServerSide) why 176 2003-10-25 16:37
14829 Re:SQLExecutor : A Simple Open-Source JDBC Framework (TheServerSide) zls 185 2003-10-26 16:46
14884 Re:SQLExecutor : A Simple Open-Source JDBC Framework (TheServerSide) why 327 2003-10-26 17:24
14779 Re:SQLExecutor : A Simple Open-Source JDBC Framework (TheServerSide) zls 47 2003-10-21 12:51
14804 Re:SQLExecutor : A Simple Open-Source JDBC Framework (TheServerSide) floater 1914 2003-09-11 22:57
15972 Re:SQLExecutor : A Simple Open-Source JDBC Framework (TheServerSide) floater 961 2003-09-12 05:31
14983 Re:SQLExecutor : A Simple Open-Source JDBC Framework (TheServerSide) floater 755 2003-09-08 22:31
14914 Re:SQLExecutor : A Simple Open-Source JDBC Framework (TheServerSide) why 1555 2003-09-10 20:39
15082 Re:SQLExecutor : A Simple Open-Source JDBC Framework (TheServerSide) Julian13 94 2003-09-09 11:34
14965 Re:SQLExecutor : A Simple Open-Source JDBC Framework (TheServerSide) floater 174 2003-09-09 11:55

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923