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 Steven Pannell <st...@zooplus.com> on 2005/03/22 16:16:32 UTC

execute SQL statement that are not in a map

Hi,

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:

	
client.getDataSource().getConnection().prepareStatement(mysql).executeQuery(
)

Bit nasty...

Any ideas?

Thanks,
Steve.