Only way I know of would be to try then catch the resulting SqlMapException
- Just a shame that it's not a specific exception rather than the general
one...

/Gwyn

On Wed, Jun 18, 2008 at 4:25 PM, Julio Faerman <[EMAIL PROTECTED]> wrote:

> Hello,
>
> I would like to know if is it possible to check if a query exists
> before executing it.
> For example, if i am using oracle and have a optimezed query for
> oracle, i would like to run:
>
> sqlMapClient.queryForList("myQuery.oracle");
>
> if there is no special query for oracle, i would like to run just the
> standard query:
>
> sqlMapClient.queryForList("myQuery");
>
> is it possible to do something like "sqlMapClient.exists/contais(query)" ?
>
> Thank you,
> Julio
>

Reply via email to