<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Starting</title><link>https://sourceforge.net/p/rpersistence/wiki/Starting/</link><description>Recent changes to Starting</description><atom:link href="https://sourceforge.net/p/rpersistence/wiki/Starting/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 13 Sep 2011 14:38:10 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/rpersistence/wiki/Starting/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Starting modified by Rodrigo</title><link>https://sourceforge.net/p/rpersistence/wiki/Starting/</link><description>&lt;pre&gt;--- v13 
+++ v14 
@@ -24,7 +24,8 @@
         $user-&gt;setUser("rodrigo.4ar");
         $user-&gt;setPassword("123456");
     
-        // Methods save, update, delete automatically connects and disconnects from // the database
+        // Methods save, update, delete 
+        // automatically connects and disconnects from the database
     
         // Create a new user
         $session-&gt;createTransaction()-&gt;save($user);
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodrigo</dc:creator><pubDate>Tue, 13 Sep 2011 14:38:10 -0000</pubDate><guid>https://sourceforge.net1db04cec28572ea8b5ab1ff800a25715123d1dcf</guid></item><item><title>WikiPage Starting modified by Rodrigo</title><link>https://sourceforge.net/p/rpersistence/wiki/Starting/</link><description>&lt;pre&gt;--- v12 
+++ v13 
@@ -37,7 +37,7 @@
 ?&gt;
 
 ~~~~~~
-
+&lt;br /&gt;
 &lt;h4&gt; Retrieving all objects from cache or database. All Records.&lt;/h4&gt;
 
 ~~~~~~
