1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <title>Secondary Database Properties</title>
7 <link rel="stylesheet" href="gettingStarted.css" type="text/css" />
8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9 <link rel="start" href="index.html" title="Getting Started with Berkeley DB" />
10 <link rel="up" href="indexes.html" title="Chapter 10. Secondary Databases" />
11 <link rel="prev" href="keyCreator.html" title="Implementing Key Creators" />
12 <link rel="next" href="readSecondary.html" title="Reading Secondary Databases" />
15 <div xmlns="" class="navheader">
17 <p>Library Version 11.2.5.3</p>
19 <table width="100%" summary="Navigation header">
21 <th colspan="3" align="center">Secondary Database Properties</th>
24 <td width="20%" align="left"><a accesskey="p" href="keyCreator.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 10. Secondary Databases</th>
26 <td width="20%" align="right"> <a accesskey="n" href="readSecondary.html">Next</a></td>
31 <div class="sect1" lang="en" xml:lang="en">
32 <div class="titlepage">
35 <h2 class="title" style="clear: both"><a id="secondaryProps"></a>Secondary Database Properties</h2>
39 <p>Secondary databases accept <code class="classname">SecondaryConfig</code>
40 objects. <code class="classname">SecondaryConfig</code> is a subclass of <code class="classname">DatabaseConfig</code>,
41 so it can manage all of the same properties as does <code class="classname">DatabaseConfig</code>.
42 See <a class="xref" href="dbprops.html" title="Database Properties">Database Properties</a> for more information.</p>
43 <p>In addition to the <code class="classname">DatabaseConfig</code> properties,
44 <code class="classname">SecondaryConfig</code> also allows you to manage the following properties:
46 <div class="itemizedlist">
50 <code class="methodname">SecondaryConfig.setAllowPopulate()</code>
52 <p>If true, the secondary database can be auto-populated. This means
53 that on open, if the secondary database is empty then the primary
54 database is read in its entirety and additions/modifications to the
55 secondary's records occur automatically.</p>
59 <code class="methodname">SecondaryConfig.setKeyCreator()</code>
61 <p>Identifies the key creator object to be used for secondary key
62 creation. See <a class="xref" href="keyCreator.html" title="Implementing Key Creators">Implementing Key
66 for more information.</p>
71 <div class="navfooter">
73 <table width="100%" summary="Navigation footer">
75 <td width="40%" align="left"><a accesskey="p" href="keyCreator.html">Prev</a> </td>
76 <td width="20%" align="center">
77 <a accesskey="u" href="indexes.html">Up</a>
79 <td width="40%" align="right"> <a accesskey="n" href="readSecondary.html">Next</a></td>
82 <td width="40%" align="left" valign="top">Implementing Key
86 <td width="20%" align="center">
87 <a accesskey="h" href="index.html">Home</a>
89 <td width="40%" align="right" valign="top"> Reading Secondary Databases</td>