Debian Codegraph @

docs/java/com/sleepycat/db/LockRequest.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:05 EDT 2013 -->
6 <TITLE>
7 LockRequest (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="LockRequest (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/LockRequest.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/db/LockOperation.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A>&nbsp;
59 &nbsp;<A HREF="../../../com/sleepycat/db/LockRequestMode.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD>
60 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61 <A HREF="../../../index.html?com/sleepycat/db/LockRequest.html" target="_top"><B>FRAMES</B></A> &nbsp;
62 &nbsp;<A HREF="LockRequest.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.db</FONT>
92 <BR>
93 Class LockRequest</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.db.LockRequest</B>
97 </PRE>
98 <HR>
99 <DL>
100 <DT><PRE>public class <B>LockRequest</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 The LockRequest object is used to encapsulate a single lock request.
105 <P>
106
107 <P>
108 <HR>
109
110 <P>
111
112 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
113
114 <A NAME="constructor_summary"><!-- --></A>
115 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
116 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
117 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
118 <B>Constructor Summary</B></FONT></TH>
119 </TR>
120 <TR BGCOLOR="white" CLASS="TableRowColor">
121 <TD><CODE><B><A HREF="../../../com/sleepycat/db/LockRequest.html#LockRequest(com.sleepycat.db.LockOperation, com.sleepycat.db.LockRequestMode, com.sleepycat.db.DatabaseEntry)">LockRequest</A></B>(<A HREF="../../../com/sleepycat/db/LockOperation.html" title="class in com.sleepycat.db">LockOperation</A>&nbsp;op,
122 <A HREF="../../../com/sleepycat/db/LockRequestMode.html" title="class in com.sleepycat.db">LockRequestMode</A>&nbsp;mode,
123 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;obj)</CODE>
124
125 <BR>
126 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a LockRequest with the specified operation and mode for the
127 specified object.</TD>
128 </TR>
129 <TR BGCOLOR="white" CLASS="TableRowColor">
130 <TD><CODE><B><A HREF="../../../com/sleepycat/db/LockRequest.html#LockRequest(com.sleepycat.db.LockOperation, com.sleepycat.db.LockRequestMode, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.Lock)">LockRequest</A></B>(<A HREF="../../../com/sleepycat/db/LockOperation.html" title="class in com.sleepycat.db">LockOperation</A>&nbsp;op,
131 <A HREF="../../../com/sleepycat/db/LockRequestMode.html" title="class in com.sleepycat.db">LockRequestMode</A>&nbsp;mode,
132 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;obj,
133 <A HREF="../../../com/sleepycat/db/Lock.html" title="class in com.sleepycat.db">Lock</A>&nbsp;lock)</CODE>
134
135 <BR>
136 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a LockRequest with the specified operation, mode and lock,
137 for the specified object.</TD>
138 </TR>
139 <TR BGCOLOR="white" CLASS="TableRowColor">
140 <TD><CODE><B><A HREF="../../../com/sleepycat/db/LockRequest.html#LockRequest(com.sleepycat.db.LockOperation, com.sleepycat.db.LockRequestMode, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.Lock, int)">LockRequest</A></B>(<A HREF="../../../com/sleepycat/db/LockOperation.html" title="class in com.sleepycat.db">LockOperation</A>&nbsp;op,
141 <A HREF="../../../com/sleepycat/db/LockRequestMode.html" title="class in com.sleepycat.db">LockRequestMode</A>&nbsp;mode,
142 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;obj,
143 <A HREF="../../../com/sleepycat/db/Lock.html" title="class in com.sleepycat.db">Lock</A>&nbsp;lock,
144 int&nbsp;timeout)</CODE>
145
146 <BR>
147 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a LockRequest with the specified operation, mode, lock and
148 timeout for the specified object.</TD>
149 </TR>
150 </TABLE>
151 &nbsp;
152 <!-- ========== METHOD SUMMARY =========== -->
153
154 <A NAME="method_summary"><!-- --></A>
155 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
156 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
157 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
158 <B>Method Summary</B></FONT></TH>
159 </TR>
160 <TR BGCOLOR="white" CLASS="TableRowColor">
161 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
162 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/Lock.html" title="class in com.sleepycat.db">Lock</A></CODE></FONT></TD>
163 <TD><CODE><B><A HREF="../../../com/sleepycat/db/LockRequest.html#getLock()">getLock</A></B>()</CODE>
164
165 <BR>
166 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the lock reference.</TD>
167 </TR>
168 <TR BGCOLOR="white" CLASS="TableRowColor">
169 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
170 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/LockRequestMode.html" title="class in com.sleepycat.db">LockRequestMode</A></CODE></FONT></TD>
171 <TD><CODE><B><A HREF="../../../com/sleepycat/db/LockRequest.html#getMode()">getMode</A></B>()</CODE>
172
173 <BR>
174 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the lock mode.</TD>
175 </TR>
176 <TR BGCOLOR="white" CLASS="TableRowColor">
177 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
178 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A></CODE></FONT></TD>
179 <TD><CODE><B><A HREF="../../../com/sleepycat/db/LockRequest.html#getObj()">getObj</A></B>()</CODE>
180
181 <BR>
182 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the lock object.</TD>
183 </TR>
184 <TR BGCOLOR="white" CLASS="TableRowColor">
185 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
186 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/LockOperation.html" title="class in com.sleepycat.db">LockOperation</A></CODE></FONT></TD>
187 <TD><CODE><B><A HREF="../../../com/sleepycat/db/LockRequest.html#getOp()">getOp</A></B>()</CODE>
188
189 <BR>
190 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the lock operation.</TD>
191 </TR>
192 <TR BGCOLOR="white" CLASS="TableRowColor">
193 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
194 <CODE>&nbsp;int</CODE></FONT></TD>
195 <TD><CODE><B><A HREF="../../../com/sleepycat/db/LockRequest.html#getTimeout()">getTimeout</A></B>()</CODE>
196
197 <BR>
198 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the lock timeout value.</TD>
199 </TR>
200 <TR BGCOLOR="white" CLASS="TableRowColor">
201 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
202 <CODE>&nbsp;void</CODE></FONT></TD>
203 <TD><CODE><B><A HREF="../../../com/sleepycat/db/LockRequest.html#setLock(com.sleepycat.db.Lock)">setLock</A></B>(<A HREF="../../../com/sleepycat/db/Lock.html" title="class in com.sleepycat.db">Lock</A>&nbsp;lock)</CODE>
204
205 <BR>
206 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the lock reference.</TD>
207 </TR>
208 <TR BGCOLOR="white" CLASS="TableRowColor">
209 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
210 <CODE>&nbsp;void</CODE></FONT></TD>
211 <TD><CODE><B><A HREF="../../../com/sleepycat/db/LockRequest.html#setMode(com.sleepycat.db.LockRequestMode)">setMode</A></B>(<A HREF="../../../com/sleepycat/db/LockRequestMode.html" title="class in com.sleepycat.db">LockRequestMode</A>&nbsp;mode)</CODE>
212
213 <BR>
214 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the lock mode.</TD>
215 </TR>
216 <TR BGCOLOR="white" CLASS="TableRowColor">
217 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
218 <CODE>&nbsp;void</CODE></FONT></TD>
219 <TD><CODE><B><A HREF="../../../com/sleepycat/db/LockRequest.html#setObj(com.sleepycat.db.DatabaseEntry)">setObj</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;obj)</CODE>
220
221 <BR>
222 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the lock object.</TD>
223 </TR>
224 <TR BGCOLOR="white" CLASS="TableRowColor">
225 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
226 <CODE>&nbsp;void</CODE></FONT></TD>
227 <TD><CODE><B><A HREF="../../../com/sleepycat/db/LockRequest.html#setOp(com.sleepycat.db.LockOperation)">setOp</A></B>(<A HREF="../../../com/sleepycat/db/LockOperation.html" title="class in com.sleepycat.db">LockOperation</A>&nbsp;op)</CODE>
228
229 <BR>
230 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the operation.</TD>
231 </TR>
232 <TR BGCOLOR="white" CLASS="TableRowColor">
233 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
234 <CODE>&nbsp;void</CODE></FONT></TD>
235 <TD><CODE><B><A HREF="../../../com/sleepycat/db/LockRequest.html#setTimeout(int)">setTimeout</A></B>(int&nbsp;timeout)</CODE>
236
237 <BR>
238 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the lock timeout value.</TD>
239 </TR>
240 </TABLE>
241 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
242 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
243 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
244 <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>
245 </TR>
246 <TR BGCOLOR="white" CLASS="TableRowColor">
247 <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>
248 </TR>
249 </TABLE>
250 &nbsp;
251 <P>
252
253 <!-- ========= CONSTRUCTOR DETAIL ======== -->
254
255 <A NAME="constructor_detail"><!-- --></A>
256 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
257 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
258 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
259 <B>Constructor Detail</B></FONT></TH>
260 </TR>
261 </TABLE>
262
263 <A NAME="LockRequest(com.sleepycat.db.LockOperation, com.sleepycat.db.LockRequestMode, com.sleepycat.db.DatabaseEntry)"><!-- --></A><H3>
264 LockRequest</H3>
265 <PRE>
266 public <B>LockRequest</B>(<A HREF="../../../com/sleepycat/db/LockOperation.html" title="class in com.sleepycat.db">LockOperation</A>&nbsp;op,
267 <A HREF="../../../com/sleepycat/db/LockRequestMode.html" title="class in com.sleepycat.db">LockRequestMode</A>&nbsp;mode,
268 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;obj)</PRE>
269 <DL>
270 <DD>Construct a LockRequest with the specified operation and mode for the
271 specified object.
272 <p>
273 <P>
274 <DL>
275 <DT><B>Parameters:</B><DD><CODE>mode</CODE> - The permissions mode for the object.
276 <p><DD><CODE>obj</CODE> - The object being locked.
277 <p><DD><CODE>op</CODE> - The operation being performed.</DL>
278 </DL>
279 <HR>
280
281 <A NAME="LockRequest(com.sleepycat.db.LockOperation, com.sleepycat.db.LockRequestMode, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.Lock)"><!-- --></A><H3>
282 LockRequest</H3>
283 <PRE>
284 public <B>LockRequest</B>(<A HREF="../../../com/sleepycat/db/LockOperation.html" title="class in com.sleepycat.db">LockOperation</A>&nbsp;op,
285 <A HREF="../../../com/sleepycat/db/LockRequestMode.html" title="class in com.sleepycat.db">LockRequestMode</A>&nbsp;mode,
286 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;obj,
287 <A HREF="../../../com/sleepycat/db/Lock.html" title="class in com.sleepycat.db">Lock</A>&nbsp;lock)</PRE>
288 <DL>
289 <DD>Construct a LockRequest with the specified operation, mode and lock,
290 for the specified object.
291 <p>
292 <P>
293 <DL>
294 <DT><B>Parameters:</B><DD><CODE>mode</CODE> - The permissions mode for the object.
295 <p><DD><CODE>obj</CODE> - The object being locked.
296 <p><DD><CODE>op</CODE> - The operation being performed.
297 <p><DD><CODE>lock</CODE> - The lock type for the object.</DL>
298 </DL>
299 <HR>
300
301 <A NAME="LockRequest(com.sleepycat.db.LockOperation, com.sleepycat.db.LockRequestMode, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.Lock, int)"><!-- --></A><H3>
302 LockRequest</H3>
303 <PRE>
304 public <B>LockRequest</B>(<A HREF="../../../com/sleepycat/db/LockOperation.html" title="class in com.sleepycat.db">LockOperation</A>&nbsp;op,
305 <A HREF="../../../com/sleepycat/db/LockRequestMode.html" title="class in com.sleepycat.db">LockRequestMode</A>&nbsp;mode,
306 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;obj,
307 <A HREF="../../../com/sleepycat/db/Lock.html" title="class in com.sleepycat.db">Lock</A>&nbsp;lock,
308 int&nbsp;timeout)</PRE>
309 <DL>
310 <DD>Construct a LockRequest with the specified operation, mode, lock and
311 timeout for the specified object.
312 <p>
313 <P>
314 <DL>
315 <DT><B>Parameters:</B><DD><CODE>lock</CODE> - The lock type for the object.
316 <p><DD><CODE>mode</CODE> - The permissions mode for the object.
317 <p><DD><CODE>obj</CODE> - The object being locked.
318 <p><DD><CODE>op</CODE> - The operation being performed.
319 <p><DD><CODE>timeout</CODE> - The timeout value for the lock.</DL>
320 </DL>
321
322 <!-- ============ METHOD DETAIL ========== -->
323
324 <A NAME="method_detail"><!-- --></A>
325 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
326 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
327 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
328 <B>Method Detail</B></FONT></TH>
329 </TR>
330 </TABLE>
331
332 <A NAME="setLock(com.sleepycat.db.Lock)"><!-- --></A><H3>
333 setLock</H3>
334 <PRE>
335 public void <B>setLock</B>(<A HREF="../../../com/sleepycat/db/Lock.html" title="class in com.sleepycat.db">Lock</A>&nbsp;lock)</PRE>
336 <DL>
337 <DD>Set the lock reference.
338 <p>
339 <P>
340 <DD><DL>
341 <DT><B>Parameters:</B><DD><CODE>lock</CODE> - The lock reference.</DL>
342 </DD>
343 </DL>
344 <HR>
345
346 <A NAME="setMode(com.sleepycat.db.LockRequestMode)"><!-- --></A><H3>
347 setMode</H3>
348 <PRE>
349 public void <B>setMode</B>(<A HREF="../../../com/sleepycat/db/LockRequestMode.html" title="class in com.sleepycat.db">LockRequestMode</A>&nbsp;mode)</PRE>
350 <DL>
351 <DD>Set the lock mode.
352 <p>
353 <P>
354 <DD><DL>
355 <DT><B>Parameters:</B><DD><CODE>mode</CODE> - the lock mode.</DL>
356 </DD>
357 </DL>
358 <HR>
359
360 <A NAME="setObj(com.sleepycat.db.DatabaseEntry)"><!-- --></A><H3>
361 setObj</H3>
362 <PRE>
363 public void <B>setObj</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;obj)</PRE>
364 <DL>
365 <DD>Set the lock object.
366 <p>
367 <P>
368 <DD><DL>
369 <DT><B>Parameters:</B><DD><CODE>obj</CODE> - The lock object.</DL>
370 </DD>
371 </DL>
372 <HR>
373
374 <A NAME="setOp(com.sleepycat.db.LockOperation)"><!-- --></A><H3>
375 setOp</H3>
376 <PRE>
377 public void <B>setOp</B>(<A HREF="../../../com/sleepycat/db/LockOperation.html" title="class in com.sleepycat.db">LockOperation</A>&nbsp;op)</PRE>
378 <DL>
379 <DD>Set the operation.
380 <p>
381 <P>
382 <DD><DL>
383 <DT><B>Parameters:</B><DD><CODE>op</CODE> - The operation.</DL>
384 </DD>
385 </DL>
386 <HR>
387
388 <A NAME="setTimeout(int)"><!-- --></A><H3>
389 setTimeout</H3>
390 <PRE>
391 public void <B>setTimeout</B>(int&nbsp;timeout)</PRE>
392 <DL>
393 <DD>Set the lock timeout value.
394 <p>
395 <P>
396 <DD><DL>
397 <DT><B>Parameters:</B><DD><CODE>timeout</CODE> - The lock timeout value.</DL>
398 </DD>
399 </DL>
400 <HR>
401
402 <A NAME="getLock()"><!-- --></A><H3>
403 getLock</H3>
404 <PRE>
405 public <A HREF="../../../com/sleepycat/db/Lock.html" title="class in com.sleepycat.db">Lock</A> <B>getLock</B>()</PRE>
406 <DL>
407 <DD>Return the lock reference.
408 <P>
409 <DD><DL>
410 </DL>
411 </DD>
412 </DL>
413 <HR>
414
415 <A NAME="getMode()"><!-- --></A><H3>
416 getMode</H3>
417 <PRE>
418 public <A HREF="../../../com/sleepycat/db/LockRequestMode.html" title="class in com.sleepycat.db">LockRequestMode</A> <B>getMode</B>()</PRE>
419 <DL>
420 <DD>Return the lock mode.
421 <P>
422 <DD><DL>
423 </DL>
424 </DD>
425 </DL>
426 <HR>
427
428 <A NAME="getObj()"><!-- --></A><H3>
429 getObj</H3>
430 <PRE>
431 public <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> <B>getObj</B>()</PRE>
432 <DL>
433 <DD>Return the lock object.
434 <P>
435 <DD><DL>
436 </DL>
437 </DD>
438 </DL>
439 <HR>
440
441 <A NAME="getOp()"><!-- --></A><H3>
442 getOp</H3>
443 <PRE>
444 public <A HREF="../../../com/sleepycat/db/LockOperation.html" title="class in com.sleepycat.db">LockOperation</A> <B>getOp</B>()</PRE>
445 <DL>
446 <DD>Return the lock operation.
447 <P>
448 <DD><DL>
449 </DL>
450 </DD>
451 </DL>
452 <HR>
453
454 <A NAME="getTimeout()"><!-- --></A><H3>
455 getTimeout</H3>
456 <PRE>
457 public int <B>getTimeout</B>()</PRE>
458 <DL>
459 <DD>Return the lock timeout value.
460 <P>
461 <DD><DL>
462 </DL>
463 </DD>
464 </DL>
465 <!-- ========= END OF CLASS DATA ========= -->
466 <HR>
467
468
469 <!-- ======= START OF BOTTOM NAVBAR ====== -->
470 <A NAME="navbar_bottom"><!-- --></A>
471 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
472 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
473 <TR>
474 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
475 <A NAME="navbar_bottom_firstrow"><!-- --></A>
476 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
477 <TR ALIGN="center" VALIGN="top">
478 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
479 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
480 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
481 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/LockRequest.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
482 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
483 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
484 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
485 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
486 </TR>
487 </TABLE>
488 </TD>
489 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
490 <b>Berkeley DB</b><br><font size="-1"> version 5.3.28</font></EM>
491 </TD>
492 </TR>
493
494 <TR>
495 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
496 &nbsp;<A HREF="../../../com/sleepycat/db/LockOperation.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A>&nbsp;
497 &nbsp;<A HREF="../../../com/sleepycat/db/LockRequestMode.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD>
498 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
499 <A HREF="../../../index.html?com/sleepycat/db/LockRequest.html" target="_top"><B>FRAMES</B></A> &nbsp;
500 &nbsp;<A HREF="LockRequest.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
501 &nbsp;<SCRIPT type="text/javascript">
502 <!--
503 if(window==top) {
504 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
505 }
506 //-->
507 </SCRIPT>
508 <NOSCRIPT>
509 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
510 </NOSCRIPT>
511
512
513 </FONT></TD>
514 </TR>
515 <TR>
516 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
517 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
518 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
519 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
520 </TR>
521 </TABLE>
522 <A NAME="skip-navbar_bottom"></A>
523 <!-- ======== END OF BOTTOM NAVBAR ======= -->
524
525 <HR>
526 <font size=1>Copyright (c) 1996, 2013 Oracle and/or its affiliates. All rights reserved.</font>
527 </BODY>
528 </HTML>