org.j2ee.dao.errors
Class DB2ErrorMapper

java.lang.Object
  |
  +--org.j2ee.dao.errors.AbstractErrorMapper
        |
        +--org.j2ee.dao.errors.DB2ErrorMapper
All Implemented Interfaces:
ErrorMapper

public class DB2ErrorMapper
extends AbstractErrorMapper

This is concrete implementation for the class AbstractErrorMapper for DB2 database provide the transalation method betwen DB2 error codes to the DAOErrorHandler error code list Last modified $Date: 2004/05/18 10:50:14 $

Version:
$Revision: 1.1.1.1 $
Author:
mochoa (mochoa@users.sourceforge.net)
See Also:
AbstractErrorMapper, DAOErrorHandler

Constructor Summary
DB2ErrorMapper()
           
 
Method Summary
 int DBErrorConvert(int error)
          It will resolve problem of incompatibility of the error coded returned by different Database vendors.
 
Methods inherited from class org.j2ee.dao.errors.AbstractErrorMapper
DBErrorMapper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DB2ErrorMapper

public DB2ErrorMapper()
Method Detail

DBErrorConvert

public int DBErrorConvert(int error)
It will resolve problem of incompatibility of the error coded returned by different Database vendors. getSQLState will not work due: http://www.jguru.com/faq/view.jsp?EID=46397

Specified by:
DBErrorConvert in class AbstractErrorMapper
Returns:
an internal representation for commons applicationerror codes
See Also:
for a complete list of error code to return


Copyright © 2004 DAO Action Patterm. All Rights Reserved.