org.j2ee.dao.errors
Class AbstractErrorMapper

java.lang.Object
  |
  +--org.j2ee.dao.errors.AbstractErrorMapper
All Implemented Interfaces:
ErrorMapper
Direct Known Subclasses:
DB2ErrorMapper, HSQLErrorMapper, OracleErrorMapper

public abstract class AbstractErrorMapper
extends java.lang.Object
implements ErrorMapper

This abstrac class is used to convert a database dependant representation of SQL Error Code to a list of known error codes defined into the interface DAOErrorHandler Last modified $Date: 2004/05/18 10:50:14 $

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

Constructor Summary
AbstractErrorMapper()
           
 
Method Summary
abstract  int DBErrorConvert(int error)
          This do not work perfectly, see http://www.jguru.com/faq/view.jsp?EID=46397
 int DBErrorMapper(java.lang.Throwable t)
          This method will convert a list of know application error codes to the list defined into the
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractErrorMapper

public AbstractErrorMapper()
Method Detail

DBErrorConvert

public abstract int DBErrorConvert(int error)
This do not work perfectly, see http://www.jguru.com/faq/view.jsp?EID=46397

Returns:
an internal representation for commons error codes
See Also:
for a complete list of error code to return

DBErrorMapper

public int DBErrorMapper(java.lang.Throwable t)
Description copied from interface: ErrorMapper
This method will convert a list of know application error codes to the list defined into the

Specified by:
DBErrorMapper in interface ErrorMapper
Parameters:
t - (Exception to be convert to the list of known error codes)
Returns:
(A known error code list)
See Also:
DAOErrorHandler, DAOErrorHandler


Copyright © 2004 DAO Action Patterm. All Rights Reserved.