Imported Upstream version 5.3.21
[platform/upstream/libdb.git] / docs / gsg / JAVA / secondaryProps.html
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 xmlns="" class="navheader">
16       <div class="libver">
17         <p>Library Version 11.2.5.3</p>
18       </div>
19       <table width="100%" summary="Navigation header">
20         <tr>
21           <th colspan="3" align="center">Secondary Database Properties</th>
22         </tr>
23         <tr>
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>
27         </tr>
28       </table>
29       <hr />
30     </div>
31     <div class="sect1" lang="en" xml:lang="en">
32       <div class="titlepage">
33         <div>
34           <div>
35             <h2 class="title" style="clear: both"><a id="secondaryProps"></a>Secondary Database Properties</h2>
36           </div>
37         </div>
38       </div>
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:
45         </p>
46       <div class="itemizedlist">
47         <ul type="disc">
48           <li>
49             <p>
50               <code class="methodname">SecondaryConfig.setAllowPopulate()</code>
51             </p>
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>
56           </li>
57           <li>
58             <p>
59               <code class="methodname">SecondaryConfig.setKeyCreator()</code>
60             </p>
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 
63         <span>Creators</span>
64         
65         </a>
66         for more information.</p>
67           </li>
68         </ul>
69       </div>
70     </div>
71     <div class="navfooter">
72       <hr />
73       <table width="100%" summary="Navigation footer">
74         <tr>
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>
78           </td>
79           <td width="40%" align="right"> <a accesskey="n" href="readSecondary.html">Next</a></td>
80         </tr>
81         <tr>
82           <td width="40%" align="left" valign="top">Implementing Key 
83         <span>Creators</span>
84         
85          </td>
86           <td width="20%" align="center">
87             <a accesskey="h" href="index.html">Home</a>
88           </td>
89           <td width="40%" align="right" valign="top"> Reading Secondary Databases</td>
90         </tr>
91       </table>
92     </div>
93   </body>
94 </html>