org.jboss.ejb.plugins.cmp.jdbc
Interface SQLExceptionProcessorMBean

All Known Implementing Classes:
SQLExceptionProcessor

public interface SQLExceptionProcessorMBean

MBean interface.


Method Summary
 boolean isDuplicateKey(SQLException e)
          Return true if the exception indicates that an operation failed due to a unique constraint violation.
 

Method Detail

isDuplicateKey

boolean isDuplicateKey(SQLException e)
Return true if the exception indicates that an operation failed due to a unique constraint violation. This could be from any unique constraint not just the primary key.

Parameters:
e - the SQLException to process
Returns:
true if it was caused by a unique constraint violation


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.