log.debug("inserted...and returning");
}
else
{
log.debug("Duplicate User ID found ....aborting...") ;
DAOException daox = new DAOException ("Duplicate User");
daox.setMessageKey(IErrorMessageKeys.KEY_DUPLICATE_USER);
throw daox;
}
con.commit();
}
catch(SQLException ex)
{
try
{
con.rollback();
}
catch (SQLException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
DAOException daox = new DAOException ("Database Error");
daox.setMessageKey(IErrorMessageKeys.KEY_DATABASE_ERROR);
throw daox;
}
finally
{
try
{
super.cleanUp(null, pStmt);
this.releaseConnection(con);
}
catch (DAOException e)
{
// TODO Auto-generated catch block
DAOException daox = new DAOException ("FATAL Error");
daox.setMessageKey(IErrorMessageKeys.KEY_FATAL_ERROR);
throw daox;
}
}