summaryrefslogtreecommitdiff
path: root/docs/collections
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2015-02-17 17:25:57 +0000
committer <>2015-03-17 16:26:24 +0000
commit780b92ada9afcf1d58085a83a0b9e6bc982203d1 (patch)
tree598f8b9fa431b228d29897e798de4ac0c1d3d970 /docs/collections
parent7a2660ba9cc2dc03a69ddfcfd95369395cc87444 (diff)
downloadberkeleydb-master.tar.gz
Imported from /home/lorry/working-area/delta_berkeleydb/db-6.1.23.tar.gz.HEADdb-6.1.23master
Diffstat (limited to 'docs/collections')
-rw-r--r--docs/collections/tutorial/BasicProgram.html2
-rw-r--r--docs/collections/tutorial/BerkeleyDB-Java-Collections.pdfbin414795 -> 414401 bytes
-rw-r--r--docs/collections/tutorial/Entity.html2
-rw-r--r--docs/collections/tutorial/SerializableEntity.html2
-rw-r--r--docs/collections/tutorial/SerializedObjectStorage.html4
-rw-r--r--docs/collections/tutorial/Summary.html4
-rw-r--r--docs/collections/tutorial/Tuple.html2
-rw-r--r--docs/collections/tutorial/UsingCollectionsAPI.html3
-rw-r--r--docs/collections/tutorial/UsingSecondaries.html2
-rw-r--r--docs/collections/tutorial/UsingStoredCollections.html6
-rw-r--r--docs/collections/tutorial/addingdatabaseitems.html2
-rw-r--r--docs/collections/tutorial/collectionOverview.html2
-rw-r--r--docs/collections/tutorial/collectionswithentities.html22
-rw-r--r--docs/collections/tutorial/createbindingscollections.html50
-rw-r--r--docs/collections/tutorial/creatingentitybindings.html12
-rw-r--r--docs/collections/tutorial/developing.html2
-rw-r--r--docs/collections/tutorial/entitieswithcollections.html2
-rw-r--r--docs/collections/tutorial/handlingexceptions.html4
-rw-r--r--docs/collections/tutorial/implementingmain.html2
-rw-r--r--docs/collections/tutorial/index.html10
-rw-r--r--docs/collections/tutorial/indexedcollections.html34
-rw-r--r--docs/collections/tutorial/intro.html4
-rw-r--r--docs/collections/tutorial/moreinfo.html18
-rw-r--r--docs/collections/tutorial/openclasscatalog.html2
-rw-r--r--docs/collections/tutorial/opendatabases.html2
-rw-r--r--docs/collections/tutorial/opendbenvironment.html2
-rw-r--r--docs/collections/tutorial/openingforeignkeys.html2
-rw-r--r--docs/collections/tutorial/preface.html6
-rw-r--r--docs/collections/tutorial/removingredundantvalueclasses.html2
-rw-r--r--docs/collections/tutorial/retrievingbyindexkey.html8
-rw-r--r--docs/collections/tutorial/retrievingdatabaseitems.html2
-rw-r--r--docs/collections/tutorial/sortedcollections.html2
-rw-r--r--docs/collections/tutorial/transientfieldsinbinding.html6
-rw-r--r--docs/collections/tutorial/tuple-serialentitybindings.html2
-rw-r--r--docs/collections/tutorial/tuplekeybindings.html11
-rw-r--r--docs/collections/tutorial/tupleswithkeycreators.html2
-rw-r--r--docs/collections/tutorial/tutorialintroduction.html2
-rw-r--r--docs/collections/tutorial/usingtransactions.html2
38 files changed, 123 insertions, 121 deletions
diff --git a/docs/collections/tutorial/BasicProgram.html b/docs/collections/tutorial/BasicProgram.html
index e2b31b96..a5adf328 100644
--- a/docs/collections/tutorial/BasicProgram.html
+++ b/docs/collections/tutorial/BasicProgram.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/collections/tutorial/BerkeleyDB-Java-Collections.pdf b/docs/collections/tutorial/BerkeleyDB-Java-Collections.pdf
index 9a98c017..aaf669cb 100644
--- a/docs/collections/tutorial/BerkeleyDB-Java-Collections.pdf
+++ b/docs/collections/tutorial/BerkeleyDB-Java-Collections.pdf
Binary files differ
diff --git a/docs/collections/tutorial/Entity.html b/docs/collections/tutorial/Entity.html
index 4a944a68..ddd62988 100644
--- a/docs/collections/tutorial/Entity.html
+++ b/docs/collections/tutorial/Entity.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/collections/tutorial/SerializableEntity.html b/docs/collections/tutorial/SerializableEntity.html
index 94cfb6db..9e67be50 100644
--- a/docs/collections/tutorial/SerializableEntity.html
+++ b/docs/collections/tutorial/SerializableEntity.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/collections/tutorial/SerializedObjectStorage.html b/docs/collections/tutorial/SerializedObjectStorage.html
index e123fe2f..763c1972 100644
--- a/docs/collections/tutorial/SerializedObjectStorage.html
+++ b/docs/collections/tutorial/SerializedObjectStorage.html
@@ -13,7 +13,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -55,7 +55,7 @@
Refer to the
<code class="literal">ship</code> sample code for examples (the class
<code class="literal">SampleDatabase</code> in
- <code class="filename">examples_java/src/com/sleepycat/examples/collections/ship/basic/SampleDatabase.java</code>
+ <code class="filename">examples/java/src/com/sleepycat/examples/collections/ship/basic/SampleDatabase.java</code>
is a good place to start).
</p>
diff --git a/docs/collections/tutorial/Summary.html b/docs/collections/tutorial/Summary.html
index 8c527a56..11088217 100644
--- a/docs/collections/tutorial/Summary.html
+++ b/docs/collections/tutorial/Summary.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -154,7 +154,7 @@
<code class="literal">marshal</code> and <code class="literal">factory</code> examples that
came with your DB distribution (you can find them in
- <code class="filename">&lt;INSTALL_DIR&gt;/examples_java/src/com/sleepycat/examples/collections/ship</code>
+ <code class="filename">&lt;INSTALL_DIR&gt;/examples/java/src/com/sleepycat/examples/collections/ship</code>
where <code class="literal">&lt;INSTALL_DIR&gt;</code> is the location where you
unpacked your DB distribution).
</span>
diff --git a/docs/collections/tutorial/Tuple.html b/docs/collections/tutorial/Tuple.html
index da5ed5be..ffae15d2 100644
--- a/docs/collections/tutorial/Tuple.html
+++ b/docs/collections/tutorial/Tuple.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/collections/tutorial/UsingCollectionsAPI.html b/docs/collections/tutorial/UsingCollectionsAPI.html
index 77f30543..9905dcd2 100644
--- a/docs/collections/tutorial/UsingCollectionsAPI.html
+++ b/docs/collections/tutorial/UsingCollectionsAPI.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -199,6 +199,7 @@
<a class="ulink" href="../../java/com/sleepycat/db/DeadlockException.html" target="_top">DeadlockException</a>
+
exception and perform retries yourself. Also note that
CurrentTransaction may only be used in a transactional
environment.
diff --git a/docs/collections/tutorial/UsingSecondaries.html b/docs/collections/tutorial/UsingSecondaries.html
index 5e6d8c31..a41fa86a 100644
--- a/docs/collections/tutorial/UsingSecondaries.html
+++ b/docs/collections/tutorial/UsingSecondaries.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/collections/tutorial/UsingStoredCollections.html b/docs/collections/tutorial/UsingStoredCollections.html
index ef1baee0..e334785b 100644
--- a/docs/collections/tutorial/UsingStoredCollections.html
+++ b/docs/collections/tutorial/UsingStoredCollections.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -375,7 +375,7 @@
</li>
<li>
<p>
- <a class="ulink" href="../../java/com/sleepycat/collections/StoredMap.html#duplicates(java.lang.Object)" target="_top">StoredMap.duplicates()</a>
+ <a class="ulink" href="../../java/com/sleepycat/collections/StoredMap.html#duplicates(java.lang.Object)" target="_top">StoredSortedMap.duplicates()</a>
is an additional method for returning the values for a given key as a
<a class="ulink" href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Collection.html" target="_top">Collection</a>.
@@ -689,7 +689,7 @@
and
</span>
- <a class="ulink" href="../../java/com/sleepycat/collections/StoredMap.html#append(java.lang.Object)" target="_top">StoredMap.append(java.lang.Object)</a>
+ <a class="ulink" href="../../java/com/sleepycat/collections/StoredMap.html#append(java.lang.Object)" target="_top">StoredSortedMap.append(java.lang.Object)</a>
extension method<span>s</span> allows
adding a new record with an automatically assigned key.
diff --git a/docs/collections/tutorial/addingdatabaseitems.html b/docs/collections/tutorial/addingdatabaseitems.html
index 8df9b620..977471ee 100644
--- a/docs/collections/tutorial/addingdatabaseitems.html
+++ b/docs/collections/tutorial/addingdatabaseitems.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/collections/tutorial/collectionOverview.html b/docs/collections/tutorial/collectionOverview.html
index 23095288..1d822241 100644
--- a/docs/collections/tutorial/collectionOverview.html
+++ b/docs/collections/tutorial/collectionOverview.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/collections/tutorial/collectionswithentities.html b/docs/collections/tutorial/collectionswithentities.html
index b7ca8e6c..fa47ca57 100644
--- a/docs/collections/tutorial/collectionswithentities.html
+++ b/docs/collections/tutorial/collectionswithentities.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -52,8 +52,8 @@
<code class="classname">SupplierData</code> and <code class="classname">ShipmentData</code>).
</p>
<p>
- Since the <code class="literal">partValueBinding</code>, <code class="literal">supplierValueBinding</code>
- and <code class="literal">shipmentValueBinding</code> were defined as entity bindings in
+ Since the <code class="literal">partDataBinding</code>, <code class="literal">supplierDataBinding</code>
+ and <code class="literal">shipmentDataBinding</code> were defined as entity bindings in
the prior section, there are no source code changes necessary for
creating the stored map objects.
</p>
@@ -65,14 +65,14 @@
{
...
partMap =
- new StoredMap(db.getPartDatabase(),
- partKeyBinding, partValueBinding, true);
+ new StoredSortedMap(db.getPartDatabase(),
+ partKeyBinding, partDataBinding, true);
supplierMap =
- new StoredMap(db.getSupplierDatabase(),
- supplierKeyBinding, supplierValueBinding, true);
+ new StoredSortedMap(db.getSupplierDatabase(),
+ supplierKeyBinding, supplierDataBinding, true);
shipmentMap =
- new StoredMap(db.getShipmentDatabase(),
- shipmentKeyBinding, shipmentValueBinding, true);
+ new StoredSortedMap(db.getShipmentDatabase(),
+ shipmentKeyBinding, shipmentDataBinding, true);
...
} </pre>
<p>
@@ -80,7 +80,7 @@
<a class="ulink" href="../../java/com/sleepycat/bind/EntityBinding.html" target="_top">EntityBinding</a>
will select a different
- <a class="ulink" href="../../java/com/sleepycat/collections/StoredMap.html" target="_top">StoredMap</a>
+ <a class="ulink" href="../../java/com/sleepycat/collections/StoredMap.html" target="_top">StoredSortedMap</a>
constructor, but the syntax is the same. In general, an entity
binding may be used anywhere that a value binding is used.
@@ -121,7 +121,7 @@ public class SampleViews
} </pre>
<p>
Notice that the collection returned by the
- <a class="ulink" href="../../java/com/sleepycat/collections/StoredMap.html#values()" target="_top">StoredMap.values</a>
+ <a class="ulink" href="../../java/com/sleepycat/collections/StoredMap.html#values()" target="_top">StoredSortedMap.values</a>
method is actually a
<a class="ulink" href="../../java/com/sleepycat/collections/StoredValueSet.html" target="_top">StoredValueSet</a>
diff --git a/docs/collections/tutorial/createbindingscollections.html b/docs/collections/tutorial/createbindingscollections.html
index 538b3365..6b5b7500 100644
--- a/docs/collections/tutorial/createbindingscollections.html
+++ b/docs/collections/tutorial/createbindingscollections.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -79,14 +79,14 @@
import com.sleepycat.bind.serial.ClassCatalog;
import com.sleepycat.bind.serial.SerialBinding;
import com.sleepycat.collections.StoredEntrySet;
-import com.sleepycat.collections.StoredMap;
+import com.sleepycat.collections.StoredSortedMap;
...
public class SampleViews
{
- private StoredMap partMap;
- private StoredMap supplierMap;
- private StoredMap shipmentMap;
+ private StoredSortedMap partMap;
+ private StoredSortedMap supplierMap;
+ private StoredSortedMap shipmentMap;
...
public SampleViews(SampleDatabase db)
@@ -95,9 +95,9 @@ public class SampleViews
}</code></strong> </pre>
<p>
A
- <a class="ulink" href="../../java/com/sleepycat/collections/StoredMap.html" target="_top">StoredMap</a>
+ <a class="ulink" href="../../java/com/sleepycat/collections/StoredMap.html" target="_top">StoredSortedMap</a>
- field is used for each database. The StoredMap class implements the
+ field is used for each database. The StoredSortedMap class implements the
standard Java
<a class="ulink" href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Map.html" target="_top">Map</a>
@@ -129,15 +129,15 @@ public class SampleViews
<strong class="userinput"><code> ClassCatalog catalog = db.getClassCatalog();
EntryBinding partKeyBinding =
new SerialBinding(catalog, PartKey.class);
- EntryBinding partValueBinding =
+ EntryBinding partDataBinding =
new SerialBinding(catalog, PartData.class);
EntryBinding supplierKeyBinding =
new SerialBinding(catalog, SupplierKey.class);
- EntryBinding supplierValueBinding =
+ EntryBinding supplierDataBinding =
new SerialBinding(catalog, SupplierData.class);
EntryBinding shipmentKeyBinding =
new SerialBinding(catalog, ShipmentKey.class);
- EntryBinding shipmentValueBinding =
+ EntryBinding shipmentDataBinding =
new SerialBinding(catalog, ShipmentData.class);</code></strong>
...
} </pre>
@@ -159,7 +159,7 @@ public class SampleViews
</p>
<p>
The following statements create standard Java maps using the
- <a class="ulink" href="../../java/com/sleepycat/collections/StoredMap.html" target="_top">StoredMap</a>
+ <a class="ulink" href="../../java/com/sleepycat/collections/StoredMap.html" target="_top">StoredSortedMap</a>
class.
</p>
@@ -168,21 +168,21 @@ public class SampleViews
{
...
<strong class="userinput"><code> partMap =
- new StoredMap(db.getPartDatabase(),
- partKeyBinding, partValueBinding, true);
+ new StoredSortedMap(db.getPartDatabase(),
+ partKeyBinding, partDataBinding, true);
supplierMap =
- new StoredMap(db.getSupplierDatabase(),
- supplierKeyBinding, supplierValueBinding, true);
+ new StoredSortedMap(db.getSupplierDatabase(),
+ supplierKeyBinding, partDataBinding, true);
shipmentMap =
- new StoredMap(db.getShipmentDatabase(),
- shipmentKeyBinding, shipmentValueBinding, true);</code></strong>
+ new StoredSortedMap(db.getShipmentDatabase(),
+ shipmentKeyBinding, partDataBinding, true);</code></strong>
...
} </pre>
<p>
The first parameter of the
- <a class="ulink" href="../../java/com/sleepycat/collections/StoredMap.html" target="_top">StoredMap</a>
+ <a class="ulink" href="../../java/com/sleepycat/collections/StoredMap.html" target="_top">StoredSortedMap</a>
- constructor is the database. In a StoredMap, the database keys (the primary
+ constructor is the database. In a StoredSortedMap, the database keys (the primary
keys) are used as the map keys. The Index
example shows how to use secondary index keys as map keys.
</p>
@@ -204,17 +204,17 @@ public class SampleViews
<pre class="programlisting">public class SampleViews
{
...
-<strong class="userinput"><code> public final StoredMap getPartMap()
+<strong class="userinput"><code> public final StoredSortedMap getPartMap()
{
return partMap;
}
- public final StoredMap getSupplierMap()
+ public final StoredSortedMap getSupplierMap()
{
return supplierMap;
}
- public final StoredMap getShipmentMap()
+ public final StoredSortedMap getShipmentMap()
{
return shipmentMap;
}
@@ -236,13 +236,13 @@ public class SampleViews
...
} </pre>
<p>
- Note that StoredMap and StoredEntrySet are returned rather than
- just returning Map and Set. Since StoredMap implements the Map
+ Note that StoredSortedMap and StoredEntrySet are returned rather than
+ just returning Map and Set. Since StoredSortedMap implements the Map
interface and StoredEntrySet implements the Set interface, you may
ask why Map and Set were not returned directly.
</p>
<p>
- <code class="classname">StoredMap</code>, <code class="classname">StoredEntrySet</code>,
+ <code class="classname">StoredSortedMap</code>, <code class="classname">StoredEntrySet</code>,
and other stored collection classes
have a small number of extra methods beyond those in the Java
collection interfaces. The stored collection types are therefore
diff --git a/docs/collections/tutorial/creatingentitybindings.html b/docs/collections/tutorial/creatingentitybindings.html
index 75959bf2..818b0dbf 100644
--- a/docs/collections/tutorial/creatingentitybindings.html
+++ b/docs/collections/tutorial/creatingentitybindings.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -50,8 +50,8 @@
mapping, while an entity binding is a two-to-one mapping.
</p>
<p>
- The <code class="literal">partValueBinding</code>, <code class="literal">supplierValueBinding</code> and
- <code class="literal">shipmentValueBinding</code> bindings are created below as entity
+ The <code class="literal">partDataBinding</code>, <code class="literal">supplierDataBinding</code> and
+ <code class="literal">shipmentDataBinding</code> bindings are created below as entity
bindings rather than (in the prior examples) serial bindings.
</p>
<a id="entity_sampleviews"></a>
@@ -69,16 +69,16 @@ public class SampleViews
ClassCatalog catalog = db.getClassCatalog();
SerialBinding partKeyBinding =
new SerialBinding(catalog, PartKey.class);
-<strong class="userinput"><code> EntityBinding partValueBinding =
+<strong class="userinput"><code> EntityBinding partDataBinding =
new PartBinding(catalog, PartKey.class, PartData.class);</code></strong>
SerialBinding supplierKeyBinding =
new SerialBinding(catalog, SupplierKey.class);
-<strong class="userinput"><code> EntityBinding supplierValueBinding =
+<strong class="userinput"><code> EntityBinding supplierDataBinding =
new SupplierBinding(catalog, SupplierKey.class,
SupplierData.class);</code></strong>
SerialBinding shipmentKeyBinding =
new SerialBinding(catalog, ShipmentKey.class);
-<strong class="userinput"><code> EntityBinding shipmentValueBinding =
+<strong class="userinput"><code> EntityBinding shipmentDataBinding =
new ShipmentBinding(catalog, ShipmentKey.class,
ShipmentData.class);</code></strong>
SerialBinding cityKeyBinding =
diff --git a/docs/collections/tutorial/developing.html b/docs/collections/tutorial/developing.html
index 79814ddc..dd4246a0 100644
--- a/docs/collections/tutorial/developing.html
+++ b/docs/collections/tutorial/developing.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/collections/tutorial/entitieswithcollections.html b/docs/collections/tutorial/entitieswithcollections.html
index 99a3e299..d54ec1fe 100644
--- a/docs/collections/tutorial/entitieswithcollections.html
+++ b/docs/collections/tutorial/entitieswithcollections.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/collections/tutorial/handlingexceptions.html b/docs/collections/tutorial/handlingexceptions.html
index 9fb49f94..eee4d6c1 100644
--- a/docs/collections/tutorial/handlingexceptions.html
+++ b/docs/collections/tutorial/handlingexceptions.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -78,6 +78,7 @@
<a class="ulink" href="../../java/com/sleepycat/db/DeadlockException.html" target="_top">DeadlockException</a>
+
is thrown, the application should normally retry the operation. If
a deadlock continues to occur for some maximum number of retries,
the application should give up and try again later or take other
@@ -95,6 +96,7 @@
<a class="ulink" href="../../java/com/sleepycat/db/DeadlockException.html" target="_top">DeadlockException</a>
+
and follow the procedure described previously.
</p>
</li>
diff --git a/docs/collections/tutorial/implementingmain.html b/docs/collections/tutorial/implementingmain.html
index 1da1ebc1..33fdd822 100644
--- a/docs/collections/tutorial/implementingmain.html
+++ b/docs/collections/tutorial/implementingmain.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/collections/tutorial/index.html b/docs/collections/tutorial/index.html
index 9bac024e..dda7bc07 100644
--- a/docs/collections/tutorial/index.html
+++ b/docs/collections/tutorial/index.html
@@ -12,7 +12,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -30,11 +30,11 @@
<div class="titlepage">
<div>
<div>
- <h1 class="title"><a id="idm624544"></a>Berkeley DB Collections Tutorial</h1>
+ <h1 class="title"><a id="idm61912"></a>Berkeley DB Collections Tutorial</h1>
</div>
<div>
<div class="legalnotice">
- <a id="idm670320"></a>
+ <a id="idp794192"></a>
<p class="legalnotice-title">
<b>Legal Notice</b>
</p>
@@ -68,7 +68,7 @@
<p>
To obtain a copy of this document's original source code, please
submit a request to the Oracle Technology Network forum at:
- <a class="ulink" href="http://forums.oracle.com/forums/forum.jspa?forumID=271" target="_top">http://forums.oracle.com/forums/forum.jspa?forumID=271</a>
+ <a class="ulink" href="https://forums.oracle.com/forums/forum.jspa?forumID=271" target="_top">https://forums.oracle.com/forums/forum.jspa?forumID=271</a>
</p>
@@ -76,7 +76,7 @@
</div>
</div>
<div>
- <p class="pubdate">5/11/2012</p>
+ <p class="pubdate">2/17/2015</p>
</div>
</div>
<hr />
diff --git a/docs/collections/tutorial/indexedcollections.html b/docs/collections/tutorial/indexedcollections.html
index ce561fe9..8ddba3ba 100644
--- a/docs/collections/tutorial/indexedcollections.html
+++ b/docs/collections/tutorial/indexedcollections.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -86,15 +86,15 @@
<pre class="programlisting">import com.sleepycat.bind.EntryBinding;
import com.sleepycat.bind.serial.SerialBinding;
import com.sleepycat.collections.StoredEntrySet;
-import com.sleepycat.collections.StoredMap;
+import com.sleepycat.collections.StoredSortedMap;
...
public class SampleViews
{
...
-<strong class="userinput"><code> private StoredMap supplierByCityMap;
- private StoredMap shipmentByPartMap;
- private StoredMap shipmentBySupplierMap;</code></strong>
+<strong class="userinput"><code> private StoredSortedMap supplierByCityMap;
+ private StoredSortedMap shipmentByPartMap;
+ private StoredSortedMap shipmentBySupplierMap;</code></strong>
...
public SampleViews(SampleDatabase db)
@@ -105,14 +105,14 @@ public class SampleViews
new SerialBinding(catalog, String.class);
...
supplierByCityMap =
- new StoredMap(db.getSupplierByCityDatabase(),
- cityKeyBinding, supplierValueBinding, true);
+ new StoredSortedMap(db.getSupplierByCityDatabase(),
+ cityKeyBinding, supplierDataBinding, true);
shipmentByPartMap =
- new StoredMap(db.getShipmentByPartDatabase(),
- partKeyBinding, shipmentValueBinding, true);
+ new StoredSortedMap(db.getShipmentByPartDatabase(),
+ partKeyBinding, supplierDataBinding, true);
shipmentBySupplierMap =
- new StoredMap(db.getShipmentBySupplierDatabase(),
- supplierKeyBinding, shipmentValueBinding, true); </code></strong>
+ new StoredSortedMap(db.getShipmentBySupplierDatabase(),
+ supplierKeyBinding, supplierDataBinding, true); </code></strong>
...
}
} </pre>
@@ -126,7 +126,7 @@ public class SampleViews
<li>
<p>
The first parameter of the
- <a class="ulink" href="../../java/com/sleepycat/collections/StoredMap.html" target="_top">StoredMap</a>
+ <a class="ulink" href="../../java/com/sleepycat/collections/StoredMap.html" target="_top">StoredSortedMap</a>
constructor is a
@@ -170,8 +170,8 @@ public class SampleViews
and <code class="literal">supplierMap</code>.
</p>
<p>
- The value bindings — <code class="literal">supplierValueBinding</code> and
- <code class="literal">shipmentValueBinding</code> — were also created in the Basic
+ The value bindings — <code class="literal">supplierDataBinding</code> and
+ <code class="literal">shipmentDataBinding</code> — were also created in the Basic
example.
</p>
<p>
@@ -188,17 +188,17 @@ public class SampleViews
<pre class="programlisting">public class SampleViews
{
...
-<strong class="userinput"><code> public final StoredMap getShipmentByPartMap()
+<strong class="userinput"><code> public final StoredSortedMap getShipmentByPartMap()
{
return shipmentByPartMap;
}
- public final StoredMap getShipmentBySupplierMap()
+ public final StoredSortedMap getShipmentBySupplierMap()
{
return shipmentBySupplierMap;
}
- public final StoredMap getSupplierByCityMap()
+ public final StoredSortedMap getSupplierByCityMap()
{
return supplierByCityMap;
}
diff --git a/docs/collections/tutorial/intro.html b/docs/collections/tutorial/intro.html
index 8ed676e2..a64e05da 100644
--- a/docs/collections/tutorial/intro.html
+++ b/docs/collections/tutorial/intro.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -185,7 +185,7 @@
as those defined by
<a class="ulink" href="http://www.odmg.org/odmg.html" target="_top">ODMG</a>
and JDO
- (<a class="ulink" href="http://www.jcp.org/en/jsr/detail?id=12" target="_top">JSR 12</a>).
+ (<a class="ulink" href="https://www.jcp.org/en/jsr/detail?id=1" target="_top">JSR 12</a>).
Such approaches have benefits but also require sophisticated object
caching. For simplicity the DB Java Collections API treats data
objects by value, not by reference, and does not perform object
diff --git a/docs/collections/tutorial/moreinfo.html b/docs/collections/tutorial/moreinfo.html
index 282ba1f1..a1d108ec 100644
--- a/docs/collections/tutorial/moreinfo.html
+++ b/docs/collections/tutorial/moreinfo.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -53,7 +53,7 @@
<ul type="disc">
<li>
<p>
- <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/gsg/JAVA/index.html" target="_top">
+ <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/gsg/JAVA/index.html" target="_top">
Getting Started with Berkeley DB for Java
</a>
@@ -63,7 +63,7 @@
<p>
- <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/gsg_txn/JAVA/index.html" target="_top">
+ <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/gsg_txn/JAVA/index.html" target="_top">
Getting Started with Transaction Processing for Java
</a>
@@ -71,21 +71,21 @@
</li>
<li>
<p>
- <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/gsg_db_rep/JAVA/index.html" target="_top">
+ <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/gsg_db_rep/JAVA/index.html" target="_top">
Berkeley DB Getting Started with Replicated Applications for Java
</a>
</p>
</li>
<li>
<p>
- <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/index.html" target="_top">
+ <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/programmer_reference/index.html" target="_top">
Berkeley DB Programmer's Reference Guide
</a>
</p>
</li>
<li>
<p>
- <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/java/index.html" target="_top">
+ <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/java/index.html" target="_top">
Berkeley DB Javadoc
</a>
@@ -108,7 +108,7 @@
downloads, visit
- <a class="ulink" href="http://www.oracle.com/technetwork/database/berkeleydb/downloads/index.html" target="_top">http://www.oracle.com/technetwork/database/berkeleydb/downloads/index.html</a>.
+ <a class="ulink" href="http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html" target="_top">http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html</a>.
</p>
</span>
<div class="sect2" lang="en" xml:lang="en">
@@ -123,8 +123,8 @@
You can post your comments and questions at the Oracle
Technology (OTN) forum for
<span>
- Oracle Berkeley DB at: <a class="ulink" href="http://forums.oracle.com/forums/forum.jspa?forumID=271" target="_top">http://forums.oracle.com/forums/forum.jspa?forumID=271</a>,
- or for Oracle Berkeley DB High Availability at: <a class="ulink" href="http://forums.oracle.com/forums/forum.jspa?forumID=272" target="_top">http://forums.oracle.com/forums/forum.jspa?forumID=272</a>.
+ Oracle Berkeley DB at: <a class="ulink" href="https://forums.oracle.com/forums/forum.jspa?forumID=271" target="_top">https://forums.oracle.com/forums/forum.jspa?forumID=271</a>,
+ or for Oracle Berkeley DB High Availability at: <a class="ulink" href="https://forums.oracle.com/forums/forum.jspa?forumID=272" target="_top">https://forums.oracle.com/forums/forum.jspa?forumID=272</a>.
</span>
diff --git a/docs/collections/tutorial/openclasscatalog.html b/docs/collections/tutorial/openclasscatalog.html
index b245980d..624a8e34 100644
--- a/docs/collections/tutorial/openclasscatalog.html
+++ b/docs/collections/tutorial/openclasscatalog.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/collections/tutorial/opendatabases.html b/docs/collections/tutorial/opendatabases.html
index 674e2920..b0e80498 100644
--- a/docs/collections/tutorial/opendatabases.html
+++ b/docs/collections/tutorial/opendatabases.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/collections/tutorial/opendbenvironment.html b/docs/collections/tutorial/opendbenvironment.html
index 7e76bc02..1f05cd04 100644
--- a/docs/collections/tutorial/opendbenvironment.html
+++ b/docs/collections/tutorial/opendbenvironment.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/collections/tutorial/openingforeignkeys.html b/docs/collections/tutorial/openingforeignkeys.html
index a86d052e..70814986 100644
--- a/docs/collections/tutorial/openingforeignkeys.html
+++ b/docs/collections/tutorial/openingforeignkeys.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/collections/tutorial/preface.html b/docs/collections/tutorial/preface.html
index fcf83837..fbbc7603 100644
--- a/docs/collections/tutorial/preface.html
+++ b/docs/collections/tutorial/preface.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -72,8 +72,8 @@
No prior experience with DB technologies is expected or required.
</p>
<p>
- This document reflects Berkeley DB 11<span class="emphasis"><em>g</em></span> Release 2, which
- provides DB library version 11.2.5.3.
+ This document reflects Berkeley DB 12<span class="emphasis"><em>c</em></span> Release 1, which
+ provides DB library version 12.1.6.1.
</p>
<div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
diff --git a/docs/collections/tutorial/removingredundantvalueclasses.html b/docs/collections/tutorial/removingredundantvalueclasses.html
index 9f69b431..56505421 100644
--- a/docs/collections/tutorial/removingredundantvalueclasses.html
+++ b/docs/collections/tutorial/removingredundantvalueclasses.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/collections/tutorial/retrievingbyindexkey.html b/docs/collections/tutorial/retrievingbyindexkey.html
index 1d5300fe..358db72a 100644
--- a/docs/collections/tutorial/retrievingbyindexkey.html
+++ b/docs/collections/tutorial/retrievingbyindexkey.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -70,7 +70,7 @@
method for a stored collection with duplicate keys will return only
the first value for a given key. To obtain all values for a given
key, the
- <a class="ulink" href="../../java/com/sleepycat/collections/StoredMap.html#duplicates(java.lang.Object)" target="_top">StoredMap.duplicates</a>
+ <a class="ulink" href="../../java/com/sleepycat/collections/StoredMap.html#duplicates(java.lang.Object)" target="_top">StoredSortedMap.duplicates</a>
method may be called. This returns a
<a class="ulink" href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Collection.html" target="_top">Collection</a>
@@ -127,7 +127,7 @@ public class Sample
} </pre>
<p>
The
- <a class="ulink" href="../../java/com/sleepycat/collections/StoredMap.html#duplicates(java.lang.Object)" target="_top">StoredMap.duplicates</a>
+ <a class="ulink" href="../../java/com/sleepycat/collections/StoredMap.html#duplicates(java.lang.Object)" target="_top">StoredSortedMap.duplicates</a>
method is called passing the desired key. The returned value is a
standard Java
@@ -168,7 +168,7 @@ public class Sample
will add duplicate keys. To remove all duplicate keys, call
<a class="ulink" href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Map.html#remove(java.lang.Object)" target="_top">Map.remove</a>.
To remove a specific duplicate key, call
- <a class="ulink" href="../../java/com/sleepycat/collections/StoredMap.html#duplicates(java.lang.Object)" target="_top">StoredMap.duplicates</a>
+ <a class="ulink" href="../../java/com/sleepycat/collections/StoredMap.html#duplicates(java.lang.Object)" target="_top">StoredSortedMap.duplicates</a>
and then call
<a class="ulink" href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Collection.html#remove(java.lang.Object)" target="_top">Collection.remove</a>
diff --git a/docs/collections/tutorial/retrievingdatabaseitems.html b/docs/collections/tutorial/retrievingdatabaseitems.html
index 014e656a..945268f7 100644
--- a/docs/collections/tutorial/retrievingdatabaseitems.html
+++ b/docs/collections/tutorial/retrievingdatabaseitems.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/collections/tutorial/sortedcollections.html b/docs/collections/tutorial/sortedcollections.html
index f49de33a..8ad91955 100644
--- a/docs/collections/tutorial/sortedcollections.html
+++ b/docs/collections/tutorial/sortedcollections.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/collections/tutorial/transientfieldsinbinding.html b/docs/collections/tutorial/transientfieldsinbinding.html
index 8373f632..ff2b2908 100644
--- a/docs/collections/tutorial/transientfieldsinbinding.html
+++ b/docs/collections/tutorial/transientfieldsinbinding.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -83,8 +83,8 @@ public class SampleViews
public void objectToKey(Object object, TupleOutput output)
{
- Part part = (Part) object;
- output.writeString(part.getNumber());
+ Supplier supplier = (Supplier) object;
+ output.writeString(supplier.getNumber());
}
public Object objectToData(Object object)
diff --git a/docs/collections/tutorial/tuple-serialentitybindings.html b/docs/collections/tutorial/tuple-serialentitybindings.html
index c12d8b3b..cdf38be9 100644
--- a/docs/collections/tutorial/tuple-serialentitybindings.html
+++ b/docs/collections/tutorial/tuple-serialentitybindings.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/collections/tutorial/tuplekeybindings.html b/docs/collections/tutorial/tuplekeybindings.html
index 676cbd5f..3433b47b 100644
--- a/docs/collections/tutorial/tuplekeybindings.html
+++ b/docs/collections/tutorial/tuplekeybindings.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -176,13 +176,12 @@ public class SampleViews
{
}
- public Object entryToObject(TupleInput input)
+ public Object entryToObject(TupleInput input)
{
- String partNumber = input.readString();
- String supplierNumber = input.readString();
- return new ShipmentKey(partNumber, supplierNumber);
+ String partNumber = input.readString();
+ String supplierNumber = input.readString();
+ return new ShipmentKey(partNumber, supplierNumber);
}
-
public void objectToEntry(Object object, TupleOutput output)
{
ShipmentKey key = (ShipmentKey) object;
diff --git a/docs/collections/tutorial/tupleswithkeycreators.html b/docs/collections/tutorial/tupleswithkeycreators.html
index 8703d50b..d357241b 100644
--- a/docs/collections/tutorial/tupleswithkeycreators.html
+++ b/docs/collections/tutorial/tupleswithkeycreators.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/collections/tutorial/tutorialintroduction.html b/docs/collections/tutorial/tutorialintroduction.html
index 1a5fd297..9504ec7e 100644
--- a/docs/collections/tutorial/tutorialintroduction.html
+++ b/docs/collections/tutorial/tutorialintroduction.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/collections/tutorial/usingtransactions.html b/docs/collections/tutorial/usingtransactions.html
index c940a843..a2738a46 100644
--- a/docs/collections/tutorial/usingtransactions.html
+++ b/docs/collections/tutorial/usingtransactions.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>