??xml version="1.0" encoding="utf-8" standalone="yes"?>国产最顶级的黄色片在线免费观看,国产一区二区三区久久精品,欧美成熟毛茸茸http://www.aygfsteel.com/tonylovexl/archive/2007/05/15/115915.html#117680beansoftbeansoftTue, 15 May 2007 10:52:00 GMThttp://www.aygfsteel.com/tonylovexl/archive/2007/05/15/115915.html#117680
然后遍历一? 貌似以前 BlogJava 有h惛_的办法是?char 的范围是不是 BIG5 Unicode 范围内的.


beansoft 2007-05-15 18:52 发表评论
]]>
如何做TableView[未登录]http://www.aygfsteel.com/tonylovexl/archive/2007/05/09/115424.html#116218阿强阿强Wed, 09 May 2007 08:36:00 GMThttp://www.aygfsteel.com/tonylovexl/archive/2007/05/09/115424.html#116218

阿强 2007-05-09 16:36 发表评论
]]>
re: 请高手解围[未登录]http://www.aygfsteel.com/tonylovexl/archive/2007/05/07/115424.html#115662菜鸟菜鸟Mon, 07 May 2007 01:13:00 GMThttp://www.aygfsteel.com/tonylovexl/archive/2007/05/07/115424.html#115662

菜鸟 2007-05-07 09:13 发表评论
]]>
re: 请高手解?/title><link>http://www.aygfsteel.com/tonylovexl/archive/2007/05/06/115424.html#115500</link><dc:creator>Pande</dc:creator><author>Pande</author><pubDate>Sat, 05 May 2007 23:48:00 GMT</pubDate><guid>http://www.aygfsteel.com/tonylovexl/archive/2007/05/06/115424.html#115500</guid><description><![CDATA[<a target="_new" >http://www.zeali.net/entry/19</a><img src ="http://www.aygfsteel.com/tonylovexl/aggbug/115500.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/tonylovexl/" target="_blank">Pande</a> 2007-05-06 07:48 <a href="http://www.aygfsteel.com/tonylovexl/archive/2007/05/06/115424.html#115500#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 请高手解?/title><link>http://www.aygfsteel.com/tonylovexl/archive/2007/05/05/115424.html#115428</link><dc:creator>久城</dc:creator><author>久城</author><pubDate>Sat, 05 May 2007 07:53:00 GMT</pubDate><guid>http://www.aygfsteel.com/tonylovexl/archive/2007/05/05/115424.html#115428</guid><description><![CDATA[xQ偶也不?.. <br>据说要用到兑换表q行转换Q反正不是编码互换问题?img src ="http://www.aygfsteel.com/tonylovexl/aggbug/115428.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/tonylovexl/" target="_blank">久城</a> 2007-05-05 15:53 <a href="http://www.aygfsteel.com/tonylovexl/archive/2007/05/05/115424.html#115428#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 有没哪位大哥大姐帮帮我?http://www.aygfsteel.com/tonylovexl/archive/2007/04/26/113039.html#113896l雨渔Rl雨渔RThu, 26 Apr 2007 12:16:00 GMThttp://www.aygfsteel.com/tonylovexl/archive/2007/04/26/113039.html#113896

