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">
4  <head>
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" />
13  </head>
14  <body>
15    <div class="navheader">
16      <table width="100%" summary="Navigation header">
17        <tr>
18          <th colspan="3" align="center">Secondary Database Properties</th>
19        </tr>
20        <tr>
21          <td width="20%" align="left"><a accesskey="p" href="keyCreator.html">Prev</a>��</td>
22          <th width="60%" align="center">Chapter��10.��Secondary Databases</th>
23          <td width="20%" align="right">��<a accesskey="n" href="readSecondary.html">Next</a></td>
24        </tr>
25      </table>
26      <hr />
27    </div>
28    <div class="sect1" lang="en" xml:lang="en">
29      <div class="titlepage">
30        <div>
31          <div>
32            <h2 class="title" style="clear: both"><a id="secondaryProps"></a>Secondary Database Properties</h2>
33          </div>
34        </div>
35      </div>
36      <p>Secondary databases accept <code class="classname">SecondaryConfig</code>
37	objects. <code class="classname">SecondaryConfig</code> is a subclass of <code class="classname">DatabaseConfig</code>,
38	so it can manage all of the same properties as does <code class="classname">DatabaseConfig</code>.
39    See <a class="xref" href="DBConfig.html" title="Database Properties">Database Properties</a> for more information.</p>
40      <p>In addition to the <code class="classname">DatabaseConfig</code> properties, 
41	<code class="classname">SecondaryConfig</code> also allows you to manage the following properties:
42	</p>
43      <div class="itemizedlist">
44        <ul type="disc">
45          <li>
46            <p>
47              <code class="methodname">SecondaryConfig.setAllowPopulate()</code>
48            </p>
49            <p>If true, the secondary database can be auto-populated. This means
50        that on open, if the secondary database is empty then the primary
51        database is read in its entirety and additions/modifications to the
52        secondary's records occur automatically.</p>
53          </li>
54          <li>
55            <p>
56              <code class="methodname">SecondaryConfig.setKeyCreator()</code>
57            </p>
58            <p>Identifies the key creator object to be used for secondary key
59        creation. See <a class="xref" href="keyCreator.html" title="Implementing Key Creators">Implementing Key 
60        <span>Creators</span>
61        
62        </a>
63        for more information.</p>
64          </li>
65        </ul>
66      </div>
67    </div>
68    <div class="navfooter">
69      <hr />
70      <table width="100%" summary="Navigation footer">
71        <tr>
72          <td width="40%" align="left"><a accesskey="p" href="keyCreator.html">Prev</a>��</td>
73          <td width="20%" align="center">
74            <a accesskey="u" href="indexes.html">Up</a>
75          </td>
76          <td width="40%" align="right">��<a accesskey="n" href="readSecondary.html">Next</a></td>
77        </tr>
78        <tr>
79          <td width="40%" align="left" valign="top">Implementing Key 
80        <span>Creators</span>
81        
82        ��</td>
83          <td width="20%" align="center">
84            <a accesskey="h" href="index.html">Home</a>
85          </td>
86          <td width="40%" align="right" valign="top">��Reading Secondary Databases</td>
87        </tr>
88      </table>
89    </div>
90  </body>
91</html>
92