1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!-- NewPage -->
3<html lang="en">
4<head>
5<!-- Generated by javadoc (version 1.7.0_79) on Thu Jul 07 10:49:27 PDT 2016 -->
6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7<title>ObjectIdGenerator (Jackson-annotations 2.8.0 API)</title>
8<meta name="date" content="2016-07-07">
9<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
10</head>
11<body>
12<script type="text/javascript"><!--
13    if (location.href.indexOf('is-external=true') == -1) {
14        parent.document.title="ObjectIdGenerator (Jackson-annotations 2.8.0 API)";
15    }
16//-->
17</script>
18<noscript>
19<div>JavaScript is disabled on your browser.</div>
20</noscript>
21<!-- ========= START OF TOP NAVBAR ======= -->
22<div class="topNav"><a name="navbar_top">
23<!--   -->
24</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
25<!--   -->
26</a>
27<ul class="navList" title="Navigation">
28<li><a href="../../../../com/fasterxml/jackson/annotation/package-summary.html">Package</a></li>
29<li class="navBarCell1Rev">Class</li>
30<li><a href="class-use/ObjectIdGenerator.html">Use</a></li>
31<li><a href="package-tree.html">Tree</a></li>
32<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
33<li><a href="../../../../index-all.html">Index</a></li>
34<li><a href="../../../../help-doc.html">Help</a></li>
35</ul>
36</div>
37<div class="subNav">
38<ul class="navList">
39<li><a href="../../../../com/fasterxml/jackson/annotation/JsonView.html" title="annotation in com.fasterxml.jackson.annotation"><span class="strong">Prev Class</span></a></li>
40<li><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.IdKey.html" title="class in com.fasterxml.jackson.annotation"><span class="strong">Next Class</span></a></li>
41</ul>
42<ul class="navList">
43<li><a href="../../../../index.html?com/fasterxml/jackson/annotation/ObjectIdGenerator.html" target="_top">Frames</a></li>
44<li><a href="ObjectIdGenerator.html" target="_top">No Frames</a></li>
45</ul>
46<ul class="navList" id="allclasses_navbar_top">
47<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
48</ul>
49<div>
50<script type="text/javascript"><!--
51  allClassesLink = document.getElementById("allclasses_navbar_top");
52  if(window==top) {
53    allClassesLink.style.display = "block";
54  }
55  else {
56    allClassesLink.style.display = "none";
57  }
58  //-->
59</script>
60</div>
61<div>
62<ul class="subNavList">
63<li>Summary:&nbsp;</li>
64<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
65<li>Field&nbsp;|&nbsp;</li>
66<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
67<li><a href="#method_summary">Method</a></li>
68</ul>
69<ul class="subNavList">
70<li>Detail:&nbsp;</li>
71<li>Field&nbsp;|&nbsp;</li>
72<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
73<li><a href="#method_detail">Method</a></li>
74</ul>
75</div>
76<a name="skip-navbar_top">
77<!--   -->
78</a></div>
79<!-- ========= END OF TOP NAVBAR ========= -->
80<!-- ======== START OF CLASS DATA ======== -->
81<div class="header">
82<div class="subTitle">com.fasterxml.jackson.annotation</div>
83<h2 title="Class ObjectIdGenerator" class="title">Class ObjectIdGenerator&lt;T&gt;</h2>
84</div>
85<div class="contentContainer">
86<ul class="inheritance">
87<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
88<li>
89<ul class="inheritance">
90<li>com.fasterxml.jackson.annotation.ObjectIdGenerator&lt;T&gt;</li>
91</ul>
92</li>
93</ul>
94<div class="description">
95<ul class="blockList">
96<li class="blockList">
97<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - Type of Object Identifiers produced.</dd></dl>
98<dl>
99<dt>All Implemented Interfaces:</dt>
100<dd><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></dd>
101</dl>
102<dl>
103<dt>Direct Known Subclasses:</dt>
104<dd><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerators.IntSequenceGenerator.html" title="class in com.fasterxml.jackson.annotation">ObjectIdGenerators.IntSequenceGenerator</a>, <a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerators.None.html" title="class in com.fasterxml.jackson.annotation">ObjectIdGenerators.None</a>, <a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerators.PropertyGenerator.html" title="class in com.fasterxml.jackson.annotation">ObjectIdGenerators.PropertyGenerator</a>, <a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerators.StringIdGenerator.html" title="class in com.fasterxml.jackson.annotation">ObjectIdGenerators.StringIdGenerator</a>, <a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerators.UUIDGenerator.html" title="class in com.fasterxml.jackson.annotation">ObjectIdGenerators.UUIDGenerator</a></dd>
105</dl>
106<hr>
107<br>
108<pre>public abstract class <span class="strong">ObjectIdGenerator&lt;T&gt;</span>
109extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
110implements <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></pre>
111<div class="block">Definition of API used for constructing Object Identifiers
112 (as annotated using <a href="../../../../com/fasterxml/jackson/annotation/JsonIdentityInfo.html" title="annotation in com.fasterxml.jackson.annotation"><code>JsonIdentityInfo</code></a>).
113 Also defines factory methods used for creating instances
114 for serialization, deserialization.</div>
115<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../serialized-form.html#com.fasterxml.jackson.annotation.ObjectIdGenerator">Serialized Form</a></dd></dl>
116</li>
117</ul>
118</div>
119<div class="summary">
120<ul class="blockList">
121<li class="blockList">
122<!-- ======== NESTED CLASS SUMMARY ======== -->
123<ul class="blockList">
124<li class="blockList"><a name="nested_class_summary">
125<!--   -->
126</a>
127<h3>Nested Class Summary</h3>
128<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
129<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
130<tr>
131<th class="colFirst" scope="col">Modifier and Type</th>
132<th class="colLast" scope="col">Class and Description</th>
133</tr>
134<tr class="altColor">
135<td class="colFirst"><code>static class&nbsp;</code></td>
136<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.IdKey.html" title="class in com.fasterxml.jackson.annotation">ObjectIdGenerator.IdKey</a></strong></code>
137<div class="block">Simple key class that can be used as a key for
138 ObjectId-to-POJO mappings, when multiple ObjectId types
139 and scopes are used.</div>
140</td>
141</tr>
142</table>
143</li>
144</ul>
145<!-- ======== CONSTRUCTOR SUMMARY ======== -->
146<ul class="blockList">
147<li class="blockList"><a name="constructor_summary">
148<!--   -->
149</a>
150<h3>Constructor Summary</h3>
151<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
152<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
153<tr>
154<th class="colOne" scope="col">Constructor and Description</th>
155</tr>
156<tr class="altColor">
157<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html#ObjectIdGenerator()">ObjectIdGenerator</a></strong>()</code>&nbsp;</td>
158</tr>
159</table>
160</li>
161</ul>
162<!-- ========== METHOD SUMMARY =========== -->
163<ul class="blockList">
164<li class="blockList"><a name="method_summary">
165<!--   -->
166</a>
167<h3>Method Summary</h3>
168<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
169<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
170<tr>
171<th class="colFirst" scope="col">Modifier and Type</th>
172<th class="colLast" scope="col">Method and Description</th>
173</tr>
174<tr class="altColor">
175<td class="colFirst"><code>abstract boolean</code></td>
176<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html#canUseFor(com.fasterxml.jackson.annotation.ObjectIdGenerator)">canUseFor</a></strong>(<a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html" title="class in com.fasterxml.jackson.annotation">ObjectIdGenerator</a>&lt;?&gt;&nbsp;gen)</code>
177<div class="block">Method called to check whether this generator instance can
178 be used for Object Ids of specific generator type and
179 scope; determination is based by passing a configured
180 "blueprint" (prototype) instance; from which the actual
181 instances are created (using <a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html#newForSerialization(java.lang.Object)"><code>newForSerialization(java.lang.Object)</code></a>).</div>
182</td>
183</tr>
184<tr class="rowColor">
185<td class="colFirst"><code>abstract <a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html" title="class in com.fasterxml.jackson.annotation">ObjectIdGenerator</a>&lt;<a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html" title="type parameter in ObjectIdGenerator">T</a>&gt;</code></td>
186<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html#forScope(java.lang.Class)">forScope</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;scope)</code>
187<div class="block">Factory method to create a blueprint instance for specified
188 scope.</div>
189</td>
190</tr>
191<tr class="altColor">
192<td class="colFirst"><code>abstract <a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html" title="type parameter in ObjectIdGenerator">T</a></code></td>
193<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html#generateId(java.lang.Object)">generateId</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;forPojo)</code>
194<div class="block">Method used for generating a new Object Identifier to serialize
195 for given POJO.</div>
196</td>
197</tr>
198<tr class="rowColor">
199<td class="colFirst"><code>abstract <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;</code></td>
200<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html#getScope()">getScope</a></strong>()</code>&nbsp;</td>
201</tr>
202<tr class="altColor">
203<td class="colFirst"><code>boolean</code></td>
204<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html#isValidReferencePropertyName(java.lang.String,%20java.lang.Object)">isValidReferencePropertyName</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name,
205                            <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;parser)</code>
206<div class="block">Accessor that may be called (after verifying (via <a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html#maySerializeAsObject()"><code>maySerializeAsObject()</code></a>)
207 whether given name</div>
208</td>
209</tr>
210<tr class="rowColor">
211<td class="colFirst"><code>abstract <a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.IdKey.html" title="class in com.fasterxml.jackson.annotation">ObjectIdGenerator.IdKey</a></code></td>
212<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html#key(java.lang.Object)">key</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;key)</code>
213<div class="block">Method for constructing key to use for ObjectId-to-POJO maps.</div>
214</td>
215</tr>
216<tr class="altColor">
217<td class="colFirst"><code>boolean</code></td>
218<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html#maySerializeAsObject()">maySerializeAsObject</a></strong>()</code>
219<div class="block">Accessor that needs to be overridden to return <code>true</code>
220 if the Object Id may be serialized as JSON Object; used by, for example,
221 JSOG handling.</div>
222</td>
223</tr>
224<tr class="rowColor">
225<td class="colFirst"><code>abstract <a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html" title="class in com.fasterxml.jackson.annotation">ObjectIdGenerator</a>&lt;<a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html" title="type parameter in ObjectIdGenerator">T</a>&gt;</code></td>
226<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html#newForSerialization(java.lang.Object)">newForSerialization</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;context)</code>
227<div class="block">Factory method called to create a new instance to use for
228 serialization: needed since generators may have state
229 (next id to produce).</div>
230</td>
231</tr>
232</table>
233<ul class="blockList">
234<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
235<!--   -->
236</a>
237<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
238<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/6/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://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li>
239</ul>
240</li>
241</ul>
242</li>
243</ul>
244</div>
245<div class="details">
246<ul class="blockList">
247<li class="blockList">
248<!-- ========= CONSTRUCTOR DETAIL ======== -->
249<ul class="blockList">
250<li class="blockList"><a name="constructor_detail">
251<!--   -->
252</a>
253<h3>Constructor Detail</h3>
254<a name="ObjectIdGenerator()">
255<!--   -->
256</a>
257<ul class="blockListLast">
258<li class="blockList">
259<h4>ObjectIdGenerator</h4>
260<pre>public&nbsp;ObjectIdGenerator()</pre>
261</li>
262</ul>
263</li>
264</ul>
265<!-- ============ METHOD DETAIL ========== -->
266<ul class="blockList">
267<li class="blockList"><a name="method_detail">
268<!--   -->
269</a>
270<h3>Method Detail</h3>
271<a name="getScope()">
272<!--   -->
273</a>
274<ul class="blockList">
275<li class="blockList">
276<h4>getScope</h4>
277<pre>public abstract&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;getScope()</pre>
278</li>
279</ul>
280<a name="canUseFor(com.fasterxml.jackson.annotation.ObjectIdGenerator)">
281<!--   -->
282</a>
283<ul class="blockList">
284<li class="blockList">
285<h4>canUseFor</h4>
286<pre>public abstract&nbsp;boolean&nbsp;canUseFor(<a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html" title="class in com.fasterxml.jackson.annotation">ObjectIdGenerator</a>&lt;?&gt;&nbsp;gen)</pre>
287<div class="block">Method called to check whether this generator instance can
288 be used for Object Ids of specific generator type and
289 scope; determination is based by passing a configured
290 "blueprint" (prototype) instance; from which the actual
291 instances are created (using <a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html#newForSerialization(java.lang.Object)"><code>newForSerialization(java.lang.Object)</code></a>).</div>
292<dl><dt><span class="strong">Returns:</span></dt><dd>True if this instance can be used as-is; false if not</dd></dl>
293</li>
294</ul>
295<a name="maySerializeAsObject()">
296<!--   -->
297</a>
298<ul class="blockList">
299<li class="blockList">
300<h4>maySerializeAsObject</h4>
301<pre>public&nbsp;boolean&nbsp;maySerializeAsObject()</pre>
302<div class="block">Accessor that needs to be overridden to return <code>true</code>
303 if the Object Id may be serialized as JSON Object; used by, for example,
304 JSOG handling.
305 The reason accessor is needed is because handling such Object Ids is
306 more complex and may incur additional buffering or performance overhead,
307 avoiding of which makes sense for common case of scalar object ids
308 (or native object ids some formats support).
309<p>
310 Default implementation returns <code>false</code>, so needs to be overridden
311 by Object-producing generators.</div>
312<dl><dt><span class="strong">Since:</span></dt>
313  <dd>2.5</dd></dl>
314</li>
315</ul>
316<a name="isValidReferencePropertyName(java.lang.String, java.lang.Object)">
317<!--   -->
318</a>
319<ul class="blockList">
320<li class="blockList">
321<h4>isValidReferencePropertyName</h4>
322<pre>public&nbsp;boolean&nbsp;isValidReferencePropertyName(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name,
323                                   <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;parser)</pre>
324<div class="block">Accessor that may be called (after verifying (via <a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html#maySerializeAsObject()"><code>maySerializeAsObject()</code></a>)
325 whether given name</div>
326<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Name of property to check</dd><dd><code>parser</code> - Parser that points to property name, in case generator needs
327    further verification (note: untyped, because <code>JsonParser</code> is defined
328    in `jackson-core`, and this package does not depend on it).</dd><dt><span class="strong">Since:</span></dt>
329  <dd>2.5</dd></dl>
330</li>
331</ul>
332<a name="forScope(java.lang.Class)">
333<!--   -->
334</a>
335<ul class="blockList">
336<li class="blockList">
337<h4>forScope</h4>
338<pre>public abstract&nbsp;<a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html" title="class in com.fasterxml.jackson.annotation">ObjectIdGenerator</a>&lt;<a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html" title="type parameter in ObjectIdGenerator">T</a>&gt;&nbsp;forScope(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;scope)</pre>
339<div class="block">Factory method to create a blueprint instance for specified
340 scope. Generators that do not use scope may return 'this'.</div>
341</li>
342</ul>
343<a name="newForSerialization(java.lang.Object)">
344<!--   -->
345</a>
346<ul class="blockList">
347<li class="blockList">
348<h4>newForSerialization</h4>
349<pre>public abstract&nbsp;<a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html" title="class in com.fasterxml.jackson.annotation">ObjectIdGenerator</a>&lt;<a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html" title="type parameter in ObjectIdGenerator">T</a>&gt;&nbsp;newForSerialization(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;context)</pre>
350<div class="block">Factory method called to create a new instance to use for
351 serialization: needed since generators may have state
352 (next id to produce).
353<p>
354 Note that actual type of 'context' is
355 <code>com.fasterxml.jackson.databind.SerializerProvider</code>,
356 but can not be declared here as type itself (as well as call
357 to this object) comes from databind package.</div>
358<dl><dt><span class="strong">Parameters:</span></dt><dd><code>context</code> - Serialization context object used (of type
359    <code>com.fasterxml.jackson.databind.SerializerProvider</code>;
360    may be needed by more complex generators to access contextual
361    information such as configuration.</dd></dl>
362</li>
363</ul>
364<a name="key(java.lang.Object)">
365<!--   -->
366</a>
367<ul class="blockList">
368<li class="blockList">
369<h4>key</h4>
370<pre>public abstract&nbsp;<a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.IdKey.html" title="class in com.fasterxml.jackson.annotation">ObjectIdGenerator.IdKey</a>&nbsp;key(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;key)</pre>
371<div class="block">Method for constructing key to use for ObjectId-to-POJO maps.</div>
372</li>
373</ul>
374<a name="generateId(java.lang.Object)">
375<!--   -->
376</a>
377<ul class="blockListLast">
378<li class="blockList">
379<h4>generateId</h4>
380<pre>public abstract&nbsp;<a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html" title="type parameter in ObjectIdGenerator">T</a>&nbsp;generateId(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;forPojo)</pre>
381<div class="block">Method used for generating a new Object Identifier to serialize
382 for given POJO.</div>
383<dl><dt><span class="strong">Parameters:</span></dt><dd><code>forPojo</code> - POJO for which identifier is needed</dd>
384<dt><span class="strong">Returns:</span></dt><dd>Object Identifier to use.</dd></dl>
385</li>
386</ul>
387</li>
388</ul>
389</li>
390</ul>
391</div>
392</div>
393<!-- ========= END OF CLASS DATA ========= -->
394<!-- ======= START OF BOTTOM NAVBAR ====== -->
395<div class="bottomNav"><a name="navbar_bottom">
396<!--   -->
397</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
398<!--   -->
399</a>
400<ul class="navList" title="Navigation">
401<li><a href="../../../../com/fasterxml/jackson/annotation/package-summary.html">Package</a></li>
402<li class="navBarCell1Rev">Class</li>
403<li><a href="class-use/ObjectIdGenerator.html">Use</a></li>
404<li><a href="package-tree.html">Tree</a></li>
405<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
406<li><a href="../../../../index-all.html">Index</a></li>
407<li><a href="../../../../help-doc.html">Help</a></li>
408</ul>
409</div>
410<div class="subNav">
411<ul class="navList">
412<li><a href="../../../../com/fasterxml/jackson/annotation/JsonView.html" title="annotation in com.fasterxml.jackson.annotation"><span class="strong">Prev Class</span></a></li>
413<li><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.IdKey.html" title="class in com.fasterxml.jackson.annotation"><span class="strong">Next Class</span></a></li>
414</ul>
415<ul class="navList">
416<li><a href="../../../../index.html?com/fasterxml/jackson/annotation/ObjectIdGenerator.html" target="_top">Frames</a></li>
417<li><a href="ObjectIdGenerator.html" target="_top">No Frames</a></li>
418</ul>
419<ul class="navList" id="allclasses_navbar_bottom">
420<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
421</ul>
422<div>
423<script type="text/javascript"><!--
424  allClassesLink = document.getElementById("allclasses_navbar_bottom");
425  if(window==top) {
426    allClassesLink.style.display = "block";
427  }
428  else {
429    allClassesLink.style.display = "none";
430  }
431  //-->
432</script>
433</div>
434<div>
435<ul class="subNavList">
436<li>Summary:&nbsp;</li>
437<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
438<li>Field&nbsp;|&nbsp;</li>
439<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
440<li><a href="#method_summary">Method</a></li>
441</ul>
442<ul class="subNavList">
443<li>Detail:&nbsp;</li>
444<li>Field&nbsp;|&nbsp;</li>
445<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
446<li><a href="#method_detail">Method</a></li>
447</ul>
448</div>
449<a name="skip-navbar_bottom">
450<!--   -->
451</a></div>
452<!-- ======== END OF BOTTOM NAVBAR ======= -->
453<p class="legalCopy"><small>Copyright &#169; 2008&#x2013;2016 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p>
454</body>
455</html>
456