• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_35) on Fri Oct 05 20:53:30 PDT 2012 -->
6<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
7<TITLE>
8ObjectIdGenerator (Jackson-annotations 2.1.0 API)
9</TITLE>
10
11<META NAME="date" CONTENT="2012-10-05">
12
13<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
14
15<SCRIPT type="text/javascript">
16function windowTitle()
17{
18    if (location.href.indexOf('is-external=true') == -1) {
19        parent.document.title="ObjectIdGenerator (Jackson-annotations 2.1.0 API)";
20    }
21}
22</SCRIPT>
23<NOSCRIPT>
24</NOSCRIPT>
25
26</HEAD>
27
28<BODY BGCOLOR="white" onload="windowTitle();">
29<HR>
30
31
32<!-- ========= START OF TOP NAVBAR ======= -->
33<A NAME="navbar_top"><!-- --></A>
34<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
35<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
36<TR>
37<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
38<A NAME="navbar_top_firstrow"><!-- --></A>
39<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
40  <TR ALIGN="center" VALIGN="top">
41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../com/fasterxml/jackson/annotation/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/ObjectIdGenerator.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><script type="text/javascript"><!--
52google_ad_client = "pub-1467773697956887";
53/* Jackson-ad-small */
54google_ad_slot = "6699487946";
55google_ad_width = 234;
56google_ad_height = 60;
57//-->
58</script>
59<script type="text/javascript"
60src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
61</script>
62</TD>
63</TR>
64
65<TR>
66<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
67&nbsp;<A HREF="../../../../com/fasterxml/jackson/annotation/JsonView.html" title="annotation in com.fasterxml.jackson.annotation"><B>PREV CLASS</B></A>&nbsp;
68&nbsp;<A HREF="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.IdKey.html" title="class in com.fasterxml.jackson.annotation"><B>NEXT CLASS</B></A></FONT></TD>
69<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
70  <A HREF="../../../../index.html?com/fasterxml/jackson/annotation/ObjectIdGenerator.html" target="_top"><B>FRAMES</B></A>  &nbsp;
71&nbsp;<A HREF="ObjectIdGenerator.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
72&nbsp;<SCRIPT type="text/javascript">
73  <!--
74  if(window==top) {
75    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
76  }
77  //-->
78</SCRIPT>
79<NOSCRIPT>
80  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
81</NOSCRIPT>
82
83
84</FONT></TD>
85</TR>
86<TR>
87<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
88  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
89<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
90DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
91</TR>
92</TABLE>
93<A NAME="skip-navbar_top"></A>
94<!-- ========= END OF TOP NAVBAR ========= -->
95
96<HR>
97<!-- ======== START OF CLASS DATA ======== -->
98<H2>
99<FONT SIZE="-1">
100com.fasterxml.jackson.annotation</FONT>
101<BR>
102Class ObjectIdGenerator&lt;T&gt;</H2>
103<PRE>
104<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>
105  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.fasterxml.jackson.annotation.ObjectIdGenerator&lt;T&gt;</B>
106</PRE>
107<DL>
108<DT><DT><B>Type Parameters:</B><DD><CODE>T</CODE> - Type of Object Identifiers produced.</DL>
109<DL>
110<DT><B>Direct Known Subclasses:</B> <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.UUIDGenerator.html" title="class in com.fasterxml.jackson.annotation">ObjectIdGenerators.UUIDGenerator</A></DD>
111</DL>
112<HR>
113<DL>
114<DT><PRE>public abstract class <B>ObjectIdGenerator&lt;T&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>
115</PRE>
116
117<P>
118Definition of API used for constructing Object Identifiers
119 (as annotated using <A HREF="../../../../com/fasterxml/jackson/annotation/JsonIdentityInfo.html" title="annotation in com.fasterxml.jackson.annotation"><CODE>JsonIdentityInfo</CODE></A>).
120 Also defines factory methods used for creating instances
121 for serialization, deserialization.
122<P>
123
124<P>
125<HR>
126
127<P>
128<!-- ======== NESTED CLASS SUMMARY ======== -->
129
130<A NAME="nested_class_summary"><!-- --></A>
131<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
132<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
133<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
134<B>Nested Class Summary</B></FONT></TH>
135</TR>
136<TR BGCOLOR="white" CLASS="TableRowColor">
137<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
138<CODE>static&nbsp;class</CODE></FONT></TD>
139<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.IdKey.html" title="class in com.fasterxml.jackson.annotation">ObjectIdGenerator.IdKey</A></B></CODE>
140
141<BR>
142&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Simple key class that can be used as a key for
143 ObjectId-to-POJO mappings, when multiple ObjectId types
144 and scopes are used.</TD>
145</TR>
146</TABLE>
147&nbsp;
148<!-- ======== CONSTRUCTOR SUMMARY ======== -->
149
150<A NAME="constructor_summary"><!-- --></A>
151<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
152<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
153<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
154<B>Constructor Summary</B></FONT></TH>
155</TR>
156<TR BGCOLOR="white" CLASS="TableRowColor">
157<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html#ObjectIdGenerator()">ObjectIdGenerator</A></B>()</CODE>
158
159<BR>
160&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
161</TR>
162</TABLE>
163&nbsp;
164<!-- ========== METHOD SUMMARY =========== -->
165
166<A NAME="method_summary"><!-- --></A>
167<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
168<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
169<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
170<B>Method Summary</B></FONT></TH>
171</TR>
172<TR BGCOLOR="white" CLASS="TableRowColor">
173<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
174<CODE>abstract &nbsp;boolean</CODE></FONT></TD>
175<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html#canUseFor(com.fasterxml.jackson.annotation.ObjectIdGenerator)">canUseFor</A></B>(<A HREF="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html" title="class in com.fasterxml.jackson.annotation">ObjectIdGenerator</A>&lt;?&gt;&nbsp;gen)</CODE>
176
177<BR>
178&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method called to check whether this generator instance can
179 be used for Object Ids of specific generator type and
180 scope; determination is based by passing a configured
181 "blueprint" (prototype) instance; from which the actual
182 instances are created (using <A HREF="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html#newForSerialization(java.lang.Object)"><CODE>newForSerialization(java.lang.Object)</CODE></A>).</TD>
183</TR>
184<TR BGCOLOR="white" CLASS="TableRowColor">
185<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
186<CODE>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;</CODE></FONT></TD>
187<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html#forScope(java.lang.Class)">forScope</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;?&gt;&nbsp;scope)</CODE>
188
189<BR>
190&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Factory method to create a blueprint instance for specified
191 scope.</TD>
192</TR>
193<TR BGCOLOR="white" CLASS="TableRowColor">
194<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
195<CODE>abstract &nbsp;<A HREF="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html" title="type parameter in ObjectIdGenerator">T</A></CODE></FONT></TD>
196<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html#generateId(java.lang.Object)">generateId</A></B>(<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>&nbsp;forPojo)</CODE>
197
198<BR>
199&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method used for generating a new Object Identifier to serialize
200 for given POJO.</TD>
201</TR>
202<TR BGCOLOR="white" CLASS="TableRowColor">
203<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
204<CODE>abstract &nbsp;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;?&gt;</CODE></FONT></TD>
205<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html#getScope()">getScope</A></B>()</CODE>
206
207<BR>
208&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
209</TR>
210<TR BGCOLOR="white" CLASS="TableRowColor">
211<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
212<CODE>abstract &nbsp;<A HREF="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.IdKey.html" title="class in com.fasterxml.jackson.annotation">ObjectIdGenerator.IdKey</A></CODE></FONT></TD>
213<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html#key(java.lang.Object)">key</A></B>(<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>&nbsp;key)</CODE>
214
215<BR>
216&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method for constructing key to use for ObjectId-to-POJO maps.</TD>
217</TR>
218<TR BGCOLOR="white" CLASS="TableRowColor">
219<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
220<CODE>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;</CODE></FONT></TD>
221<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html#newForSerialization(java.lang.Object)">newForSerialization</A></B>(<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>&nbsp;context)</CODE>
222
223<BR>
224&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Factory method called to create a new instance to use for
225 serialization: needed since generators may have state
226 (next id to produce).</TD>
227</TR>
228</TABLE>
229&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
230<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
231<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
232<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>
233</TR>
234<TR BGCOLOR="white" CLASS="TableRowColor">
235<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>
236</TR>
237</TABLE>
238&nbsp;
239<P>
240
241<!-- ========= CONSTRUCTOR DETAIL ======== -->
242
243<A NAME="constructor_detail"><!-- --></A>
244<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
245<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
246<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
247<B>Constructor Detail</B></FONT></TH>
248</TR>
249</TABLE>
250
251<A NAME="ObjectIdGenerator()"><!-- --></A><H3>
252ObjectIdGenerator</H3>
253<PRE>
254public <B>ObjectIdGenerator</B>()</PRE>
255<DL>
256</DL>
257
258<!-- ============ METHOD DETAIL ========== -->
259
260<A NAME="method_detail"><!-- --></A>
261<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
262<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
263<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
264<B>Method Detail</B></FONT></TH>
265</TR>
266</TABLE>
267
268<A NAME="getScope()"><!-- --></A><H3>
269getScope</H3>
270<PRE>
271public abstract <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;?&gt; <B>getScope</B>()</PRE>
272<DL>
273<DD><DL>
274</DL>
275</DD>
276</DL>
277<HR>
278
279<A NAME="canUseFor(com.fasterxml.jackson.annotation.ObjectIdGenerator)"><!-- --></A><H3>
280canUseFor</H3>
281<PRE>
282public abstract boolean <B>canUseFor</B>(<A HREF="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html" title="class in com.fasterxml.jackson.annotation">ObjectIdGenerator</A>&lt;?&gt;&nbsp;gen)</PRE>
283<DL>
284<DD>Method called to check whether this generator instance can
285 be used for Object Ids of specific generator type and
286 scope; determination is based by passing a configured
287 "blueprint" (prototype) instance; from which the actual
288 instances are created (using <A HREF="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html#newForSerialization(java.lang.Object)"><CODE>newForSerialization(java.lang.Object)</CODE></A>).
289<P>
290<DD><DL>
291
292<DT><B>Returns:</B><DD>True if this instance can be used as-is; false if not</DL>
293</DD>
294</DL>
295<HR>
296
297<A NAME="forScope(java.lang.Class)"><!-- --></A><H3>
298forScope</H3>
299<PRE>
300public 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; <B>forScope</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;?&gt;&nbsp;scope)</PRE>
301<DL>
302<DD>Factory method to create a blueprint instance for specified
303 scope. Generators that do not use scope may return 'this'.
304<P>
305<DD><DL>
306</DL>
307</DD>
308</DL>
309<HR>
310
311<A NAME="newForSerialization(java.lang.Object)"><!-- --></A><H3>
312newForSerialization</H3>
313<PRE>
314public 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; <B>newForSerialization</B>(<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>&nbsp;context)</PRE>
315<DL>
316<DD>Factory method called to create a new instance to use for
317 serialization: needed since generators may have state
318 (next id to produce).
319<p>
320 Note that actual type of 'context' is
321 <code>com.fasterxml.jackson.databind.SerializerProvider</code>,
322 but can not be declared here as type itself (as well as call
323 to this object) comes from databind package.
324<P>
325<DD><DL>
326<DT><B>Parameters:</B><DD><CODE>context</CODE> - Serialization context object used (of type
327    <code>com.fasterxml.jackson.databind.SerializerProvider</code>;
328    may be needed by more complex generators to access contextual
329    information such as configuration.</DL>
330</DD>
331</DL>
332<HR>
333
334<A NAME="key(java.lang.Object)"><!-- --></A><H3>
335key</H3>
336<PRE>
337public abstract <A HREF="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.IdKey.html" title="class in com.fasterxml.jackson.annotation">ObjectIdGenerator.IdKey</A> <B>key</B>(<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>&nbsp;key)</PRE>
338<DL>
339<DD>Method for constructing key to use for ObjectId-to-POJO maps.
340<P>
341<DD><DL>
342</DL>
343</DD>
344</DL>
345<HR>
346
347<A NAME="generateId(java.lang.Object)"><!-- --></A><H3>
348generateId</H3>
349<PRE>
350public abstract <A HREF="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html" title="type parameter in ObjectIdGenerator">T</A> <B>generateId</B>(<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>&nbsp;forPojo)</PRE>
351<DL>
352<DD>Method used for generating a new Object Identifier to serialize
353 for given POJO.
354<P>
355<DD><DL>
356<DT><B>Parameters:</B><DD><CODE>forPojo</CODE> - POJO for which identifier is needed
357<DT><B>Returns:</B><DD>Object Identifier to use.</DL>
358</DD>
359</DL>
360<!-- ========= END OF CLASS DATA ========= -->
361<HR>
362
363
364<!-- ======= START OF BOTTOM NAVBAR ====== -->
365<A NAME="navbar_bottom"><!-- --></A>
366<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
367<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
368<TR><td rowspan='3'><script type="text/javascript"><!--
369google_ad_client = "pub-1467773697956887";
370/* Jackson-ad-small */
371google_ad_slot = "6699487946";
372google_ad_width = 234;
373google_ad_height = 60;
374//-->
375</script>
376<script type="text/javascript"
377src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
378</script>
379<!-- GA -->
380<script type="text/javascript">
381var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
382document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
383</script>
384<script type="text/javascript">
385try {
386var pageTracker = _gat._getTracker("UA-140287-6");
387pageTracker._trackPageview();
388} catch(err) {}
389</script>
390</td>
391<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
392<A NAME="navbar_bottom_firstrow"><!-- --></A>
393<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
394  <TR ALIGN="center" VALIGN="top">
395  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../com/fasterxml/jackson/annotation/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
396  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
397  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ObjectIdGenerator.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
398  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
399  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
400  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
401  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
402  </TR>
403</TABLE>
404</TD>
405<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
406</EM>
407</TD>
408</TR>
409
410<TR>
411<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
412&nbsp;<A HREF="../../../../com/fasterxml/jackson/annotation/JsonView.html" title="annotation in com.fasterxml.jackson.annotation"><B>PREV CLASS</B></A>&nbsp;
413&nbsp;<A HREF="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.IdKey.html" title="class in com.fasterxml.jackson.annotation"><B>NEXT CLASS</B></A></FONT></TD>
414<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
415  <A HREF="../../../../index.html?com/fasterxml/jackson/annotation/ObjectIdGenerator.html" target="_top"><B>FRAMES</B></A>  &nbsp;
416&nbsp;<A HREF="ObjectIdGenerator.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
417&nbsp;<SCRIPT type="text/javascript">
418  <!--
419  if(window==top) {
420    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
421  }
422  //-->
423</SCRIPT>
424<NOSCRIPT>
425  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
426</NOSCRIPT>
427
428
429</FONT></TD>
430</TR>
431<TR>
432<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
433  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
434<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
435DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
436</TR>
437</TABLE>
438<A NAME="skip-navbar_bottom"></A>
439<!-- ======== END OF BOTTOM NAVBAR ======= -->
440
441<HR>
442Copyright &#169; 2012 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.
443</BODY>
444</HTML>
445