db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/util/sequence SequenceManagerHighLowImpl.java
Date Thu, 05 Feb 2004 09:34:10 GMT
arminw      2004/02/05 01:34:10

  Modified:    src/java/org/apache/ojb/broker/util/sequence
                        SequenceManagerHighLowImpl.java
  Log:
  make error log message when sequence key generation fails
  
  Revision  Changes    Path
  1.26      +5 -2      db-ojb/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerHighLowImpl.java
  
  Index: SequenceManagerHighLowImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerHighLowImpl.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- SequenceManagerHighLowImpl.java	16 Dec 2003 21:34:48 -0000	1.25
  +++ SequenceManagerHighLowImpl.java	5 Feb 2004 09:34:10 -0000	1.26
  @@ -237,7 +237,10 @@
           }
           catch(Exception e)
           {
  -            internBroker.abortTransaction();
  +            log.error("Can't lookup new HighLowSequence for field "
  +                    + (field != null ? field.getAttributeName() : null)
  +                    + " using sequence name " + sequenceName, e);
  +            if(internBroker != null && internBroker.isInTransaction()) internBroker.abortTransaction();
               throw new SequenceManagerException("Can't build new sequence", e);
           }
           finally
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message