锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲av福利无码无一区二区,国产成人综合亚洲,亚洲电影一区二区三区http://www.tkk7.com/baizhihui19870626/category/52778.html璁板綍鏈?/description>zh-cnFri, 12 Oct 2012 09:09:51 GMTFri, 12 Oct 2012 09:09:51 GMT60鍏充簬Ibatis insert鍚庤繑鍥炲間負(fù)null鐨勮В鍐沖姙娉曪紙杞級 http://www.tkk7.com/baizhihui19870626/articles/389469.html灝忕櫧19870626灝忕櫧19870626Fri, 12 Oct 2012 07:57:00 GMThttp://www.tkk7.com/baizhihui19870626/articles/389469.htmlhttp://www.tkk7.com/baizhihui19870626/comments/389469.htmlhttp://www.tkk7.com/baizhihui19870626/articles/389469.html#Feedback0http://www.tkk7.com/baizhihui19870626/comments/commentRss/389469.htmlhttp://www.tkk7.com/baizhihui19870626/services/trackbacks/389469.html
Java浠g爜
Executes a mapped SQL INSERT statement. Insert is a bit different from other update methods, as it provides facilities for returning the primary key of the newly inserted row (rather than the effected rows). This functionality is of course optional.

The parameter object is generally used to supply the input data for the INSERT values.

Parameters:
id - The name of the statement to execute.
parameterObject - The parameter object (e.g. JavaBean, Map, XML etc.).
Returns:
The primary key of the newly inserted row. This might be automatically generated by the RDBMS, or selected from a sequence table or other source.
Throws:
java.sql.SQLException - If an error occurs.

Executes a mapped SQL INSERT statement. Insert is a bit different from other update methods, as it provides facilities for returning the primary key of the newly inserted row (rather than the effected rows). This functionality is of course optional.

The parameter object is generally used to supply the input data for the INSERT values.

Parameters:
id - The name of the statement to execute.
parameterObject - The parameter object (e.g. JavaBean, Map, XML etc.).
Returns:
The primary key of the newly inserted row. This might be automatically generated by the RDBMS, or selected from a sequence table or other source.
Throws:
java.sql.SQLException - If an error occurs.


瀹冪殑鎰忔濇槸璇磋繑鍥炲兼槸鏂版彃鍏ヨ褰曠殑涓婚敭錛岀被鍨嬩負(fù)Object涓昏鏄洜涓轟富閿被鍨嬪彲浠ユ槸int涔熷彲浠ユ槸String綾誨瀷銆?

鐒惰岋紝濡傛灉鎴戜滑浣跨敤涓嬪垪鐨勯厤緗枃浠惰繘琛屾彃鍏ョ殑璇濓紝榪斿洖鐨勫間負(fù)null

Xml浠g爜
<insert id="insertPrdcategory" parameterClass="Prdcategory">
insert into Prdcategory ( name,pid,deep ) values ( #name#,
#pid#, #deep# )
</insert>

<insert id="insertPrdcategory" parameterClass="Prdcategory">
insert into Prdcategory ( name,pid,deep ) values ( #name#,
#pid#, #deep# )
</insert>

閭f垜浠鎬庢牱瑙e喅榪欎釜闂錛岃瀹冭繑鍥炴彃鍏ヨ鐨勪富閿憿錛岃繖鏃舵垜浠氨鏄嬌鐢ㄥ埌<selectKey>,涓嬮潰浠呬互MSSQL鏁版嵁搴撲負(fù)渚嬶紝鏀瑰啓涓婅堪閰嶇疆鏂囦歡錛屽叿浣撳涓嬶細(xì)



Xml浠g爜
<insert id="insertPrdcategory" parameterClass="Prdcategory">
insert into Prdcategory ( name,pid,deep ) values ( #name#,
#pid#, #deep# )
<selectKey resultClass="int" keyProperty="id">
select max(id) from Prdcategory
</selectKey>
</insert>

<insert id="insertPrdcategory" parameterClass="Prdcategory">
insert into Prdcategory ( name,pid,deep ) values ( #name#,
#pid#, #deep# )
<selectKey resultClass="int" keyProperty="id">
select max(id) from Prdcategory
</selectKey>
</insert>


DAO鐨勫疄鐜扮被鏂規(guī)硶閲岄潰灝卞簲璇ヨ繖鏍峰啓浜嗭紙娉ㄦ剰鏁村瀷杞崲鐢↖nteger綾誨悕錛?

Java浠g爜
public int insertPrdcategory(Prdcategory product) throws Exception {
return (Integer)IbatisUtil.getSqlMapper().insert("insertPrdcategory", product);
}

public int insertPrdcategory(Prdcategory product) throws Exception {
return (Integer)IbatisUtil.getSqlMapper().insert("insertPrdcategory", product);
}


榪欐牱灝辯畻鏄疧K浜嗐?


]]>
主站蜘蛛池模板: va亚洲va日韩不卡在线观看| 免费三级毛片电影片| 国产精品酒店视频免费看| 亚洲最大的黄色网| 国产曰批免费视频播放免费s | 亚洲精品无码专区在线播放| 青娱乐免费视频在线观看| 91午夜精品亚洲一区二区三区| 67194熟妇在线永久免费观看| 亚洲一级免费视频| 无码人妻精品一二三区免费| 亚洲av永久无码精品网址| 波多野结衣视频在线免费观看| 国产大陆亚洲精品国产| 亚洲中文字幕第一页在线| 国产成人免费AV在线播放| 亚洲一区影音先锋色资源| 久久精品无码一区二区三区免费| 日韩亚洲国产高清免费视频| 日本免费电影一区| 大片免费观看92在线视频线视频| 人人狠狠综合久久亚洲婷婷| 日韩免费人妻AV无码专区蜜桃 | 亚洲日韩精品A∨片无码加勒比| 国产精品久久香蕉免费播放| 一级做a毛片免费视频| 婷婷久久久亚洲欧洲日产国码AV| 永久免费视频网站在线观看| 亚洲精品国产首次亮相| JLZZJLZZ亚洲乱熟无码| 久久www免费人成看片| 亚洲av日韩av永久无码电影| 亚洲精品无码精品mV在线观看| 91av在线免费视频| 精品亚洲成a人在线观看| 国产亚洲综合一区柠檬导航| 成人免费AA片在线观看| 一个人看的www视频免费在线观看| 久久亚洲国产成人亚| 国产又粗又长又硬免费视频| 成人免费区一区二区三区|