Class WritableObjectId
- java.lang.Object
-
- com.fasterxml.jackson.databind.ser.impl.WritableObjectId
-
public final class WritableObjectId extends Object
Simple value container used to keep track of Object Ids during serialization.
-
-
Field Summary
Fields Modifier and Type Field Description ObjectIdGenerator<?>generatorObjectid
-
Constructor Summary
Constructors Constructor Description WritableObjectId(ObjectIdGenerator<?> generator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgenerateId(Object forPojo)voidwriteAsField(JsonGenerator gen, SerializerProvider provider, ObjectIdWriter w)Method called to output Object Id as specified.booleanwriteAsId(JsonGenerator gen, SerializerProvider provider, ObjectIdWriter w)
-
-
-
Field Detail
-
generator
public final ObjectIdGenerator<?> generator
-
id
public Object id
-
-
Constructor Detail
-
WritableObjectId
public WritableObjectId(ObjectIdGenerator<?> generator)
-
-
Method Detail
-
writeAsId
public boolean writeAsId(JsonGenerator gen, SerializerProvider provider, ObjectIdWriter w) throws IOException
- Throws:
IOException
-
writeAsField
public void writeAsField(JsonGenerator gen, SerializerProvider provider, ObjectIdWriter w) throws IOException
Method called to output Object Id as specified.- Throws:
IOException
-
-