arminw      2005/10/27 11:09:55

  Modified:    src/java/org/apache/ojb/odmg Tag: OJB_1_0_RELEASE
                        TransactionExt.java
  Log:
  remove redundant method, combination of setImplicitLocking(false) and 
setOrdering(false) will have the same effect
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.4.2.7   +32 -32    db-ojb/src/java/org/apache/ojb/odmg/TransactionExt.java
  
  Index: TransactionExt.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/TransactionExt.java,v
  retrieving revision 1.4.2.6
  retrieving revision 1.4.2.7
  diff -u -r1.4.2.6 -r1.4.2.7
  --- TransactionExt.java       9 Sep 2005 00:36:18 -0000       1.4.2.6
  +++ TransactionExt.java       27 Oct 2005 18:09:55 -0000      1.4.2.7
  @@ -90,7 +90,7 @@
        * reference field while this transaction is in use.
        *
        * @param target The class to change cascading delete behavior of the 
references.
  -     * @param referenceField The field name of the 1:1, 1:n or 1:n reference.
  +     * @param referenceField The field name of the 1:1, 1:n or m:n reference.
        * @param doCascade If <em>true</em> cascading delete is enabled, 
<em>false</em> disabled.
        */
       public void setCascadingDelete(Class target, String referenceField, 
boolean doCascade);
  @@ -126,36 +126,36 @@
        */
       public void setOrdering(boolean ordering);
   
  -    /**
  -     * Returns whether or not the persistent method calls determine
  -     * the persistent object order on commit.
  -     *
  -     * @see #setNoteUserOrder(boolean)
  -     */
  -    public boolean isNoteUserOrder();
  -
  -    /**
  -     * If <em>true</em> the order of persisting method calls like
  -     * <br/> - [EMAIL PROTECTED] org.odmg.Transaction#lock(Object, int)}).
  -     * <br/> - [EMAIL PROTECTED] 
org.odmg.Database#deletePersistent(Object)}).
  -     * <br/> - [EMAIL PROTECTED] org.odmg.Database#makePersistent(Object)})
  -     * determine the order of objects before commit.
  -     * <br/>
  -     * If <em>false</em> the ordering was determined by OJB's internal
  -     * method calls and user calls.
  -     * <br/>
  -     * However it's possible to set this value as a global property
  -     * for all transactions using [EMAIL PROTECTED] 
ImplementationExt#setNoteUserOrder(boolean)}.
  -     * <p/>
  -     * <strong>NOTE:</strong> If OJB's ordering algorithm (see
  -     * [EMAIL PROTECTED] #setOrdering(boolean)}) is enabled, the
  -     * order of objects may change on commit.
  -     *
  -     * @param noteUserOrder If <em>true</em> the order of persisting
  -     * method calls determine the order of objects.
  -     * @see ImplementationExt#setNoteUserOrder(boolean) 
  -     */
  -    public void setNoteUserOrder(boolean noteUserOrder);
  +//    /**
  +//     * Returns whether or not the persistent method calls determine
  +//     * the persistent object order on commit.
  +//     *
  +//     * @see #setNoteUserOrder(boolean)
  +//     */
  +//    public boolean isNoteUserOrder();
  +//
  +//    /**
  +//     * If <em>true</em> the order of persisting method calls like
  +//     * <br/> - [EMAIL PROTECTED] org.odmg.Transaction#lock(Object, int)}).
  +//     * <br/> - [EMAIL PROTECTED] 
org.odmg.Database#deletePersistent(Object)}).
  +//     * <br/> - [EMAIL PROTECTED] org.odmg.Database#makePersistent(Object)})
  +//     * determine the order of objects before commit.
  +//     * <br/>
  +//     * If <em>false</em> the ordering was determined by OJB's internal
  +//     * method calls and user calls.
  +//     * <br/>
  +//     * However it's possible to set this value as a global property
  +//     * for all transactions using [EMAIL PROTECTED] 
ImplementationExt#setNoteUserOrder(boolean)}.
  +//     * <p/>
  +//     * <strong>NOTE:</strong> If OJB's ordering algorithm (see
  +//     * [EMAIL PROTECTED] #setOrdering(boolean)}) is enabled, the
  +//     * order of objects may change on commit.
  +//     *
  +//     * @param noteUserOrder If <em>true</em> the order of persisting
  +//     * method calls determine the order of objects.
  +//     * @see ImplementationExt#setNoteUserOrder(boolean)
  +//     */
  +//    public void setNoteUserOrder(boolean noteUserOrder);
   
       /**
        * Checks if the object with the given [EMAIL PROTECTED] 
org.apache.ojb.broker.Identity}
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to