                            System.err.println("Error aborting txn: " +
                                e.toString());
                            e.printStackTrace();
                        }
                    }
                }
            }
        }
    } </pre>
        <p>
    The final piece of our <code class="classname">DBWriter</code> class is the
    <code class="methodname">countRecords()</code> implementation. Notice how in
    this example we open the cursor such that it performs uncommitte