The <spanclass="bold"><strong>flags</strong></span> parameter must be set to
one of the following values:
</p>
<divclass="itemizedlist">
<ultype="disc">
<li>
<p><aid="get_DB_CURRENT"></a>
<codeclass="literal">DB_CURRENT</code>
</p>
<p>
Return the log record to which the log currently refers.
</p>
</li>
<li>
<p><aid="get_DB_FIRST"></a>
<codeclass="literal">DB_FIRST</code>
</p>
<p>
The first record from any of the log files found in the log directory
is returned in the <spanclass="bold"><strong>data</strong></span> parameter.
The <spanclass="bold"><strong>lsn</strong></span> parameter is overwritten with
the <aclass="link"href="lsn.html"title="Chapter8. The DbLsn Handle">DbLsn</a> of the record
returned.
</p>
<p>
The <codeclass="methodname">DbLogc::get()</code> method will return <ahref="../../programmer_reference/program_errorret.html#program_errorret.DB_NOTFOUND"class="olink">DB_NOTFOUND</a> if
DB_FIRST is set and the log is empty.
</p>
</li>
<li>
<p><aid="get_DB_LAST"></a>
<codeclass="literal">DB_LAST</code>
</p>
<p>
The last record in the log is returned in the <spanclass="bold"><strong>data</strong></span> parameter. The <spanclass="bold"><strong>lsn</strong></span> parameter is overwritten with the
<aclass="link"href="lsn.html"title="Chapter8. The DbLsn Handle">DbLsn</a> of the record returned.
</p>
<p>
The <codeclass="methodname">DbLogc::get()</code> method will return <ahref="../../programmer_reference/program_errorret.html#program_errorret.DB_NOTFOUND"class="olink">DB_NOTFOUND</a> if
DB_LAST is set and the log is empty.
</p>
</li>
<li>
<p><aid="get_DB_NEXT"></a>
<codeclass="literal">DB_NEXT</code>
</p>
<p>
The current log position is advanced to the next record in the log,
and that record is returned in the <spanclass="bold"><strong>data</strong></span> parameter. The <spanclass="bold"><strong>lsn</strong></span> parameter is overwritten with the
<aclass="link"href="lsn.html"title="Chapter8. The DbLsn Handle">DbLsn</a> of the record returned.
</p>
<p>
If the cursor has not been initialized via DB_FIRST, DB_LAST, DB_SET,
DB_NEXT, or DB_PREV, <codeclass="methodname">DbLogc::get()</code> will return the first record in
the log.
</p>
<p>
The <codeclass="methodname">DbLogc::get()</code> method will return <ahref="../../programmer_reference/program_errorret.html#program_errorret.DB_NOTFOUND"class="olink">DB_NOTFOUND</a> if
DB_NEXT is set and the last log record has already been returned or
the log is empty.
</p>
</li>
<li>
<p><aid="get_DB_PREV"></a>
<codeclass="literal">DB_PREV</code>
</p>
<p>
The current log position is advanced to the previous record in the
log, and that record is returned in the <spanclass="bold"><strong>data</strong></span> parameter. The <spanclass="bold"><strong>lsn</strong></span> parameter is overwritten with the
<aclass="link"href="lsn.html"title="Chapter8. The DbLsn Handle">DbLsn</a> of the record returned.
</p>
<p>
If the cursor has not been initialized via DB_FIRST, DB_LAST, DB_SET,
DB_NEXT, or DB_PREV, <codeclass="methodname">DbLogc::get()</code> will return the last record in
the log.
</p>
<p>
The <codeclass="methodname">DbLogc::get()</code> method will return <ahref="../../programmer_reference/program_errorret.html#program_errorret.DB_NOTFOUND"class="olink">DB_NOTFOUND</a> if
DB_PREV is set and the first log record has already been returned or
the log is empty.
</p>
</li>
<li>
<p><aid="get_DB_SET"></a>
<codeclass="literal">DB_SET</code>
</p>
<p>
Retrieve the record specified by the <spanclass="bold"><strong>lsn</strong></span> parameter.