<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>东方咖啡屋</title><link>http://blog.csdn.net/eastcafe/</link><description>郭镇技术BLOG</description><dc:language>zh-CN</dc:language><lastUpdateTime>Fri, 18 Jan 2008 17:53:58 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>eastcafe</dc:creator><title>基于hibernate的开源通用查询框架－bba96 </title><link>http://blog.csdn.net/eastcafe/archive/2008/01/18/2051848.aspx</link><pubDate>Fri, 18 Jan 2008 17:54:00 GMT</pubDate><guid>http://blog.csdn.net/eastcafe/archive/2008/01/18/2051848.aspx</guid><wfw:comment>http://blog.csdn.net/eastcafe/comments/2051848.aspx</wfw:comment><comments>http://blog.csdn.net/eastcafe/archive/2008/01/18/2051848.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/eastcafe/comments/commentRss/2051848.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2051848</trackback:ping><description>bba96-core 核心框架，封装Hibernate Criteria，提供方便的查询以及分页支持，查询参数

bba96-struts 基于Struts2的开发框架，依赖core，提供便捷的CRUD以（分页支持），通过设置form的参数就可以实现复杂的分页查询

&lt;img src ="http://blog.csdn.net/eastcafe/aggbug/2051848.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>eastcafe</dc:creator><title>Hibernate下数据批量处理解决方案 </title><link>http://blog.csdn.net/eastcafe/archive/2008/01/18/2051825.aspx</link><pubDate>Fri, 18 Jan 2008 17:37:00 GMT</pubDate><guid>http://blog.csdn.net/eastcafe/archive/2008/01/18/2051825.aspx</guid><wfw:comment>http://blog.csdn.net/eastcafe/comments/2051825.aspx</wfw:comment><comments>http://blog.csdn.net/eastcafe/archive/2008/01/18/2051825.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/eastcafe/comments/commentRss/2051825.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2051825</trackback:ping><description>很多人都对Java在批量数据的处理方面是否是其合适的场所持有怀疑的念头，由此延伸，那么就会认为ORM可能也不是特别适合数据的批量处理。 其实，我想如果我们应用得当的话，完全可以消除ORM批量处理性能问题这方面的顾虑。下面以Hibernate为例来做为说明，假如我们真的不得不在Java中使用Hibernate来对数据进行批量处理的话。 向数据库插入100 000条数据，用Hibernate可能像这样：
&lt;img src ="http://blog.csdn.net/eastcafe/aggbug/2051825.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>eastcafe</dc:creator><title>在Hibernate中处理批量更新和批量删除</title><link>http://blog.csdn.net/eastcafe/archive/2008/01/18/2051803.aspx</link><pubDate>Fri, 18 Jan 2008 17:25:00 GMT</pubDate><guid>http://blog.csdn.net/eastcafe/archive/2008/01/18/2051803.aspx</guid><wfw:comment>http://blog.csdn.net/eastcafe/comments/2051803.aspx</wfw:comment><comments>http://blog.csdn.net/eastcafe/archive/2008/01/18/2051803.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/eastcafe/comments/commentRss/2051803.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2051803</trackback:ping><description>量更新是指在一个事务中更新大批量数据，批量删除是指在一个事务中删除大批量数据。以下程序直接通过Hibernate API批量更新CUSTOMERS表中年龄大于零的所有记录的AGE字段：
&lt;img src ="http://blog.csdn.net/eastcafe/aggbug/2051803.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>eastcafe</dc:creator><title>Oracle中捕获问题SQL解决CPU过渡消耗</title><link>http://blog.csdn.net/eastcafe/archive/2008/01/16/2047504.aspx</link><pubDate>Wed, 16 Jan 2008 20:58:00 GMT</pubDate><guid>http://blog.csdn.net/eastcafe/archive/2008/01/16/2047504.aspx</guid><wfw:comment>http://blog.csdn.net/eastcafe/comments/2047504.aspx</wfw:comment><comments>http://blog.csdn.net/eastcafe/archive/2008/01/16/2047504.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/eastcafe/comments/commentRss/2047504.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2047504</trackback:ping><description>本文通过实际业务系统中调整的一个案例，试图给出一个常见CPU消耗问题的一个诊断方法.大多数情况下，系统的性能问题都是由不良SQL代码引起的，那么作为DBA，怎样发现和解决这些SQL问题就显得尤为重要. 
&lt;img src ="http://blog.csdn.net/eastcafe/aggbug/2047504.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>eastcafe</dc:creator><title>Tomcat 虚拟目录</title><link>http://blog.csdn.net/eastcafe/archive/2007/10/26/1844409.aspx</link><pubDate>Fri, 26 Oct 2007 09:54:00 GMT</pubDate><guid>http://blog.csdn.net/eastcafe/archive/2007/10/26/1844409.aspx</guid><wfw:comment>http://blog.csdn.net/eastcafe/comments/1844409.aspx</wfw:comment><comments>http://blog.csdn.net/eastcafe/archive/2007/10/26/1844409.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/eastcafe/comments/commentRss/1844409.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1844409</trackback:ping><description>Tomcat 虚拟目录&lt;img src ="http://blog.csdn.net/eastcafe/aggbug/1844409.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>eastcafe</dc:creator><title>让Struts与Hibernate顺利协同工作</title><link>http://blog.csdn.net/eastcafe/archive/2007/09/10/1779885.aspx</link><pubDate>Mon, 10 Sep 2007 22:25:00 GMT</pubDate><guid>http://blog.csdn.net/eastcafe/archive/2007/09/10/1779885.aspx</guid><wfw:comment>http://blog.csdn.net/eastcafe/comments/1779885.aspx</wfw:comment><comments>http://blog.csdn.net/eastcafe/archive/2007/09/10/1779885.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/eastcafe/comments/commentRss/1779885.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1779885</trackback:ping><description>＜!-- Struts Tag Library Descriptors --＞＜taglib＞＜taglib-uri＞/tags/struts-bean＜/taglib-uri＞＜taglib-location＞/WEB-INF/struts-bean.tld＜/taglib-location＞＜/taglib＞＜taglib＞＜taglib-uri＞/tags/struts-html＜/taglib-uri＞＜taglib-location＞/WEB-INF/struts-html.tld＜/taglib-location＞＜/taglib＞＜taglib＞＜taglib-uri＞/tags/struts-logic＜/taglib-uri＞＜taglib-location＞/WEB-INF/struts-logic.tld＜/taglib-location＞＜/taglib＞&lt;img src ="http://blog.csdn.net/eastcafe/aggbug/1779885.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>eastcafe</dc:creator><title>struts+hibernate(dao)+filter的例子</title><link>http://blog.csdn.net/eastcafe/archive/2007/09/09/1778005.aspx</link><pubDate>Sun, 09 Sep 2007 14:25:00 GMT</pubDate><guid>http://blog.csdn.net/eastcafe/archive/2007/09/09/1778005.aspx</guid><wfw:comment>http://blog.csdn.net/eastcafe/comments/1778005.aspx</wfw:comment><comments>http://blog.csdn.net/eastcafe/archive/2007/09/09/1778005.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/eastcafe/comments/commentRss/1778005.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1778005</trackback:ping><description>最近这一个阶段一直在研究hibernate,总感觉好象什么地方特别扭,研究一段时间,看了论坛上的各位大虾和小虾写的例子,自己也写了一个,在这里贴出来,希望得到大家的批评指正,特别是在架构上如何设计给些意见,因为对照关系如一对一,一对多的实现论坛的例子已经很清楚了.&lt;img src ="http://blog.csdn.net/eastcafe/aggbug/1778005.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>eastcafe</dc:creator><title>用模板模式简化DAO操作Hibernate </title><link>http://blog.csdn.net/eastcafe/archive/2007/09/09/1777997.aspx</link><pubDate>Sun, 09 Sep 2007 14:17:00 GMT</pubDate><guid>http://blog.csdn.net/eastcafe/archive/2007/09/09/1777997.aspx</guid><wfw:comment>http://blog.csdn.net/eastcafe/comments/1777997.aspx</wfw:comment><comments>http://blog.csdn.net/eastcafe/archive/2007/09/09/1777997.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/eastcafe/comments/commentRss/1777997.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1777997</trackback:ping><description>hibernate的时候不一定会使用Ref="tag-1329-1.html"&gt;spring，所以我们可以模仿Spring的处理方式，做一个Hibernate的模板，使用模板模式来简化我们的开发，其主要的目的就是为了简化开发，使代码达到最大话的重用。 
相信使用过Spring ＋ Hibernate开发过的人，在写DAO的时候都使用过Spring的HibernateDaoSupport类，然后在实现的时候就可以很轻松的使用getHibernateTemplate()方法之后就可以调用save()、delete()、upDate()等Hibernate的Session的操作，很简单。比如：&lt;img src ="http://blog.csdn.net/eastcafe/aggbug/1777997.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>eastcafe</dc:creator><title>简单就是美 -- 简化hibernate,简化dao</title><link>http://blog.csdn.net/eastcafe/archive/2007/09/09/1777992.aspx</link><pubDate>Sun, 09 Sep 2007 14:11:00 GMT</pubDate><guid>http://blog.csdn.net/eastcafe/archive/2007/09/09/1777992.aspx</guid><wfw:comment>http://blog.csdn.net/eastcafe/comments/1777992.aspx</wfw:comment><comments>http://blog.csdn.net/eastcafe/archive/2007/09/09/1777992.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/eastcafe/comments/commentRss/1777992.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1777992</trackback:ping><description>    首先hibernate是一个优秀的ORM工具(此话鉴定为废话，其次，按照20/80的规律，有80%的问题不需要那20%学习起来比较麻烦的东西。

    很多人在用hibernate的时候一定把关系作为精华来学习，比如一对多，多对一，以及多对多，认为只有熟练运用这个才是对hibernate的真正掌握。
