Debian Codegraph @

docs/java/com/sleepycat/persist/EntityJoin.html

raw symbols SCIP
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--NewPage-->
3 <HTML>
4 <HEAD>
5 <!-- Generated by javadoc (build 1.6.0_51) on Mon Sep 09 11:47:06 EDT 2013 -->
6 <TITLE>
7 EntityJoin (Oracle - Berkeley DB Java API)
8 </TITLE>
9
10 <META NAME="date" CONTENT="2013-09-09">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../style.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17 if (location.href.indexOf('is-external=true') == -1) {
18 parent.document.title="EntityJoin (Oracle - Berkeley DB Java API)";
19 }
20 }
21 </SCRIPT>
22 <NOSCRIPT>
23 </NOSCRIPT>
24
25 </HEAD>
26
27 <BODY BGCOLOR="white" onload="windowTitle();">
28 <HR>
29
30
31 <!-- ========= START OF TOP NAVBAR ======= -->
32 <A NAME="navbar_top"><!-- --></A>
33 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35 <TR>
36 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37 <A NAME="navbar_top_firstrow"><!-- --></A>
38 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39 <TR ALIGN="center" VALIGN="top">
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/EntityJoin.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48 </TR>
49 </TABLE>
50 </TD>
51 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52 <b>Berkeley DB</b><br><font size="-1"> version 5.3.28</font></EM>
53 </TD>
54 </TR>
55
56 <TR>
57 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58 &nbsp;<A HREF="../../../com/sleepycat/persist/EntityIndex.html" title="interface in com.sleepycat.persist"><B>PREV CLASS</B></A>&nbsp;
59 &nbsp;<A HREF="../../../com/sleepycat/persist/EntityStore.html" title="class in com.sleepycat.persist"><B>NEXT CLASS</B></A></FONT></TD>
60 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61 <A HREF="../../../index.html?com/sleepycat/persist/EntityJoin.html" target="_top"><B>FRAMES</B></A> &nbsp;
62 &nbsp;<A HREF="EntityJoin.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
63 &nbsp;<SCRIPT type="text/javascript">
64 <!--
65 if(window==top) {
66 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
67 }
68 //-->
69 </SCRIPT>
70 <NOSCRIPT>
71 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
72 </NOSCRIPT>
73
74
75 </FONT></TD>
76 </TR>
77 <TR>
78 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
80 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
81 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
82 </TR>
83 </TABLE>
84 <A NAME="skip-navbar_top"></A>
85 <!-- ========= END OF TOP NAVBAR ========= -->
86
87 <HR>
88 <!-- ======== START OF CLASS DATA ======== -->
89 <H2>
90 <FONT SIZE="-1">
91 com.sleepycat.persist</FONT>
92 <BR>
93 Class EntityJoin&lt;PK,E&gt;</H2>
94 <PRE>
95 <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
96 <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.sleepycat.persist.EntityJoin&lt;PK,E&gt;</B>
97 </PRE>
98 <HR>
99 <DL>
100 <DT><PRE>public class <B>EntityJoin&lt;PK,E&gt;</B><DT>extends <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL>
101 </PRE>
102
103 <P>
104 Performs an equality join on two or more secondary keys.
105
106 <p><code>EntityJoin</code> objects are thread-safe. Multiple threads may safely
107 call the methods of a shared <code>EntityJoin</code> object.</p>
108
109 <p>An equality join is a match on all entities in a given primary index that
110 have two or more specific secondary key values. Note that key ranges may
111 not be matched by an equality join, only exact keys are matched.</p>
112
113 <p>For example:</p>
114 <pre class="code">
115 // Index declarations -- see <a href="package-summary.html#example">package summary example</a>.
116 //
117 PrimaryIndex&lt;String, Person&gt; personBySsn;
118 SecondaryIndex&lt;String, String, Person&gt; personByParentSsn;
119 SecondaryIndex&lt;Long, String, Person&gt; personByEmployerIds;
120 Employer employer = ...;
121
122 // Match on all Person objects having parentSsn "111-11-1111" and also
123 // containing an employerId of employer.id. In other words, match on all
124 // of Bob's children that work for a given employer.
125 //
126 EntityJoin&lt;String, Person&gt; join = new EntityJoin(personBySsn);
127 join.addCondition(personByParentSsn, "111-11-1111");
128 join.addCondition(personByEmployerIds, employer.id);
129
130 // Perform the join operation by traversing the results with a cursor.
131 //
132 ForwardCursor&lt;Person&gt; results = join.entities();
133 try {
134 for (Person person : results) {
135 System.out.println(person.ssn + ' ' + person.name);
136 }
137 } finally {
138 results.close();
139 }</pre>
140 <P>
141
142 <P>
143 <HR>
144
145 <P>
146
147 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
148
149 <A NAME="constructor_summary"><!-- --></A>
150 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
151 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
152 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
153 <B>Constructor Summary</B></FONT></TH>
154 </TR>
155 <TR BGCOLOR="white" CLASS="TableRowColor">
156 <TD><CODE><B><A HREF="../../../com/sleepycat/persist/EntityJoin.html#EntityJoin(com.sleepycat.persist.PrimaryIndex)">EntityJoin</A></B>(<A HREF="../../../com/sleepycat/persist/PrimaryIndex.html" title="class in com.sleepycat.persist">PrimaryIndex</A>&lt;<A HREF="../../../com/sleepycat/persist/EntityJoin.html" title="type parameter in EntityJoin">PK</A>,<A HREF="../../../com/sleepycat/persist/EntityJoin.html" title="type parameter in EntityJoin">E</A>&gt;&nbsp;index)</CODE>
157
158 <BR>
159 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a join object for a given primary index.</TD>
160 </TR>
161 </TABLE>
162 &nbsp;
163 <!-- ========== METHOD SUMMARY =========== -->
164
165 <A NAME="method_summary"><!-- --></A>
166 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
167 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
168 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
169 <B>Method Summary</B></FONT></TH>
170 </TR>
171 <TR BGCOLOR="white" CLASS="TableRowColor">
172 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
173 <CODE>
174 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
175 <TR ALIGN="right" VALIGN="">
176 <TD NOWRAP><FONT SIZE="-1">
177 <CODE>&lt;SK&gt; void</CODE></FONT></TD>
178 </TR>
179 </TABLE>
180 </CODE></FONT></TD>
181 <TD><CODE><B><A HREF="../../../com/sleepycat/persist/EntityJoin.html#addCondition(com.sleepycat.persist.SecondaryIndex, SK)">addCondition</A></B>(<A HREF="../../../com/sleepycat/persist/SecondaryIndex.html" title="class in com.sleepycat.persist">SecondaryIndex</A>&lt;SK,<A HREF="../../../com/sleepycat/persist/EntityJoin.html" title="type parameter in EntityJoin">PK</A>,<A HREF="../../../com/sleepycat/persist/EntityJoin.html" title="type parameter in EntityJoin">E</A>&gt;&nbsp;index,
182 SK&nbsp;key)</CODE>
183
184 <BR>
185 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a secondary key condition to the equality join.</TD>
186 </TR>
187 <TR BGCOLOR="white" CLASS="TableRowColor">
188 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
189 <CODE>&nbsp;<A HREF="../../../com/sleepycat/persist/ForwardCursor.html" title="interface in com.sleepycat.persist">ForwardCursor</A>&lt;<A HREF="../../../com/sleepycat/persist/EntityJoin.html" title="type parameter in EntityJoin">E</A>&gt;</CODE></FONT></TD>
190 <TD><CODE><B><A HREF="../../../com/sleepycat/persist/EntityJoin.html#entities()">entities</A></B>()</CODE>
191
192 <BR>
193 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens a cursor that returns the entities qualifying for the join.</TD>
194 </TR>
195 <TR BGCOLOR="white" CLASS="TableRowColor">
196 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
197 <CODE>&nbsp;<A HREF="../../../com/sleepycat/persist/ForwardCursor.html" title="interface in com.sleepycat.persist">ForwardCursor</A>&lt;<A HREF="../../../com/sleepycat/persist/EntityJoin.html" title="type parameter in EntityJoin">E</A>&gt;</CODE></FONT></TD>
198 <TD><CODE><B><A HREF="../../../com/sleepycat/persist/EntityJoin.html#entities(com.sleepycat.db.Transaction, com.sleepycat.db.CursorConfig)">entities</A></B>(<A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db">Transaction</A>&nbsp;txn,
199 <A HREF="../../../com/sleepycat/db/CursorConfig.html" title="class in com.sleepycat.db">CursorConfig</A>&nbsp;config)</CODE>
200
201 <BR>
202 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens a cursor that returns the entities qualifying for the join.</TD>
203 </TR>
204 <TR BGCOLOR="white" CLASS="TableRowColor">
205 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
206 <CODE>&nbsp;<A HREF="../../../com/sleepycat/persist/ForwardCursor.html" title="interface in com.sleepycat.persist">ForwardCursor</A>&lt;<A HREF="../../../com/sleepycat/persist/EntityJoin.html" title="type parameter in EntityJoin">PK</A>&gt;</CODE></FONT></TD>
207 <TD><CODE><B><A HREF="../../../com/sleepycat/persist/EntityJoin.html#keys()">keys</A></B>()</CODE>
208
209 <BR>
210 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens a cursor that returns the primary keys of entities qualifying for
211 the join.</TD>
212 </TR>
213 <TR BGCOLOR="white" CLASS="TableRowColor">
214 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
215 <CODE>&nbsp;<A HREF="../../../com/sleepycat/persist/ForwardCursor.html" title="interface in com.sleepycat.persist">ForwardCursor</A>&lt;<A HREF="../../../com/sleepycat/persist/EntityJoin.html" title="type parameter in EntityJoin">PK</A>&gt;</CODE></FONT></TD>
216 <TD><CODE><B><A HREF="../../../com/sleepycat/persist/EntityJoin.html#keys(com.sleepycat.db.Transaction, com.sleepycat.db.CursorConfig)">keys</A></B>(<A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db">Transaction</A>&nbsp;txn,
217 <A HREF="../../../com/sleepycat/db/CursorConfig.html" title="class in com.sleepycat.db">CursorConfig</A>&nbsp;config)</CODE>
218
219 <BR>
220 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens a cursor that returns the primary keys of entities qualifying for
221 the join.</TD>
222 </TR>
223 </TABLE>
224 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
225 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
226 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
227 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
228 </TR>
229 <TR BGCOLOR="white" CLASS="TableRowColor">
230 <TD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
231 </TR>
232 </TABLE>
233 &nbsp;
234 <P>
235
236 <!-- ========= CONSTRUCTOR DETAIL ======== -->
237
238 <A NAME="constructor_detail"><!-- --></A>
239 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
240 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
241 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
242 <B>Constructor Detail</B></FONT></TH>
243 </TR>
244 </TABLE>
245
246 <A NAME="EntityJoin(com.sleepycat.persist.PrimaryIndex)"><!-- --></A><H3>
247 EntityJoin</H3>
248 <PRE>
249 public <B>EntityJoin</B>(<A HREF="../../../com/sleepycat/persist/PrimaryIndex.html" title="class in com.sleepycat.persist">PrimaryIndex</A>&lt;<A HREF="../../../com/sleepycat/persist/EntityJoin.html" title="type parameter in EntityJoin">PK</A>,<A HREF="../../../com/sleepycat/persist/EntityJoin.html" title="type parameter in EntityJoin">E</A>&gt;&nbsp;index)</PRE>
250 <DL>
251 <DD>Creates a join object for a given primary index.
252 <P>
253 <DL>
254 <DT><B>Parameters:</B><DD><CODE>index</CODE> - the primary index on which the join will operate.</DL>
255 </DL>
256
257 <!-- ============ METHOD DETAIL ========== -->
258
259 <A NAME="method_detail"><!-- --></A>
260 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
261 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
262 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
263 <B>Method Detail</B></FONT></TH>
264 </TR>
265 </TABLE>
266
267 <A NAME="addCondition(com.sleepycat.persist.SecondaryIndex,java.lang.Object)"><!-- --></A><A NAME="addCondition(com.sleepycat.persist.SecondaryIndex, SK)"><!-- --></A><H3>
268 addCondition</H3>
269 <PRE>
270 public &lt;SK&gt; void <B>addCondition</B>(<A HREF="../../../com/sleepycat/persist/SecondaryIndex.html" title="class in com.sleepycat.persist">SecondaryIndex</A>&lt;SK,<A HREF="../../../com/sleepycat/persist/EntityJoin.html" title="type parameter in EntityJoin">PK</A>,<A HREF="../../../com/sleepycat/persist/EntityJoin.html" title="type parameter in EntityJoin">E</A>&gt;&nbsp;index,
271 SK&nbsp;key)</PRE>
272 <DL>
273 <DD>Adds a secondary key condition to the equality join. Only entities
274 having the given key value in the given secondary index will be returned
275 by the join operation.
276 <P>
277 <DD><DL>
278 <DT><B>Parameters:</B><DD><CODE>index</CODE> - the secondary index containing the given key value.<DD><CODE>key</CODE> - the key value to match during the join.</DL>
279 </DD>
280 </DL>
281 <HR>
282
283 <A NAME="entities()"><!-- --></A><H3>
284 entities</H3>
285 <PRE>
286 public <A HREF="../../../com/sleepycat/persist/ForwardCursor.html" title="interface in com.sleepycat.persist">ForwardCursor</A>&lt;<A HREF="../../../com/sleepycat/persist/EntityJoin.html" title="type parameter in EntityJoin">E</A>&gt; <B>entities</B>()
287 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
288 <DL>
289 <DD>Opens a cursor that returns the entities qualifying for the join. The
290 join operation is performed as the returned cursor is accessed.
291
292 <p>The operations performed with the cursor will not be transaction
293 protected, and <A HREF="../../../com/sleepycat/db/CursorConfig.html#DEFAULT"><CODE>CursorConfig.DEFAULT</CODE></A> is used implicitly.</p>
294 <P>
295 <DD><DL>
296
297 <DT><B>Returns:</B><DD>the cursor.
298 <DT><B>Throws:</B>
299 <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if less than two conditions were added.
300 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - the base class for all BDB exceptions.</DL>
301 </DD>
302 </DL>
303 <HR>
304
305 <A NAME="entities(com.sleepycat.db.Transaction, com.sleepycat.db.CursorConfig)"><!-- --></A><H3>
306 entities</H3>
307 <PRE>
308 public <A HREF="../../../com/sleepycat/persist/ForwardCursor.html" title="interface in com.sleepycat.persist">ForwardCursor</A>&lt;<A HREF="../../../com/sleepycat/persist/EntityJoin.html" title="type parameter in EntityJoin">E</A>&gt; <B>entities</B>(<A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db">Transaction</A>&nbsp;txn,
309 <A HREF="../../../com/sleepycat/db/CursorConfig.html" title="class in com.sleepycat.db">CursorConfig</A>&nbsp;config)
310 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
311 <DL>
312 <DD>Opens a cursor that returns the entities qualifying for the join. The
313 join operation is performed as the returned cursor is accessed.
314 <P>
315 <DD><DL>
316 <DT><B>Parameters:</B><DD><CODE>txn</CODE> - the transaction used to protect all operations performed with
317 the cursor, or null if the operations should not be transaction
318 protected. If the store is non-transactional, null must be specified.
319 For a transactional store the transaction is optional for read-only
320 access and required for read-write access.<DD><CODE>config</CODE> - the cursor configuration that determines the default lock
321 mode used for all cursor operations, or null to implicitly use <A HREF="../../../com/sleepycat/db/CursorConfig.html#DEFAULT"><CODE>CursorConfig.DEFAULT</CODE></A>.
322 <DT><B>Returns:</B><DD>the cursor.
323 <DT><B>Throws:</B>
324 <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if less than two conditions were added.
325 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - the base class for all BDB exceptions.</DL>
326 </DD>
327 </DL>
328 <HR>
329
330 <A NAME="keys()"><!-- --></A><H3>
331 keys</H3>
332 <PRE>
333 public <A HREF="../../../com/sleepycat/persist/ForwardCursor.html" title="interface in com.sleepycat.persist">ForwardCursor</A>&lt;<A HREF="../../../com/sleepycat/persist/EntityJoin.html" title="type parameter in EntityJoin">PK</A>&gt; <B>keys</B>()
334 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
335 <DL>
336 <DD>Opens a cursor that returns the primary keys of entities qualifying for
337 the join. The join operation is performed as the returned cursor is
338 accessed.
339
340 <p>The operations performed with the cursor will not be transaction
341 protected, and <A HREF="../../../com/sleepycat/db/CursorConfig.html#DEFAULT"><CODE>CursorConfig.DEFAULT</CODE></A> is used implicitly.</p>
342 <P>
343 <DD><DL>
344
345 <DT><B>Returns:</B><DD>the cursor.
346 <DT><B>Throws:</B>
347 <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if less than two conditions were added.
348 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - the base class for all BDB exceptions.</DL>
349 </DD>
350 </DL>
351 <HR>
352
353 <A NAME="keys(com.sleepycat.db.Transaction, com.sleepycat.db.CursorConfig)"><!-- --></A><H3>
354 keys</H3>
355 <PRE>
356 public <A HREF="../../../com/sleepycat/persist/ForwardCursor.html" title="interface in com.sleepycat.persist">ForwardCursor</A>&lt;<A HREF="../../../com/sleepycat/persist/EntityJoin.html" title="type parameter in EntityJoin">PK</A>&gt; <B>keys</B>(<A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db">Transaction</A>&nbsp;txn,
357 <A HREF="../../../com/sleepycat/db/CursorConfig.html" title="class in com.sleepycat.db">CursorConfig</A>&nbsp;config)
358 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
359 <DL>
360 <DD>Opens a cursor that returns the primary keys of entities qualifying for
361 the join. The join operation is performed as the returned cursor is
362 accessed.
363 <P>
364 <DD><DL>
365 <DT><B>Parameters:</B><DD><CODE>txn</CODE> - the transaction used to protect all operations performed with
366 the cursor, or null if the operations should not be transaction
367 protected. If the store is non-transactional, null must be specified.
368 For a transactional store the transaction is optional for read-only
369 access and required for read-write access.<DD><CODE>config</CODE> - the cursor configuration that determines the default lock
370 mode used for all cursor operations, or null to implicitly use <A HREF="../../../com/sleepycat/db/CursorConfig.html#DEFAULT"><CODE>CursorConfig.DEFAULT</CODE></A>.
371 <DT><B>Returns:</B><DD>the cursor.
372 <DT><B>Throws:</B>
373 <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if less than two conditions were added.
374 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - the base class for all BDB exceptions.</DL>
375 </DD>
376 </DL>
377 <!-- ========= END OF CLASS DATA ========= -->
378 <HR>
379
380
381 <!-- ======= START OF BOTTOM NAVBAR ====== -->
382 <A NAME="navbar_bottom"><!-- --></A>
383 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
384 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
385 <TR>
386 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
387 <A NAME="navbar_bottom_firstrow"><!-- --></A>
388 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
389 <TR ALIGN="center" VALIGN="top">
390 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
391 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
392 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
393 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/EntityJoin.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
394 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
395 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
396 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
397 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
398 </TR>
399 </TABLE>
400 </TD>
401 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
402 <b>Berkeley DB</b><br><font size="-1"> version 5.3.28</font></EM>
403 </TD>
404 </TR>
405
406 <TR>
407 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
408 &nbsp;<A HREF="../../../com/sleepycat/persist/EntityIndex.html" title="interface in com.sleepycat.persist"><B>PREV CLASS</B></A>&nbsp;
409 &nbsp;<A HREF="../../../com/sleepycat/persist/EntityStore.html" title="class in com.sleepycat.persist"><B>NEXT CLASS</B></A></FONT></TD>
410 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
411 <A HREF="../../../index.html?com/sleepycat/persist/EntityJoin.html" target="_top"><B>FRAMES</B></A> &nbsp;
412 &nbsp;<A HREF="EntityJoin.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
413 &nbsp;<SCRIPT type="text/javascript">
414 <!--
415 if(window==top) {
416 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
417 }
418 //-->
419 </SCRIPT>
420 <NOSCRIPT>
421 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
422 </NOSCRIPT>
423
424
425 </FONT></TD>
426 </TR>
427 <TR>
428 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
429 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
430 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
431 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
432 </TR>
433 </TABLE>
434 <A NAME="skip-navbar_bottom"></A>
435 <!-- ======== END OF BOTTOM NAVBAR ======= -->
436
437 <HR>
438 <font size=1>Copyright (c) 1996, 2013 Oracle and/or its affiliates. All rights reserved.</font>
439 </BODY>
440 </HTML>