@@ -45,7 +45,7 @@
 
 try {
 
     // Get all records for users (entity)
     $users = $session-&gt;getTableFromCache("User");
 
 } catch(Exception $e) {
@@ -55,7 +55,7 @@
 
 ?&gt;
 ~~~~~~
-
+&lt;br /&gt;
 &lt;h4&gt; Retrieving objects from cache or database by query&lt;/h4&gt;
 
 ~~~~~~
@@ -63,8 +63,8 @@
 
 try {
 
     // Retrives objects from cache (entity, query)
     
 $users = $session-&gt;getObjectFromCacheByQuery("User", "select id, username, passwd from users");
 
 } catch(Exception $e) {
@@ -74,7 +74,7 @@
 
 ?&gt;
 ~~~~~~
-
+&lt;br /&gt;
 &lt;h4&gt; Retrieving objects from cache or database by primary key &lt;/h4&gt;
 
 ~~~~~~
@@ -82,9 +82,9 @@
 
 try {
 
     // If the table USERS is not in cache this method will load the table, 
     // and retrives an object by PK (entity, pk value)
 
     $users = $session-&gt;getObjectFromCacheByPk("User", 1);
 
 } catch(Exception $e) {
@@ -94,9 +94,9 @@
 
 ?&gt;
 ~~~~~~
-
+&lt;br /&gt;
 &lt;h4&gt; Querying the database without caching &lt;/h4&gt;
 
 In some cases you will need query the database without caching.
 
 
@@ -105,7 +105,7 @@
 
 try {
 
     // Retrives objects from database (without caching) (entity, query)
     $users = $session-&gt;getObjectByQuery("User", "select id, username, passwd from users");
 
 } catch(Exception $e) {
@@ -115,7 +115,7 @@
 
 ?&gt;
 ~~~~~~
-
+&lt;br /&gt;
 &lt;h4&gt;Getting the connection object &lt;/h4&gt;
 
 Sometimes we need the connection object to do a custom action.
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodrigo</dc:creator><pubDate>Tue, 13 Sep 2011 14:37:13 -0000</pubDate><guid>https://sourceforge.netca232024131892663514428ef80fdf421bebb8c7</guid></item><item><title>WikiPage Starting modified by Rodrigo</title><link>https://sourceforge.net/p/rpersistence/wiki/Starting/</link><description>&lt;pre&gt;--- v11 
+++ v12 
@@ -115,3 +115,33 @@
 
 ?&gt;
 ~~~~~~
+
+&lt;h4&gt;Getting the connection object &lt;/h4&gt;
+
+Sometimes we need the connection object to do a custom action.
+
+~~~~~~
+&lt;?php
+
+// Get connection object
+$db = $session-&gt;getConnection();
+
+// Open the connection
+$db-&gt;openConnection();
+
+// Do stuff
+
+// Get an array
+$array = $db-&gt;fetchArray("select * from users");
+
+// Get a resultset
+$rs = $db-&gt;executeReader("select * from users");
+
+// Exucte a DDL Query
+$db-&gt;executeNonQuery("INSERT, UPDATE or DELETE query");
+
+// Don't forget close the connection!!
+$db-&gt;closeConnection();
+
+?&gt;
+~~~~~~
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodrigo</dc:creator><pubDate>Tue, 13 Sep 2011 14:34:48 -0000</pubDate><guid>https://sourceforge.net4632a0a11e1c89eae0a63725c0db66c636301ecb</guid></item><item><title>WikiPage Starting modified by Rodrigo</title><link>https://sourceforge.net/p/rpersistence/wiki/Starting/</link><description>&lt;pre&gt;--- v10 
+++ v11 
@@ -94,3 +94,24 @@
 
 ?&gt;
 ~~~~~~
+
+&lt;h4&gt; Querying the database without caching &lt;/h4&gt;
+
+In some cases you will need query the database without caching.
+
+
+~~~~~~
+&lt;?php
+
+try {
+
+    // Retrives objects from database (without caching) (entity, query)
+    $users = $session-&gt;getObjectByQuery("User", "select id, username, passwd from users");
+
+} catch(Exception $e) {
+
+    $e-&gt;showErrorPage();
+}
+
+?&gt;
+~~~~~~
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodrigo</dc:creator><pubDate>Tue, 13 Sep 2011 13:57:41 -0000</pubDate><guid>https://sourceforge.netcc2f786c73d8cecd7eb757ab1515f28a151df840</guid></item><item><title>WikiPage Starting modified by Rodrigo</title><link>https://sourceforge.net/p/rpersistence/wiki/Starting/</link><description>&lt;pre&gt;--- v9 
+++ v10 
@@ -38,14 +38,14 @@
 
 ~~~~~~
 
-&lt;h4&gt; Retrieving all objects from cache or database &lt;/h4&gt;
-
-~~~~~~
-&lt;?php
-
-try {
-
+&lt;h4&gt; Retrieving all objects from cache or database. All Records.&lt;/h4&gt;
+
+~~~~~~
+&lt;?php
+
+try {
+
     // Get all records for users (entity)
     $users = $session-&gt;getTableFromCache("User");
 
 } catch(Exception $e) {
@@ -56,25 +56,26 @@
 ?&gt;
 ~~~~~~
 
-&lt;strong&gt;Query cache&lt;/strong&gt;
+&lt;h4&gt; Retrieving objects from cache or database by query&lt;/h4&gt;
 
 ~~~~~~
 &lt;?php
 
 try {
 
     // Retrives objects from cache (entity, query)
-    $users = $session-&gt;getObjectFromCacheByQuery("User", "select id, username, passwd from users");
-
-} catch(Exception $e) {
-
-    $e-&gt;showErrorPage();
-}
-
-?&gt;
-~~~~~~
-
-&lt;h4&gt; Retrieving objects from cache or database by Primary key &lt;/h4&gt;
+    
+$users = $session-&gt;getObjectFromCacheByQuery("User", "select id, username, passwd from users");
+
+} catch(Exception $e) {
+
+    $e-&gt;showErrorPage();
+}
+
+?&gt;
+~~~~~~
+
+&lt;h4&gt; Retrieving objects from cache or database by primary key &lt;/h4&gt;
 
 ~~~~~~
 &lt;?php
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodrigo</dc:creator><pubDate>Tue, 13 Sep 2011 13:55:14 -0000</pubDate><guid>https://sourceforge.net9c011c09e0cc3d5bbcc5d5e38d3bf5f8e8926534</guid></item><item><title>WikiPage Starting modified by Rodrigo</title><link>https://sourceforge.net/p/rpersistence/wiki/Starting/</link><description>&lt;pre&gt;--- v8 
+++ v9 
@@ -56,6 +56,24 @@
 ?&gt;
 ~~~~~~
 
+&lt;strong&gt;Query cache&lt;/strong&gt;
+
+~~~~~~
+&lt;?php
+
+try {
+
+    // Retrives objects from cache (entity, query)
+    $users = $session-&gt;getObjectFromCacheByQuery("User", "select id, username, passwd from users");
+
+} catch(Exception $e) {
+
+    $e-&gt;showErrorPage();
+}
+
+?&gt;
+~~~~~~
+
 &lt;h4&gt; Retrieving objects from cache or database by Primary key &lt;/h4&gt;
 
 ~~~~~~
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodrigo</dc:creator><pubDate>Tue, 13 Sep 2011 13:53:43 -0000</pubDate><guid>https://sourceforge.net027ed612ffa14e5abab09438ff622b1638b3f2e8</guid></item><item><title>WikiPage Starting modified by Rodrigo</title><link>https://sourceforge.net/p/rpersistence/wiki/Starting/</link><description>&lt;pre&gt;--- v7 
+++ v8 
@@ -55,3 +55,23 @@
 
 ?&gt;
 ~~~~~~
+
+&lt;h4&gt; Retrieving objects from cache or database by Primary key &lt;/h4&gt;
+
+~~~~~~
+&lt;?php
+
+try {
+
+    // If the table USERS is not in cache this method will load the table, 
+    // and retrives an object by PK (entity, pk value)
+
+    $users = $session-&gt;getObjectFromCacheByPk("User", 1);
+
+} catch(Exception $e) {
+
+    $e-&gt;showErrorPage();
+}
+
+?&gt;
+~~~~~~
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodrigo</dc:creator><pubDate>Tue, 13 Sep 2011 13:50:50 -0000</pubDate><guid>https://sourceforge.nete16e8a56e1f9d79da2aa7d9ff8eaf8beb88bb2f6</guid></item><item><title>WikiPage Starting modified by Rodrigo</title><link>https://sourceforge.net/p/rpersistence/wiki/Starting/</link><description>&lt;pre&gt;--- v6 
+++ v7 
@@ -41,19 +41,17 @@
 &lt;h4&gt; Retrieving all objects from cache or database &lt;/h4&gt;
 
 ~~~~~~
-
 &lt;?php
 
 try {
 
     // Get all records for users (entity)
     $users = $session-&gt;getTableFromCache("User");
 
 } catch(Exception $e) {
 
     $e-&gt;showErrorPage();
 }
 
 ?&gt;
-
 ~~~~~~
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodrigo</dc:creator><pubDate>Tue, 13 Sep 2011 13:48:57 -0000</pubDate><guid>https://sourceforge.netdb05ff7f0926c458c270a84c1d69c14985b16b21</guid></item><item><title>WikiPage Starting modified by Rodrigo</title><link>https://sourceforge.net/p/rpersistence/wiki/Starting/</link><description>&lt;pre&gt;--- v5 
+++ v6 
@@ -1,36 +1,58 @@
 &lt;h3&gt;First steps&lt;/h3&gt;
 
-~~~~~~
-&lt;?php
-
-
+
+&lt;h4&gt; Inserting, Updating, Deleting objects &lt;/h4&gt;
+~~~~~~
+&lt;?php
+
+
 // The first step is include the framework main class.
 // That's all.. Now you can use the framework. 
 
 require('rpersistence/rpersistence.php');
 
 // Get the framework session
 $session = RPersistence::getSession();
 
 // For example we will insert a new user in the database.
 
     try {
     
         // Create a new user
         $user = new User();
         $user-&gt;setId(0);
         $user-&gt;setUser("rodrigo.4ar");
         $user-&gt;setPassword("123456");
     
         // Methods save, update, delete automatically connects and disconnects from // the database
     
         // Create a new user
         $session-&gt;createTransaction()-&gt;save($user);
     
     } catch(Exception $e) {
     
         $e-&gt;showErrorPage();
     }
+
+?&gt;
+
+~~~~~~
+
+&lt;h4&gt; Retrieving all objects from cache or database &lt;/h4&gt;
+
+~~~~~~
+
+&lt;?php
+
+try {
+
+    // Get all records for users (entity)
+    $users = $session-&gt;getTableFromCache("User");
+
+} catch(Exception $e) {
+
+    $e-&gt;showErrorPage();
+}
 
 ?&gt;
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodrigo</dc:creator><pubDate>Tue, 13 Sep 2011 13:47:41 -0000</pubDate><guid>https://sourceforge.netff6a61a89994e4dc65565d713eec7f6274cb75c0</guid></item><item><title>WikiPage Starting modified by Rodrigo</title><link>https://sourceforge.net/p/rpersistence/wiki/Starting/</link><description>&lt;pre&gt;--- v4 
+++ v5 
@@ -1,4 +1,4 @@
-&lt;h3&gt;First stepts&lt;/h3&gt;
+&lt;h3&gt;First steps&lt;/h3&gt;
 
 ~~~~~~
 &lt;?php
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodrigo</dc:creator><pubDate>Tue, 13 Sep 2011 12:57:51 -0000</pubDate><guid>https://sourceforge.net45fffa330ace7edd7723ba5ad2034b6624763ba8</guid></item></channel></rss>