<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Implementation</title><link>https://sourceforge.net/p/dboutputter4rs/wiki/Implementation/</link><description>Recent changes to Implementation</description><atom:link href="https://sourceforge.net/p/dboutputter4rs/wiki/Implementation/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 24 Jan 2013 23:41:02 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/dboutputter4rs/wiki/Implementation/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Implementation modified by Holzhauer</title><link>https://sourceforge.net/p/dboutputter4rs/wiki/Implementation/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -4,31 +4,41 @@
 DefaultDBOutputter
 ------------------

-extends and uses most of the functionality. To enable chaching,
-overwrites and stores all sql statements into a buffer until the limit
-is reached. Furthermore, it adds the column definitions as the first
-part of SQL statement. To flush the buffer on , also overwrites and
-directly calls to by-pass caching.
+**DefaultDBOutputter.** **CachedJdbcAppender** extends **JDBCAppender**
+and uses most of the functionality. To enable chaching,
+**DefaultDBOutputter.** **CachedJdbcAppender** overwrites
+**JDBCAppender#execute()** and stores all sql statements into a buffer
+until the limit is reached. Furthermore, it adds the column definitions
+as the first part of SQL statement. To flush the buffer on **close()**,
+**DefaultDBOutputter.** **CachedJdbcAppender** also overwrites
+**JDBCAppender#close()** and directly calls **JDBCAppender#execute()**
+to by-pass caching.

-Overwriting is used to generate the SQL peace for every column defined
-in the and also adds the if activated.
+Overwriting **JDBCAppender\#getLogStatement()** is used to generate the
+SQL peace for every column defined in the **DbOutputterDescriptor.**
+**CachedJdbcAppender** and also adds the **runID** if activated.

-To ensure all cache is sent to the database, the ’s method is scheduled
-at the last tick with priority . Otherwise, is not called before the
+To ensure all cache is sent to the database, the
+**DbOutputterDescriptor.** **CachedJdbcAppender**’s **close()** method
+is scheduled at the last tick with priority **ScheduleParameters.**
+**LAST_PRIORITY**. Otherwise, **close()** is not called before the
 simualtion is reset, and in case the user closes the application without
 resetting the cached data is missed.

 Error Handling
 --------------

-The plugin does not throw in order not to interrupt simulations because
-of output errors. Instead, a ERROR-Logging to the Repast Simphony
-Message Center is triggered.
+The plugin does not throw **SQLExceptions** in order not to interrupt
+simulations because of output errors. Instead, a ERROR-Logging to the
+Repast Simphony Message Center is triggered.

 Run Information Handling
 ------------------------

 Since Repast Simphony 2.0.0, initialisation of data outputters take
-place not before the first data is logged. Therefore, calls to before
-the first data is logged cannot access any information required to
-connect to the database. That’s why was added.
+place not before the first data is logged. Therefore, calls to
+**DefaultDBOutputter.getCurrentMaxRunId()** before the first data is
+logged cannot access any information required to connect to the
+database. That’s why
+**DefaultDBOutputter.getCurrentMaxRunId(runInfoTable, dbConInfo)** was
+added.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Holzhauer</dc:creator><pubDate>Thu, 24 Jan 2013 23:41:02 -0000</pubDate><guid>https://sourceforge.net34b3952810281ee015ae94126c0618d3e1d7f8ae</guid></item><item><title>WikiPage Implementation modified by Holzhauer</title><link>https://sourceforge.net/p/dboutputter4rs/wiki/Implementation/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="implementation"&gt;Implementation&lt;/h1&gt;
&lt;h2 id="defaultdboutputter"&gt;DefaultDBOutputter&lt;/h2&gt;
&lt;p&gt;extends and uses most of the functionality. To enable chaching,&lt;br /&gt;
overwrites and stores all sql statements into a buffer until the limit&lt;br /&gt;
is reached. Furthermore, it adds the column definitions as the first&lt;br /&gt;
part of SQL statement. To flush the buffer on , also overwrites and&lt;br /&gt;
directly calls to by-pass caching.&lt;/p&gt;
&lt;p&gt;Overwriting is used to generate the SQL peace for every column defined&lt;br /&gt;
in the and also adds the if activated.&lt;/p&gt;
&lt;p&gt;To ensure all cache is sent to the database, the ’s method is scheduled&lt;br /&gt;
at the last tick with priority . Otherwise, is not called before the&lt;br /&gt;
simualtion is reset, and in case the user closes the application without&lt;br /&gt;
resetting the cached data is missed.&lt;/p&gt;
&lt;h2 id="error-handling"&gt;Error Handling&lt;/h2&gt;
&lt;p&gt;The plugin does not throw in order not to interrupt simulations because&lt;br /&gt;
of output errors. Instead, a ERROR-Logging to the Repast Simphony&lt;br /&gt;
Message Center is triggered.&lt;/p&gt;
&lt;h2 id="run-information-handling"&gt;Run Information Handling&lt;/h2&gt;
&lt;p&gt;Since Repast Simphony 2.0.0, initialisation of data outputters take&lt;br /&gt;
place not before the first data is logged. Therefore, calls to before&lt;br /&gt;
the first data is logged cannot access any information required to&lt;br /&gt;
connect to the database. That’s why was added.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Holzhauer</dc:creator><pubDate>Thu, 24 Jan 2013 16:40:18 -0000</pubDate><guid>https://sourceforge.netf0e8a5baee035d66c178a9c12de4910cca406267</guid></item></channel></rss>