Re: TypeHandler for java primitive

2006-01-27 Thread Toshiaki Takashima
hi, > Why not just use Integer? I think it is a little bit messy to calculate the numeric property when you use Integer because you have to use Integer.intValue method. Don't you think so? > Why not just use Integer? > > Larry > > > On 1/27/06, Toshiaki T

TypeHandler for java primitive

2006-01-27 Thread Toshiaki Takashima
Hi, You know, when you set resultClass properties to java primitive type such as "int", NullPointerException occures if its corresponding Table Column value is null. You can suppress those Exception by setting "nullValue" property to each column in SQL Map xml. But, it is very messy work. S

Re: should "parameterClass" be specified in map xml?

2005-12-07 Thread Toshiaki Takashima
the types are, and it can then tell your driver. > > I think that will fix it. > > Larry > > > On 12/7/05, Toshiaki Takashima <[EMAIL PROTECTED]> wrote: > > hi, > > > > > Larry > > > > thank for your response. > > > >

Re: should "parameterClass" be specified in map xml?

2005-12-07 Thread Toshiaki Takashima
r occurred while applying a parameter map. --- Check the insertBu-InlineParameterMap. --- Check the parameter mapping for the 'name' property. --- Cause: java.sql.SQLException: parameter number is wrong Caused by: java.sql.SQLException: parameter number is wrong thanks, > > La

should "parameterClass" be specified in map xml?

2005-12-07 Thread Toshiaki Takashima
Hi there I defined sql Map definition for select statement as follows : SELECT SEQNO as seqNo, NAME as name FROM testtable WHERE NME like #paraName# This Statement works, but following insert statement fails when null(java) value is specified to any paramet

Re: How do I get a Map of results instead of a List?

2005-09-07 Thread Toshiaki Takashima
Hello. > ehm, I need to view this FAQ on the wiki but the link is broken... I think you just use queryForMap() method instead of queryForList(). Also see Developer Guide. thanks, > ehm, I need to view this FAQ on the wiki but the link is broken... > > Anyone knows the content of this FAQ? >

Character Encoding for SQL Map

2005-09-07 Thread Toshiaki Takashima
ad SQL Map XML by default encoding and ignore XML encoding declaration "UTF-8". Anyone knows how to specify character encoding of SQL Map XML when iBATIS load those XML? Thanks, Toshiaki Takashima