You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by "Rao, Satish" <sa...@fmr.com> on 2005/08/12 22:21:40 UTC
Javatype for int []
In the <parameterMap> for a stored procedure, I want to pass in an int
[].
I am planning to create a TypeHandler for the int [] and create a
jdbcType ARRAY.
What should my javaType be?
Thanks
RE: Javatype for int []
Posted by Jean-Francois Poilpret <jf...@hcm.vnn.vn>.
Hello,
Try the following (in a stand-alone program):
System.out.println("int[] type = " + int[].class.getName());
It should give you the type to use for javaType I believe (something like
"[I").
Cheers
Jean-Francois
_____
From: Rao, Satish [mailto:satish.rao@fmr.com]
Sent: Saturday, August 13, 2005 3:22 AM
To: user-java@ibatis.apache.org
Subject: Javatype for int []
In the <parameterMap> for a stored procedure, I want to pass in an int [].
I am planning to create a TypeHandler for the int [] and create a jdbcType
ARRAY.
What should my javaType be?
Thanks