db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/otm MultipleConnectionsTest.java
Date Sun, 18 Jan 2004 04:16:31 GMT
brianm      2004/01/17 20:16:31

  Modified:    src/java/org/apache/ojb/otm OTMKit.java
               src/java/org/apache/ojb/otm/kit SimpleKit.java
               src/test/org/apache/ojb/otm MultipleConnectionsTest.java
  Log:
  Adding OTM javadocs
  
  Revision  Changes    Path
  1.9       +9 -2      db-ojb/src/java/org/apache/ojb/otm/OTMKit.java
  
  Index: OTMKit.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/otm/OTMKit.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- OTMKit.java	11 Jul 2003 16:38:31 -0000	1.8
  +++ OTMKit.java	18 Jan 2004 04:16:31 -0000	1.9
  @@ -65,20 +65,27 @@
   
   /**
    *
  - * <javadoc>
  + * OTMKit implementations provide the initial point of entry
  + * into the OTM layer.
    *
    * @author <a href="mailto:rraghuram@hotmail.com">Raghu Rajah</a>
    *
    */
   public abstract class OTMKit implements Kit
   {
  -    
  +    /**
  +     * Obtain an OTMConnection for the given persistence broker key
  +     */
       public OTMConnection acquireConnection(PBKey pbKey)
       {
           TransactionFactory txFactory = getTransactionFactory();
           return txFactory.acquireConnection(pbKey);
       }
   
  +    /**
  +     * Obtain the transaction which <code>conn</code> is currently
  +     * bound to.
  +     */
       public Transaction getTransaction(OTMConnection conn)
       {
           TransactionFactory txFactory = getTransactionFactory();
  
  
  
  1.16      +6 -3      db-ojb/src/java/org/apache/ojb/otm/kit/SimpleKit.java
  
  Index: SimpleKit.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/otm/kit/SimpleKit.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- SimpleKit.java	30 Jul 2003 21:46:18 -0000	1.15
  +++ SimpleKit.java	18 Jan 2004 04:16:31 -0000	1.16
  @@ -69,11 +69,11 @@
   import java.io.Serializable;
   
   /**
  - *
  - * <javadoc>
  + * A base implementation of an OTMKit using local transactions, an
  + * in-memory lock map, and metadata based object copying for
  + * object swizzling in transactional contexts.
    *
    * @author <a href="mailto:rraghuram@hotmail.com">Raghu Rajah</a>
  - *
    */
   public class SimpleKit extends OTMKit
   {
  @@ -105,6 +105,9 @@
           _cloneableCopyStrategy = new CloneableObjectCopyStrategy();
       }
   
  +    /**
  +     * Obtain the single instance of SimpleKit
  +     */
       public static SimpleKit getInstance()
       {
           if (_instance == null)
  
  
  
  1.3       +7 -0      db-ojb/src/test/org/apache/ojb/otm/MultipleConnectionsTest.java
  
  Index: MultipleConnectionsTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/otm/MultipleConnectionsTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MultipleConnectionsTest.java	3 Oct 2003 12:54:09 -0000	1.2
  +++ MultipleConnectionsTest.java	18 Jan 2004 04:16:31 -0000	1.3
  @@ -88,6 +88,13 @@
   
       }
   
  +    /**
  +     * @todo I think this only passes because both transactions are in the same thread,
  +     *       otherwise it would throw an exception every time saying
  +     *       "Attempt to re-assign a different transaction to a open connection"
  +     *
  +     * @throws Throwable
  +     */
       public void testJustAttachConnections() throws Throwable
       {
           Transaction tx = null;
  
  
  

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