ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edwin Lukaweski" <serj...@rogers.com>
Subject insert sql exception how to
Date Sat, 22 Jul 2006 17:01:53 GMT

    I need some hints as to how to handle a situation with iBatis.

    I would like to perform an INSERT, then catch the sqlexception and determine if it is
caused by a duplicate key. If so, I will want to perform an UPDATE to the record.

    I realize that DAO throws a daoexception, but I am not quite sure how to handle it.

    Does anybody have any ideas?

Thanks in advance,

View raw message