ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Pannell <steven.pann...@zooplus.com>
Subject RE: execute SQL statement that are not in a map
Date Wed, 23 Mar 2005 12:36:49 GMT

I tried this to execute my dynamic SQL statement but does not work.  anyone
an idea how to resolve this???
The SQL statements have to be built in the java code, so I cannot use a
standard map.

	<statement id="execute-rule" parameterClass="string"
resultClass="long" >

//Java code

client.insert("execute-rule","insert into myTable(id) values (1)");


-----Original Message-----
From: James, Steven [mailto:Steven.James@logicacmg.com]
Sent: 22 March 2005 17:00
To: ibatis-user-java@incubator.apache.org
Subject: RE: execute SQL statement that are not in a map

create a generic statement in a sqlmap 
<statement id="Execute" parameterClass="string">

-----Original Message-----
From: Steven Pannell [mailto:steven.pannell@zooplus.com]
Sent: Tue 3/22/2005 3:16 PM
To: 'ibatis-user-java@incubator.apache.org'
Subject: execute SQL statement that are not in a map

I build some SQL statements in java and want to execute them on the DB.  As
I don't have a iBatis-map for these (they are build dynamically) what is the
best way to execute the statements on the db. the SqlMapClient does not have
any kind of execute method. The only thing I came up with at the moment was:


Bit nasty...

Any ideas?


This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.

View raw message