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