11 2012 档案

摘要:We live in interesting times. As development gets distributed across the globe, you learn there are lots of people capable of doing your job. You need to keep learning to stay marketable. Otherwise, y... 阅读全文
posted @ 2012-11-30 22:44 sqtds 阅读(200) 评论(0) 推荐(0)
摘要:By Tom Kytehttp://www.oracle.com/technetwork/issue-archive/2006/06-sep/o56asktom-086197.htmlOur technologist explains how ROWNUM works and how to make it work for you.This issue's Ask Tom column is a little different from the typical column. I receive many questions about how to perform top- N a 阅读全文
posted @ 2012-11-28 15:45 sqtds 阅读(262) 评论(0) 推荐(0)
摘要:昨天做完项目后让测试测试了一把,测试说分页查询貌似不起作用,翻到第4页以后,看到的数据结果都是相同的。当时我就觉得很纳闷,不可能啊,分页组件应该是好的,咋可能有问题呢。带着疑问,我打开了自己的ide,在自己的机器上跑了一把,果然有问题。有问题就要找问题:首先把2条查询结果相同的sql打印出来到数据库中执行:sql1: select * from (select t.*, rownum rn from (select t_e_id, t_e_name, t_e_tel, t_e_areacode from (select t.eid t_e_... 阅读全文
posted @ 2012-11-28 13:52 sqtds 阅读(1457) 评论(15) 推荐(0)
摘要:Using checked exceptions exclusively leads to several problems: 使用checked异常会导致一些问题: Too much code 太多的代码Developers will become frustrated by having to catch checked exceptions that they can't reason... 阅读全文
posted @ 2012-11-27 23:14 sqtds 阅读(307) 评论(0) 推荐(0)
摘要:Tomcat6的服务器配置文件放在 ${tomcat6}/conf 目录底下。我们可以在这里找到 server.xml 和 context.xml。当然,还有其他一些资源文件。但是在在本文中我们只用得上这两个,其他的就不介绍了。如果仅限某个web项目范围内可用,可在web项目的META-INF下添加context.xml。例如webapps\call\META-INF下添加1. 首先,需要为数据源配置一个JNDI资源。我们的数据源JNDI资源应该定义在context元素中。在tomcat6版本中,context元素已经从server.xml文件中独立出来了,放在一个context.xml文件中 阅读全文
posted @ 2012-11-27 14:53 sqtds 阅读(233) 评论(0) 推荐(0)
摘要:Consider Consolidating Method Parameters 完善方法的参数 Sometimes it's a good idea to encapsulate multiple parameters to a method into a single object. This may enhance readability and simplify calling cod... 阅读全文
posted @ 2012-11-26 22:44 sqtds 阅读(199) 评论(0) 推荐(0)
摘要:观察者模式 Like the use of interfaces, the Observer design pattern can be used to decouple components and enable extensibility without modification (observing the Open Closed Principle). It also contribut... 阅读全文
posted @ 2012-11-25 22:30 sqtds 阅读(182) 评论(0) 推荐(0)
摘要:Using Callbacks to Achieve Extensibility 利用回调完成可扩展性 Let's now consider another use of "inversion of control" to parameterize a single operation, while moving control and error handling into a framewor... 阅读全文
posted @ 2012-11-24 23:23 sqtds 阅读(193) 评论(0) 推荐(0)
摘要:The Template Method Design Pattern 模板方法 One good use of concrete inheritance is to implement the Template Method design pattern. 类继承的一个好的用法是实现模板方法设计模式 The Template Method design pattern (GoF) addr... 阅读全文
posted @ 2012-11-24 12:10 sqtds 阅读(166) 评论(0) 推荐(0)
摘要:OO Design Recommendations for J2EE Applications j2ee应用推荐的oo设计 It's possible to design a J2EE application so badly that, even if it contains beautifully written Java code at an individual object... 阅读全文
posted @ 2012-11-22 23:19 sqtds 阅读(201) 评论(0) 推荐(0)
摘要:Summary 总结 Important 重要 Testing should occur throughout the software lifecycle. Testing should be a core activity of software development. 测试必须发生在软件开发的整个生命周期。测试必须是软件开发的一个核心任务。 Test cases should... 阅读全文
posted @ 2012-11-21 22:13 sqtds 阅读(170) 评论(0) 推荐(0)
摘要:only for test ,thanks !! Test windows live writer. ok …. 阅读全文
posted @ 2012-11-20 23:31 sqtds 阅读(108) 评论(0) 推荐(0)