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 Tue Jan 23 20:10:06 PST 2018 --> 6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<title>ObjectIdGenerators (Jackson-annotations 2.9.0 API)</title> 8<meta name="date" content="2018-01-23"> 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="ObjectIdGenerators (Jackson-annotations 2.9.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/ObjectIdGenerators.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/ObjectIdGenerator.IdKey.html" title="class in com.fasterxml.jackson.annotation"><span class="strong">Prev Class</span></a></li> 40<li><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerators.IntSequenceGenerator.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/ObjectIdGenerators.html" target="_top">Frames</a></li> 44<li><a href="ObjectIdGenerators.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: </li> 64<li><a href="#nested_class_summary">Nested</a> | </li> 65<li>Field | </li> 66<li><a href="#constructor_summary">Constr</a> | </li> 67<li><a href="#methods_inherited_from_class_java.lang.Object">Method</a></li> 68</ul> 69<ul class="subNavList"> 70<li>Detail: </li> 71<li>Field | </li> 72<li><a href="#constructor_detail">Constr</a> | </li> 73<li>Method</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 ObjectIdGenerators" class="title">Class ObjectIdGenerators</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.ObjectIdGenerators</li> 91</ul> 92</li> 93</ul> 94<div class="description"> 95<ul class="blockList"> 96<li class="blockList"> 97<hr> 98<br> 99<pre>public class <span class="strong">ObjectIdGenerators</span> 100extends <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></pre> 101<div class="block">Container class for standard <a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.html" title="class in com.fasterxml.jackson.annotation"><code>ObjectIdGenerator</code></a> implementations: 102<ul> 103 <li><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerators.IntSequenceGenerator.html" title="class in com.fasterxml.jackson.annotation"><code>ObjectIdGenerators.IntSequenceGenerator</code></a> 104 <li><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerators.PropertyGenerator.html" title="class in com.fasterxml.jackson.annotation"><code>ObjectIdGenerators.PropertyGenerator</code></a> 105 <li><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerators.StringIdGenerator.html" title="class in com.fasterxml.jackson.annotation"><code>ObjectIdGenerators.StringIdGenerator</code></a> (since 2.7) 106 <li><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerators.UUIDGenerator.html" title="class in com.fasterxml.jackson.annotation"><code>ObjectIdGenerators.UUIDGenerator</code></a> 107</ul> 108<p> 109 NOTE: <a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerators.PropertyGenerator.html" title="class in com.fasterxml.jackson.annotation"><code>ObjectIdGenerators.PropertyGenerator</code></a> applicability is limited in one case: it can only 110 be used on polymorphic base types (ones indicated using <a href="../../../../com/fasterxml/jackson/annotation/JsonTypeInfo.html" title="annotation in com.fasterxml.jackson.annotation"><code>JsonTypeInfo</code></a> or 111 default typing) via class annotations: property annotation will fail due to lack 112 of access to property, needed to determine type of Object Id for deserialization. 113 This limitation may be lifted in future versions but it is the limitation at least 114 up to and including Jackson 2.9.</div> 115</li> 116</ul> 117</div> 118<div class="summary"> 119<ul class="blockList"> 120<li class="blockList"> 121<!-- ======== NESTED CLASS SUMMARY ======== --> 122<ul class="blockList"> 123<li class="blockList"><a name="nested_class_summary"> 124<!-- --> 125</a> 126<h3>Nested Class Summary</h3> 127<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation"> 128<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> 129<tr> 130<th class="colFirst" scope="col">Modifier and Type</th> 131<th class="colLast" scope="col">Class and Description</th> 132</tr> 133<tr class="altColor"> 134<td class="colFirst"><code>static class </code></td> 135<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerators.IntSequenceGenerator.html" title="class in com.fasterxml.jackson.annotation">ObjectIdGenerators.IntSequenceGenerator</a></strong></code> 136<div class="block">Simple sequence-number based generator, which uses basic Java 137 <code>int</code>s (starting with value 1) as Object Identifiers.</div> 138</td> 139</tr> 140<tr class="rowColor"> 141<td class="colFirst"><code>static class </code></td> 142<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerators.None.html" title="class in com.fasterxml.jackson.annotation">ObjectIdGenerators.None</a></strong></code> 143<div class="block">Abstract marker class used to allow explicitly specifying 144 that no generator is used; which also implies that no 145 Object Id is to be included or used.</div> 146</td> 147</tr> 148<tr class="altColor"> 149<td class="colFirst"><code>static class </code></td> 150<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerators.PropertyGenerator.html" title="class in com.fasterxml.jackson.annotation">ObjectIdGenerators.PropertyGenerator</a></strong></code> 151<div class="block">Abstract place-holder class which is used to denote case 152 where Object Identifier to use comes from a POJO property 153 (getter method or field).</div> 154</td> 155</tr> 156<tr class="rowColor"> 157<td class="colFirst"><code>static class </code></td> 158<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerators.StringIdGenerator.html" title="class in com.fasterxml.jackson.annotation">ObjectIdGenerators.StringIdGenerator</a></strong></code> 159<div class="block">Implementation that will accept arbitrary (but unique) String Ids on 160 deserialization, and (by default) use random UUID generation similar 161 to <a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerators.UUIDGenerator.html" title="class in com.fasterxml.jackson.annotation"><code>ObjectIdGenerators.UUIDGenerator</code></a> for generation ids.</div> 162</td> 163</tr> 164<tr class="altColor"> 165<td class="colFirst"><code>static class </code></td> 166<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerators.UUIDGenerator.html" title="class in com.fasterxml.jackson.annotation">ObjectIdGenerators.UUIDGenerator</a></strong></code> 167<div class="block">Implementation that just uses <a href="http://docs.oracle.com/javase/6/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util"><code>UUID</code></a>s as reliably 168 unique identifiers: downside is that resulting String is 169 36 characters long.</div> 170</td> 171</tr> 172</table> 173</li> 174</ul> 175<!-- ======== CONSTRUCTOR SUMMARY ======== --> 176<ul class="blockList"> 177<li class="blockList"><a name="constructor_summary"> 178<!-- --> 179</a> 180<h3>Constructor Summary</h3> 181<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 182<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 183<tr> 184<th class="colOne" scope="col">Constructor and Description</th> 185</tr> 186<tr class="altColor"> 187<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerators.html#ObjectIdGenerators()">ObjectIdGenerators</a></strong>()</code> </td> 188</tr> 189</table> 190</li> 191</ul> 192<!-- ========== METHOD SUMMARY =========== --> 193<ul class="blockList"> 194<li class="blockList"><a name="method_summary"> 195<!-- --> 196</a> 197<h3>Method Summary</h3> 198<ul class="blockList"> 199<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 200<!-- --> 201</a> 202<h3>Methods inherited from class 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> 203<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> 204</ul> 205</li> 206</ul> 207</li> 208</ul> 209</div> 210<div class="details"> 211<ul class="blockList"> 212<li class="blockList"> 213<!-- ========= CONSTRUCTOR DETAIL ======== --> 214<ul class="blockList"> 215<li class="blockList"><a name="constructor_detail"> 216<!-- --> 217</a> 218<h3>Constructor Detail</h3> 219<a name="ObjectIdGenerators()"> 220<!-- --> 221</a> 222<ul class="blockListLast"> 223<li class="blockList"> 224<h4>ObjectIdGenerators</h4> 225<pre>public ObjectIdGenerators()</pre> 226</li> 227</ul> 228</li> 229</ul> 230</li> 231</ul> 232</div> 233</div> 234<!-- ========= END OF CLASS DATA ========= --> 235<!-- ======= START OF BOTTOM NAVBAR ====== --> 236<div class="bottomNav"><a name="navbar_bottom"> 237<!-- --> 238</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 239<!-- --> 240</a> 241<ul class="navList" title="Navigation"> 242<li><a href="../../../../com/fasterxml/jackson/annotation/package-summary.html">Package</a></li> 243<li class="navBarCell1Rev">Class</li> 244<li><a href="class-use/ObjectIdGenerators.html">Use</a></li> 245<li><a href="package-tree.html">Tree</a></li> 246<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 247<li><a href="../../../../index-all.html">Index</a></li> 248<li><a href="../../../../help-doc.html">Help</a></li> 249</ul> 250</div> 251<div class="subNav"> 252<ul class="navList"> 253<li><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerator.IdKey.html" title="class in com.fasterxml.jackson.annotation"><span class="strong">Prev Class</span></a></li> 254<li><a href="../../../../com/fasterxml/jackson/annotation/ObjectIdGenerators.IntSequenceGenerator.html" title="class in com.fasterxml.jackson.annotation"><span class="strong">Next Class</span></a></li> 255</ul> 256<ul class="navList"> 257<li><a href="../../../../index.html?com/fasterxml/jackson/annotation/ObjectIdGenerators.html" target="_top">Frames</a></li> 258<li><a href="ObjectIdGenerators.html" target="_top">No Frames</a></li> 259</ul> 260<ul class="navList" id="allclasses_navbar_bottom"> 261<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 262</ul> 263<div> 264<script type="text/javascript"><!-- 265 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 266 if(window==top) { 267 allClassesLink.style.display = "block"; 268 } 269 else { 270 allClassesLink.style.display = "none"; 271 } 272 //--> 273</script> 274</div> 275<div> 276<ul class="subNavList"> 277<li>Summary: </li> 278<li><a href="#nested_class_summary">Nested</a> | </li> 279<li>Field | </li> 280<li><a href="#constructor_summary">Constr</a> | </li> 281<li><a href="#methods_inherited_from_class_java.lang.Object">Method</a></li> 282</ul> 283<ul class="subNavList"> 284<li>Detail: </li> 285<li>Field | </li> 286<li><a href="#constructor_detail">Constr</a> | </li> 287<li>Method</li> 288</ul> 289</div> 290<a name="skip-navbar_bottom"> 291<!-- --> 292</a></div> 293<!-- ======== END OF BOTTOM NAVBAR ======= --> 294<p class="legalCopy"><small>Copyright © 2008–2018 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> 295</body> 296</html> 297