l雨渔R 2007-04-26 20:16 发表评论
]]>
re: 有没哪位大哥大姐帮帮我?http://www.aygfsteel.com/tonylovexl/archive/2007/04/26/113039.html#113874123123Thu, 26 Apr 2007 10:06:00 GMThttp://www.aygfsteel.com/tonylovexl/archive/2007/04/26/113039.html#113874Query q = session.createQuery("from FooBar as f");
q.setFirstResult(500);
q.setMaxResults(100);
List l = q.list();
那么Hibernate底层如何实现分页的呢QHibernateҎQueryDSQL语句的地Ҏ在org.hibernate.loader.LoadercȝdivpareQueryStatementҎ中,对分|持的代码在这一D中可以发现Q?
if (useLimit)
{
sql = dialect.getLimitString(
sql.trim(), //use of trim() here is ugly?
useOffset ? getFirstRow(selection) : 0,
getMaxOrLimit(selection, dialect)
);
}
此处调用Dialect的getLimitStringҎ来得C同^台的分页语句?
在MySQLDialect中是如下实现getLimitStringҎ的:
public String getLimitString(String sql, boolean hasOffset)
{
return new StringBuffer( sql.length()+20 )
.append(sql)
.append( hasOffset ? " limit ?, ?" : " limit ?")
.toString();
}
q是MySQL的专用分语句,再来看Oracle9DialectQ?
public String getLimitString(String sql, boolean hasOffset) {

sql = sql.trim();
boolean isForUpdate = false;
if ( sql.toLowerCase().endsWith(" for update") ) {
sql = sql.substring( 0, sql.length()-11 );
isForUpdate = true;
}

StringBuffer pagingSelect = new StringBuffer( sql.length()+100 );
if (hasOffset) {
pagingSelect.append("select * from ( select row_.*, rownum rownum_ from ( ");
}
else {
pagingSelect.append("select * from ( ");
}
pagingSelect.append(sql);
if (hasOffset) {
pagingSelect.append(" ) row_ where rownum <= ?) where rownum_ > ?");
}
else {
pagingSelect.append(" ) where rownum <= ?");
}

if ( isForUpdate ) {
pagingSelect.append( " for update" );
}

return pagingSelect.toString();
}
Oracle采用嵌套3层的查询语句l合rownum来实现分,q在Oracle上是最好的方式Q因为如果只是一层或者两层的查询语句的rownum不能支持order by?
此外InterbaseQPostgreSQLQHSQL{也在语法别上支持分页Q具体实现可以查看相应的Dialect实现。如果数据库不支持分늚SQL语句Q那么如果数据库支持可滚动游标,那么Hibernate׃采用ResultSet的absoluteҎ直接Ud查询LQ否则用@环语句,通过rs.next一步步Ud到要查询的数据处Q?
final int firstRow = getFirstRow( selection );
if ( firstRow != 0 )
{
if ( getFactory().getSettings().isScrollableResultSetsEnabled() )
{
// we can go straight to the first required row
rs.absolute( firstRow );
}
else
{
// we need to step through the rows one row at a time (slow)
for ( int m = 0; m < firstRow; m++ ) rs.next();
}
}

可见使用HibernateQ在q行查询分页的操作上Q是h非常大的灉|性,Hibernate会首先尝试用特定数据库的分页sqlQ如果没用,再尝试ScrollableQ如果不支持Scrollable再采用rset.next()Ud的办法。这h兼顾了查询分늚性能Q同时又保证了代码在不同的数据库之间的可UL性?


123 2007-04-26 18:06 发表评论
]]>
re: 初识数据?/title><link>http://www.aygfsteel.com/tonylovexl/archive/2006/11/06/79278.html#79289</link><dc:creator>temp</dc:creator><author>temp</author><pubDate>Sun, 05 Nov 2006 16:25:00 GMT</pubDate><guid>http://www.aygfsteel.com/tonylovexl/archive/2006/11/06/79278.html#79289</guid><description><![CDATA[我也在学OracleQ很有意思,以前学过数据库原理,现在每周都能上机Q共同进?img src ="http://www.aygfsteel.com/tonylovexl/aggbug/79289.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/tonylovexl/" target="_blank">temp</a> 2006-11-06 00:25 <a href="http://www.aygfsteel.com/tonylovexl/archive/2006/11/06/79278.html#79289#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank">ƽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">˫</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ͷ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ͼ</a>| <a href="http://" target="_blank">Դ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ï</a>| <a href="http://" target="_blank">˷</a>| <a href="http://" target="_blank">пǰ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ȫ</a>| <a href="http://" target="_blank">ľ</a>| <a href="http://" target="_blank">ˮ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ƺ</a>| <a href="http://" target="_blank">ŷ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">̫</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ٸ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ӱʡ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ﶫ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">۽</a>| <a href="http://" target="_blank"></a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>