org.j2ee.dao.errors
Class OracleErrorMapper

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

public class OracleErrorMapper
extends AbstractErrorMapper

This is concrete implementation for the class AbstractErrorMapper for Oracle database provide the transalation method betwen Oracle 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
OracleErrorMapper()
           
 
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

OracleErrorMapper

public OracleErrorMapper()
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
Parameters:
error - value returned by getErrorCode method of SQLException
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.