Re: how to create custom TypeHandlerCallback to trim string whitespace

2008-01-22 Thread Stephen Boyd
ameterSetter parameterSetter, Object > o) > >> > throws SQLException { > >> > parameterSetter.setString(((String)o).trim()); > >> > } > >> > > >> > public Object getResult(ResultGetter resultGetter) throws >

Re: how to create custom TypeHandlerCallback to trim string whitespace

2008-01-22 Thread novotny
); >> > } >> > >> > public Object valueOf(String s) { >> > return s.trim(); >> > } >> > } >> > >> > and I added >> > >> > > > jdbcType="CHAR"/> >> > >> > but it d

Re: how to create custom TypeHandlerCallback to trim string whitespace

2008-01-22 Thread Stephen Boyd
t valueOf(String s) { > > return s.trim(); > > } > > } > > > > and I added > > > > > jdbcType="CHAR"/> > > > > but it doesn't seem to work-- the strings still have the whitespace. > > > > Here

RE: how to create custom TypeHandlerCallback to trim string whitespace

2008-01-22 Thread novotny
> From: novotny [mailto:[EMAIL PROTECTED] > Sent: Friday, January 18, 2008 2:02 PM > To: [email protected] > Subject: how to create custom TypeHandlerCallback to trim string > whitespace > > > Hi, > > I'm using an informix database and querying for a map

RE: how to create custom TypeHandlerCallback to trim string whitespace

2008-01-18 Thread Kezerashvili, Denis
is never invoked, since you get > back a VARCHAR not CHAR. > > Denis > -Original Message- > From: novotny [mailto:[EMAIL PROTECTED] > Sent: Friday, January 18, 2008 2:02 PM > To: [email protected] > Subject: how to create custom TypeHandlerCallback to t

RE: how to create custom TypeHandlerCallback to trim string whitespace

2008-01-18 Thread novotny
ot CHAR. > > Denis > -Original Message- > From: novotny [mailto:[EMAIL PROTECTED] > Sent: Friday, January 18, 2008 2:02 PM > To: [email protected] > Subject: how to create custom TypeHandlerCallback to trim string > whitespace > > > Hi, > &g

Re: how to create custom TypeHandlerCallback to trim string whitespace

2008-01-18 Thread Stephen Boyd
trings still have the whitespace. > > Here was my query: > > Map m = sqlMapClient.queryForMap(QUERY, qwest, > "sm_qwest", > "tm_id"); > > Any help is greatly appreciated! > > Thanks, Jason > -- > View this message in context: > http://www.nabble.com/how-to-create-custom-TypeHandlerCallback-to-trim-string-whitespace-tp14956784p14956784.html > Sent from the iBATIS - User - Java mailing list archive at Nabble.com. > >

RE: how to create custom TypeHandlerCallback to trim string whitespace

2008-01-18 Thread Kezerashvili, Denis
-Original Message- From: novotny [mailto:[EMAIL PROTECTED] Sent: Friday, January 18, 2008 2:02 PM To: [email protected] Subject: how to create custom TypeHandlerCallback to trim string whitespace Hi, I'm using an informix database and querying for a map containing string key

RE: how to create custom TypeHandlerCallback to trim string whitespace

2008-01-18 Thread Kezerashvili, Denis
m: novotny [mailto:[EMAIL PROTECTED] Sent: Friday, January 18, 2008 2:02 PM To: [email protected] Subject: how to create custom TypeHandlerCallback to trim string whitespace Hi, I'm using an informix database and querying for a map containing string keys and integer values. The k

RE: how to create custom TypeHandlerCallback to trim string whitespace

2008-01-18 Thread Kezerashvili, Denis
I take it back, you are defining callback for getting values out of the db. Sorry for the misleading reply. -Original Message- From: novotny [mailto:[EMAIL PROTECTED] Sent: Friday, January 18, 2008 2:02 PM To: [email protected] Subject: how to create custom TypeHandlerCallback

RE: how to create custom TypeHandlerCallback to trim string whitespace

2008-01-18 Thread Kezerashvili, Denis
@ibatis.apache.org Subject: how to create custom TypeHandlerCallback to trim string whitespace Hi, I'm using an informix database and querying for a map containing string keys and integer values. The keys are stored as type CHAR in the database and normally when I get them back they contain extar white

how to create custom TypeHandlerCallback to trim string whitespace

2008-01-18 Thread novotny
;tm_id"); Any help is greatly appreciated! Thanks, Jason -- View this message in context: http://www.nabble.com/how-to-create-custom-TypeHandlerCallback-to-trim-string-whitespace-tp14956784p14956784.html Sent from the iBATIS - User - Java mailing list archive at Nabble.com.