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/odmg LocalTxManager.java
Date Mon, 06 Dec 2004 12:34:16 GMT
arminw      2004/12/06 04:34:15

  Modified:    src/java/org/apache/ojb/odmg Tag: OJB_1_0_RELEASE
                        LocalTxManager.java
  Log:
  minor fix, use TransactionImpl in inner class
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.5.2.2   +5 -5      db-ojb/src/java/org/apache/ojb/odmg/LocalTxManager.java
  
  Index: LocalTxManager.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/LocalTxManager.java,v
  retrieving revision 1.5.2.1
  retrieving revision 1.5.2.2
  diff -u -r1.5.2.1 -r1.5.2.2
  --- LocalTxManager.java	6 Dec 2004 12:28:38 -0000	1.5.2.1
  +++ LocalTxManager.java	6 Dec 2004 12:34:15 -0000	1.5.2.2
  @@ -54,7 +54,7 @@
        */
       public TransactionImpl getCurrentTransaction()
       {
  -        TransactionImpl tx = (TransactionImpl) tx_table.get(Thread.currentThread());
  +        TransactionImpl tx = tx_table.get(Thread.currentThread());
           if(tx == null)
           {
               throw new TransactionNotInProgressException("Calling method needed transaction,
but no transaction found for current thread :-(");
  @@ -136,9 +136,9 @@
            * @param key_thread The thread to lookup.
            * @return The transaction associated with the thread.
            */
  -        public Transaction get(Thread key_thread)
  +        public TransactionImpl get(Thread key_thread)
           {
  -            return (Transaction) m_table.get(key_thread);
  +            return (TransactionImpl) m_table.get(key_thread);
           }
   
           /**
  @@ -147,7 +147,7 @@
            * @param key_thread Thread that the transaction will be associated to
            * @param value_tx   Transaction to be associated with the thread
            */
  -        public void put(Thread key_thread, Transaction value_tx)
  +        public void put(Thread key_thread, TransactionImpl value_tx)
           {
               m_table.put(key_thread, value_tx);
           }
  
  
  

---------------------------------------------------------------------
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