共 26 篇文章 |
|
Procedure Flashback_Op(v_table_owner Varchar2,v_table_name Varchar2,v_FlashbackScn Number,v_xid Varchar2,v_dbid number); 阅1479 转5 评0 公众公开 11-06-15 14:24 |
阅1604 转17 评0 公众公开 11-06-15 14:21 |
Java代码 HashMap paramMap = new HashMap(); paramMap.put("contactId", new Integer(1)); paramMap.put("firstName", "Sunil"); paramMap.put("lastName", "Patil"); sqlMap.queryForObject("swapCustomerName", paramMap); 阅2260 转4 评0 公众公开 11-06-15 14:15 |
ibatis与存储过程(带输出参数的存储过程)升级版v1.1初始版:http://blog.csdn.net/fy_kenny/archive/2008/04/30/2350586.aspx全部是针对Microsoft SQL Server 2000的Stored Procedure的例子:参照《iBATIS in Action》书写:1. max_in_exampleStored Procedure: a.CREATE PROCEDURE [dbo].[max_in_example]@a INTEGER = 0 OUTPUT,@b INTEGER =... 阅672 转4 评0 公众公开 11-06-15 14:07 |
ibatis与存储过程(带输出参数的存储过程)全部是针对Microsoft SQL Server 2000的Stored Procedure的例子:参照《iBATIS in Action》书写:1. max_in_exampleStored Procedure:CREATE PROCEDURE [dbo].[max_in_example]@a INTEGER = 0 OUTPUT,@b INTEGER = 0 OUTPUT,@c INTEGER = 0 OUTPUTAS.Java Code:publicstatic Map swap(int a, int b) t... 阅1482 转4 评0 公众公开 11-06-15 14:02 |
关于iBATIS的sqlmap的几点说明1.对于数据库设计DATE类型,如果我们要要求返回带时间的格式时间"yyyy-MM-dd HH:mm:ss" 那么我们的 Java代码 <result column="TBSJ" property="tbsj" jdbcType="DATETIME" /><dynamic><isNotEmpty property="tznr" close=",">TZN... 阅2106 转6 评0 公众公开 09-04-20 16:58 |
iBatis框架batch处理问题分析及优化在JDBC中如何做batch处理JDBC提供了数据库batch处理的能力,在数据大批量操作(新增、删除等)的情况下可以大幅度提升系统的性能。按照代码1的方式执行程序,当batch size很小的时候尽管享受不到batch处理带来的好处,但是也不至于会出什么大问题,但是当batch size值很大的时候(我在程序中试验过1000-5000... 阅1748 转8 评0 公众公开 09-04-20 13:15 |
Ibatis2.0使用说明(二)——配置篇(4)Parameter Maps and Inline Parameters <parameterMap id="parameterMapName" [class="Author"]> <parameter property ="propertyName" [jdbcType="VARCHAR"] [javaType="string"] [nullValue="NUMERIC"] [null="... 阅679 转13 评0 公众公开 09-04-20 13:11 |
如果你写成:<select id="getAuthor1" parameterClass="int" resultClass="Author"> SELECT auth_id,auth_name,auth_age,auth_tel,auth_address FROM author WHERE auth_id = #id#</select>那么在你的Author类中,要有auth_id,auth_name,auth_age,auth_tel,auth_address属性,并且要有相应的g... 阅800 转16 评0 公众公开 09-04-20 12:29 |
<delete> idparameterClassparameterMap All dynamic elements insertupdate.—Oracle SEQUENCE Example --><insert id="insertProduct-ORACLE" parameterClass="com.domain.Product"> <selectKey resultClass="int" keyProperty="id" > SELECT STOCKIDSEQU... 阅929 转16 评0 公众公开 09-04-20 12:11 |