ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ravikumar.daya...@axa.com.au
Subject how to find SQL Query based on StatementID
Date Fri, 13 Apr 2007 02:14:34 GMT
Iam using Spring with iBatis framework
I have the following requirement. I have to implement Batch execute 
which takes the list of statementId and Parame Object and it has to 
identify which operation it has to perform, and call the corresponding 

The statementId might refer to any of the update/insert or delete . So i 
have to findout the whether the underlying SQL is update or insert or 
delete from the statementID. Is it possible programatically?

to be precise

public void executeBatch(DatabaseServiceVO databaseServiceVO) throws 
ApplicationRuntimeException {
getSqlMapClientTemplate().execute(new SqlMapClientCallback() {
public Object doInSqlMapClient(SqlMapExecutor executor) throws 
SQLException {
String statementId = databaseServiceVO.getStatementID();
/************************************************** *****/
Here i want to identify whether it is insert/update/delete
based on the statementId. Is it possible.? if possible how to do 
that? so that based on that i will call
executor.insert or executor.delete or executor.update
/************************************************** *****/


When i posted this query to Spring forum they directed me to ask Ibatis 


Can you please provide me help on this.

Thanks and regards,
Consultant for AXA,
AXA Towers
Off   : +61-3-9618-4677
Mob : +61-0411-44-5298
AXA and AllianceBernstein: Winner of 'Morningstar Fund Manager of the Year
2006 - Australia'.
Important Note
This email (including any attachments) contains information which is 
confidential and may be subject to legal privilege.  If you are not 
the intended recipient you must not use, distribute or copy this 
email.  If you have received this email in error please notify the 
sender immediately and delete this email. Any views expressed in this 
email are not necessarily the views of AXA.   Thank you.

View raw message