summaryrefslogtreecommitdiff
path: root/docs/collections/tutorial/createbindingscollections.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/collections/tutorial/createbindingscollections.html')
-rw-r--r--docs/collections/tutorial/createbindingscollections.html50
1 files changed, 25 insertions, 25 deletions
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