Top Description Fields Constructors Methods
com.fasterxml.jackson.databind.ser.impl

public final Class WritableObjectId

extends Object
Class Inheritance
Imports
java.io.IOException, com.fasterxml.jackson.annotation.ObjectIdGenerator, com.fasterxml.jackson.core.JsonGenerator, .SerializableString, com.fasterxml.jackson.databind.SerializerProvider

Simple value container used to keep track of Object Ids during serialization.

Field Summary

Modifier and TypeField and Description
public final ObjectIdGenerator<?>
public Object
protected boolean
idWritten

Marker to denote whether Object Id value has been written as part of an Object, to be referencible.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
generateId(Object forPojo)

public void
writeAsField(JsonGenerator gen, SerializerProvider provider, ObjectIdWriter w)

Method called to output Object Id as specified.

public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

generatorback to summary
public final ObjectIdGenerator<?> generator
idback to summary
public Object id
idWrittenback to summary
protected boolean idWritten

Marker to denote whether Object Id value has been written as part of an Object, to be referencible. Remains false when forward-reference is written.

Constructor Detail

WritableObjectIdback to summary
public WritableObjectId(ObjectIdGenerator<?> generator)

Method Detail

generateIdback to summary
public Object generateId(Object forPojo)
writeAsFieldback to summary
public void writeAsField(JsonGenerator gen, SerializerProvider provider, ObjectIdWriter w) throws IOException

Method called to output Object Id as specified.

writeAsIdback to summary
public boolean writeAsId(JsonGenerator gen, SerializerProvider provider, ObjectIdWriter w) throws IOException