public class ObjectIdSerializer
extends com.fasterxml.jackson.databind.JsonSerializer<org.bson.types.ObjectId>
ObjectId
s, which serializes an ObjectId as a String by
calling ObjectId.toString()
.Constructor and Description |
---|
ObjectIdSerializer() |
Modifier and Type | Method and Description |
---|---|
Class<org.bson.types.ObjectId> |
handledType() |
void |
serialize(org.bson.types.ObjectId objectId,
com.fasterxml.jackson.core.JsonGenerator jsonGenerator,
com.fasterxml.jackson.databind.SerializerProvider serializerProvider) |
public void serialize(org.bson.types.ObjectId objectId, com.fasterxml.jackson.core.JsonGenerator jsonGenerator, com.fasterxml.jackson.databind.SerializerProvider serializerProvider) throws IOException
serialize
in class com.fasterxml.jackson.databind.JsonSerializer<org.bson.types.ObjectId>
IOException
public Class<org.bson.types.ObjectId> handledType()
handledType
in class com.fasterxml.jackson.databind.JsonSerializer<org.bson.types.ObjectId>
Copyright © 2015 CrafterCMS. All Rights Reserved.