锘??xml version="1.0" encoding="utf-8" standalone="yes"?>成人一区二区视频,岛国精品一区二区,国产精品灌醉下药二区http://www.aygfsteel.com/leekiang/category/48076.htmlMDA/MDD/TDD/DDD/DDDDDDDzh-cnSat, 08 Oct 2011 10:08:04 GMTSat, 08 Oct 2011 10:08:04 GMT60- ibatis鍘熺悊涓庢簮鐮佸垎鏋?/title>http://www.aygfsteel.com/leekiang/archive/2011/03/17/346435.htmlleekiangleekiangWed, 16 Mar 2011 16:44:00 GMThttp://www.aygfsteel.com/leekiang/archive/2011/03/17/346435.htmlhttp://www.aygfsteel.com/leekiang/comments/346435.htmlhttp://www.aygfsteel.com/leekiang/archive/2011/03/17/346435.html#Feedback0http://www.aygfsteel.com/leekiang/comments/commentRss/346435.htmlhttp://www.aygfsteel.com/leekiang/services/trackbacks/346435.htmlpublic static SqlMapClient buildSqlMapClient(Reader reader) {
聽聽聽 return new SqlMapConfigParser().parse(reader);
聽 }
聽 //SqlMapConfigParser鐨刾arse(Reader reader)鏂規(guī)硶
聽 public SqlMapClient parse(Reader reader) {
聽聽聽 try {
聽聽聽聽聽 usingStreams = false;
聽聽聽聽聽 parser.parse(reader);//姝ゅ鐨刾arser鏄疦odeletParser
聽聽聽聽聽 return state.getConfig().getClient();
聽聽聽 } catch (Exception e) {
聽聽聽聽聽 throw new RuntimeException("Error occurred.聽 Cause: " + e, e);
聽聽聽 }
聽 }
聽鍦╪ew SqlMapConfigParser()鏃跺氨棰勫厛瀵歸厤緗枃浠秞ml鐨勫悇涓妭鐐逛笂瑕佹墽琛屽摢浜涗簨浠跺仛浜嗗畾涔?灝辨槸涓浜涘洖璋冩柟娉?錛屾斁鍦∟odeletParser瀵硅薄鐨勪竴涓狧ashMap灞炴ч噷錛岀湡姝h皟鐢ㄨ繖浜涙柟娉曟槸鍦╪odeletParser.parse(reader)閲屽畬鎴愮殑銆?br />鎵ц涓婅堪鎿嶄綔鍚庝細(xì)鎶婇厤緗枃浠剁殑璇︾粏灞炴у瓨鍌ㄥ埌璇qlMapConfigParser瀵硅薄鐨刋mlParserState瀵硅薄銆乆mlParserState瀵硅薄鎸佹湁鐨凷qlMapConfiguration瀵硅薄浠ュ強(qiáng)(SqlMapConfiguration鎸佹湁鐨凷qlMapClientImpl鍜孲qlMapExecutorDelegate)銆?br />
SqlMapExecutor鎺ュ彛瀹氫箟浜咰RUD絳夋柟娉曪紝SqlMapTransactionManager鎺ュ彛瀹氫箟浜嗚窡浜嬪姟鐩稿叧鐨勬柟娉曪紝SqlMapClient鎺ュ彛鍜孲qlMapSession鎺ュ彛閮界戶鎵夸簡SqlMapExecutor鍜孲qlMapTransactionManager銆傚彧鏄疭qlMapClient澧炲姞浜唎pensession絳夋柟娉曪紝SqlMapSession鎺ュ彛鍙鍔犱簡涓涓柟娉昪lose()銆?br />
SqlMapSessionImpl瀵硅薄鍜孲qlMapClientImpl瀵硅薄鎸佹湁鍏卞悓鐨勫鎵樺璞qlMapExecutorDelegate delegate.騫朵笖鍒╃敤姝ゅ鎵樺璞″疄渚嬪寲浜嗕竴涓猻essionScope瀵硅薄,鐒跺悗瀵瑰鍒犳敼鏌ョ殑璋冪敤鍧囧鎵樺璞℃墽琛屽鐞嗗茍浼犲叆榪欎釜璺熺嚎紼嬬粦瀹氱殑sessionScope瀵硅薄.
鍙湪SqlMapConfig.xml閲岃緗畇ettings灞炴э紝鍏蜂綋鏈夊摢浜涘睘鎬э紝鍒嗗埆琛ㄧず浠涔堝惈涔夎繕涓嶆竻妤氥傝繖浜涘睘鎬у湪ibatis鍚姩鍚庝及璁¢兘淇濆瓨鍦⊿qlMapExecutorDelegate瀵硅薄閲屻?br /><settings
cacheModelsEnabled="false"
enhancementEnabled="false"
lazyLoadingEnabled="false"
/>
闂錛?br />1錛屼嬌鐢⊿qlMapClient鐨勬渶浣?jīng)_疄璺碉紝搴旇鐢ㄥ崟渚嬶紝騫跺彂濡備綍澶勭悊
2錛屼簨鍔°傚崟涓搷浣滀笉闇瑕佹墜鍔ㄦ帶鍒訛紝濡傛灉鏄涓搷浣滐紝鍏坰tartTransaction錛屾墽琛屽涓搷浣滃悗commitTransaction錛屾渶鍚庤繕瑕乪ndTransaction
鍙傝冿細(xì)
1錛?a target="_blank" >ibatis婧愮爜綆鏋?/a>
2錛?a target="_blank" >瀹炵幇ibatis鐨勫姩鎬佸姞杞絪qlmap閰嶇疆鏂囦歡
3錛?a target="_blank" >娣卞叆鍒嗘瀽 iBATIS 妗嗘灦涔嬬郴緇熸灦鏋勪笌鏄犲皠鍘熺悊
4錛?a target="_blank" >Spring闆嗘垚ibatis闂

]]> - ibatishttp://www.aygfsteel.com/leekiang/archive/2011/02/26/345260.htmlleekiangleekiangSat, 26 Feb 2011 14:47:00 GMThttp://www.aygfsteel.com/leekiang/archive/2011/02/26/345260.htmlhttp://www.aygfsteel.com/leekiang/comments/345260.htmlhttp://www.aygfsteel.com/leekiang/archive/2011/02/26/345260.html#Feedback0http://www.aygfsteel.com/leekiang/comments/commentRss/345260.htmlhttp://www.aygfsteel.com/leekiang/services/trackbacks/345260.html<sqlMap namespace="bbs_define">
聽聽聽 <!鈥?selectBySql 鈥?gt;
聽聽聽 <select id="selectBySql" resultClass="java.util.HashMap"
聽聽聽聽聽聽聽 remapResults="true"
聽聽聽聽聽聽聽 parameterClass="java.util.HashMap">
聽聽聽聽聽聽聽 <isNotEmpty property="sql">$sql$</isNotEmpty>
聽聽聽 </select>聽聽
聽聽聽 <!鈥?updateBySql 鈥?gt;
聽聽聽 <update id="updateBySql" parameterClass="java.util.HashMap">
聽聽聽聽聽聽聽 <isNotEmpty property="sql">$sql$</isNotEmpty>
聽聽聽 </update>聽聽
</sqlMap>
鍏朵腑鏈閲嶈鐨勮緗槸鈥渞emapResults="true"鈥濄俽emapResults璁劇疆鎴恡rue錛岃〃紺虹粨鏋滃瓧孌靛彲浠ユ槸涓嶅畾鐨勩備篃灝辨槸璇達(dá)紝榪欐鍙繑鍥炩淚D,NAME鈥濅袱涓瓧孌碉紝涓嬫浣曡繑鍥炩淚D,NAME,TYPE_ID鈥濅笁涓瓧孌碉紝涔熷彲浠ヨ繑鍥炩?鈥?br />
鐢╥batis瀹炵幇鏁版嵁鍒囧垎錛?br />http://code.google.com/p/shardbatis/
http://code.google.com/p/ibatis-sharding/
闃塊噷寮婧愮殑CobarClient(http://www.javaeye.com/topic/977224)
鍙傝冿細(xì)
1錛孖batis鐨勫姩鎬丼QL http://hz.seraph.blog.163.com/blog/static/981677452008111902458957/
2錛屼嬌鐢╥batis鐨勪竴鐐瑰皬鎶宸?http://qa.taobao.com/?p=7371
3錛宧ttp://www.ibm.com/developerworks/cn/opensource/os-cn-ibatis/?ca=drs-tp4608
4錛宧ttp://itnewsvendor.appspot.com/2303004-ibatis_%E6%95%B4%E7%90%86_batis.html
5錛宧ttp://itnewsvendor.appspot.com/4633016-ibatis_2.x_%E6%97%A5%E5%BF%97.html
6錛宧ttp://blog.sina.com.cn/s/blog_63f93f510100i16h.html
7錛宧ttp://lijingyao8206.javaeye.com/blog/840204
8, http://qa.taobao.com/?p=7677
9錛宧ttp://blog.csdn.net/sunyujia/archive/2008/07/13/2646030.aspx
10錛宨BATIS涓嶉傚悎浣跨敤鐨勫洓縐嶆儏鍐墊祬鏋?http://developer.51cto.com/art/200907/136897.htm
11錛宧ttp://blog.sina.com.cn/s/blog_63f93f510100i16h.html
12錛?a href="/stone2083/archive/2010/08/12/328602.html">IBatis涓婦AO鍗曞厓嫻嬭瘯鍙︾被鎬濊礬
]]>
主站蜘蛛池模板:
迁西县|
瑞丽市|
青河县|
辽源市|
八宿县|
鄂伦春自治旗|
龙江县|
沈丘县|
紫金县|
崇文区|
安达市|
台州市|
武穴市|
洛宁县|
南木林县|
沙湾县|
武隆县|
绥宁县|
滨州市|
临沂市|
铁岭县|
鞍山市|
会泽县|
阳东县|
嫩江县|
洪雅县|
社旗县|
石楼县|
钦州市|
南平市|
屏东县|
颍上县|
扶绥县|
辽宁省|
乐昌市|
开远市|
顺义区|
武安市|
江都市|
荃湾区|
昆明市|