&lt;img src ="http://blog.csdn.net/eastcafe/aggbug/1777992.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>eastcafe</dc:creator><title>Struts+Hibernate(Dao)谈J2EE的数据表示</title><link>http://blog.csdn.net/eastcafe/archive/2007/09/05/1773413.aspx</link><pubDate>Wed, 05 Sep 2007 16:08:00 GMT</pubDate><guid>http://blog.csdn.net/eastcafe/archive/2007/09/05/1773413.aspx</guid><wfw:comment>http://blog.csdn.net/eastcafe/comments/1773413.aspx</wfw:comment><comments>http://blog.csdn.net/eastcafe/archive/2007/09/05/1773413.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/eastcafe/comments/commentRss/1773413.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1773413</trackback:ping><description>持久层的数据表示是PO，其数据来源于数据库，持久层的数据表示例如CMP。在简单的应用中，ActionFormBean和PO几乎是没有区别，所以很多人干脆就是用ActionFormBean来充当PO，于是ActionFormBean从JSP页面到Servlet控制层再到业务层，然后穿过持久层，最后一直映射到数据库表。而PO和数据库表对应，因此如果数据库表不修改，那么PO也不会修改，如果页面的流程和数据库表字段对应关系不一致，那么你又如何能够使用ActionFormBean来取代PO呢？&lt;img src ="http://blog.csdn.net/eastcafe/aggbug/1773413.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>eastcafe</dc:creator><title>改变Tomcat的网站程序默认目录位置 </title><link>http://blog.csdn.net/eastcafe/archive/2007/09/04/1772095.aspx</link><pubDate>Tue, 04 Sep 2007 17:59:00 GMT</pubDate><guid>http://blog.csdn.net/eastcafe/archive/2007/09/04/1772095.aspx</guid><wfw:comment>http://blog.csdn.net/eastcafe/comments/1772095.aspx</wfw:comment><comments>http://blog.csdn.net/eastcafe/archive/2007/09/04/1772095.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/eastcafe/comments/commentRss/1772095.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1772095</trackback:ping><description>改变Tomcat的网站程序默认目录位置 
&lt;img src ="http://blog.csdn.net/eastcafe/aggbug/1772095.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>eastcafe</dc:creator><title>Java数据访问对象(DAO)编程模入门</title><link>http://blog.csdn.net/eastcafe/archive/2007/09/04/1771815.aspx</link><pubDate>Tue, 04 Sep 2007 15:14:00 GMT</pubDate><guid>http://blog.csdn.net/eastcafe/archive/2007/09/04/1771815.aspx</guid><wfw:comment>http://blog.csdn.net/eastcafe/comments/1771815.aspx</wfw:comment><comments>http://blog.csdn.net/eastcafe/archive/2007/09/04/1771815.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/eastcafe/comments/commentRss/1771815.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1771815</trackback:ping><description>J2EE开发人员使用数据访问对象(DAO)设计模式把底层的数据访问逻辑和高层的商务逻辑分开。事务划分：J2EE规范为事务划分描述了两种模式：编程性事务（programmatic）和声明性事务（declarative）。另一种是延期性事务，它把事务划分到调用DAO对象的方法中。实例2展示了一个简单的事务，事务划分代码是在DAO类的外部。// end the transaction    这种事务事务划分策略对在一个单一事务中访问多个DAO的应用程序来说尤为重要。JTA事务比JDBC事务更强大。使用JTA的事务划分。当应用程序调用commit()时，事务管理器使用两段提交协议来结束事务。&lt;img src ="http://blog.csdn.net/eastcafe/aggbug/1771815.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>eastcafe</dc:creator><title>Java入门:浅谈DAO模式</title><link>http://blog.csdn.net/eastcafe/archive/2007/09/04/1771808.aspx</link><pubDate>Tue, 04 Sep 2007 15:09:00 GMT</pubDate><guid>http://blog.csdn.net/eastcafe/archive/2007/09/04/1771808.aspx</guid><wfw:comment>http://blog.csdn.net/eastcafe/comments/1771808.aspx</wfw:comment><comments>http://blog.csdn.net/eastcafe/archive/2007/09/04/1771808.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/eastcafe/comments/commentRss/1771808.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1771808</trackback:ping><description>什么是DAO
    DAO是Data Access Object数据访问接口，数据访问：故名思义就是与数据库打交道。夹在业务逻辑与数据库资源中间。&lt;img src ="http://blog.csdn.net/eastcafe/aggbug/1771808.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>eastcafe</dc:creator><title>struts+hibernate分页</title><link>http://blog.csdn.net/eastcafe/archive/2007/09/04/1771340.aspx</link><pubDate>Tue, 04 Sep 2007 10:14:00 GMT</pubDate><guid>http://blog.csdn.net/eastcafe/archive/2007/09/04/1771340.aspx</guid><wfw:comment>http://blog.csdn.net/eastcafe/comments/1771340.aspx</wfw:comment><comments>http://blog.csdn.net/eastcafe/archive/2007/09/04/1771340.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/eastcafe/comments/commentRss/1771340.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1771340</trackback:ping><description>在进行web应用开发的时候经常要进行分页处理，经常看到一些人在问分页处理的问题，现在我把自己的处理方法写在这儿，希望能对需要进行分页处理的朋友有所帮助。一、在struts中分页有两种结构：1. 在Action中通过DAO查询出所有的记录，然后加到session或request对象中，传到客户端，由JSP进行分页。public class Pager {private int totalRows;public Pager(int _totalRows) {totalRows = _totalRows;totalPages=totalRows/pageSize;&lt;img src ="http://blog.csdn.net/eastcafe/aggbug/1771340.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>eastcafe</dc:creator><title>Struts实现分页</title><link>http://blog.csdn.net/eastcafe/archive/2007/09/04/1771335.aspx</link><pubDate>Tue, 04 Sep 2007 10:13:00 GMT</pubDate><guid>http://blog.csdn.net/eastcafe/archive/2007/09/04/1771335.aspx</guid><wfw:comment>http://blog.csdn.net/eastcafe/comments/1771335.aspx</wfw:comment><comments>http://blog.csdn.net/eastcafe/archive/2007/09/04/1771335.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/eastcafe/comments/commentRss/1771335.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1771335</trackback:ping><description>Struts实现分页。file://总行数boolean rowsAmountSet; file://是否设置过totalRowsAmountint pageSize=2; file://每页行数int currentPage=1; file://当前页码int nextPage;int previousPage;int totalPages; file://总页数boolean hasNext; file://是否有下一页boolean hasPrevious; file://是否有前一页String description;int pageStartRow;int pageEndRow;totalPages=totalRowsAmount/pageSize 1;file://计算当前页开始行和结束行if(currentPage*pageSize pageEndRow=currentPage*pageSize;pageStartRow=pageEndRow-pageSize 1;&lt;img src ="http://blog.csdn.net/eastcafe/aggbug/1771335.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>