You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by tf...@apache.org on 2012/06/27 02:56:10 UTC

svn commit: r1354298 - /db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/modules/runtime/reference/write-to-db.xml

Author: tfischer
Date: Wed Jun 27 00:56:09 2012
New Revision: 1354298

URL: http://svn.apache.org/viewvc?rev=1354298&view=rev
Log:
Wording fixes

Modified:
    db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/modules/runtime/reference/write-to-db.xml

Modified: db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/modules/runtime/reference/write-to-db.xml
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/modules/runtime/reference/write-to-db.xml?rev=1354298&r1=1354297&r2=1354298&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/modules/runtime/reference/write-to-db.xml (original)
+++ db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/modules/runtime/reference/write-to-db.xml Wed Jun 27 00:56:09 2012
@@ -34,8 +34,8 @@
       on whether the data object was newly created or was read from the
       database, the corresponding row in the database table is inserted or 
       updated.  If the object is new, its primary key(s) is/are generated 
-      automatically if the id method was set to "idbroker" or
-      "native" in the schema.xml.
+      automatically if the id method was set to "native" or
+      "idbroker" in the schema.xml.
     </p>
     
     <p>
@@ -89,13 +89,13 @@ bloch.save(); //also saves the book "eff
     <p>
       There are alternative ways to insert or update an object in the database:
       you can pass the objects to the <code>doInsert()</code> or 
-      <code>doUpdate</code> methods of their corresponding Peers, or you can 
+      <code>doUpdate()</code> methods of their corresponding Peers, or you can 
       create a ColumnValues object which contains the data of the object
       and pass the Criteria object to the <code>doInsert()</code> or 
-      <code>doUpdate</code> methods of the Peer class.  
+      <code>doUpdate()</code> methods of the Peer class.  
       Note that if you construct a ColumnValues object for a new object,
-      the id field need not be added to the ColumnValues.
-      It is taken care of by Torque internally.
+      the id field need not be added to the ColumnValues;
+      it is taken care of by Torque internally.
     </p>
 
   </section>
@@ -123,8 +123,8 @@ BasePeer.doUpdate(criteria, columnValues
   
   <section name="Deleting objects">
     <p>
-      If you want to delete an author which was already loaded,
-      then you simply pass it to the doDelete method of the peer:
+      If you want to delete an author which was already loaded into memory,
+      then simply pass the object to the doDelete method of the peer:
     </p>
 
 <source>



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