public abstract class IdentityDeserializationInfo<T,V> extends HasDeserializer<V,JsonDeserializer<V>>
| Modifier | Constructor and Description |
|---|---|
protected |
IdentityDeserializationInfo(String propertyName,
Class<?> type,
Class<?> scope) |
| Modifier and Type | Method and Description |
|---|---|
String |
getPropertyName() |
void |
readAndAddIdToContext(JsonReader reader,
T bean,
JsonDeserializationContext ctx)
Reads the id and adds an
ObjectIdGenerator.IdKey to the context. |
com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey |
readIdKey(JsonReader reader,
JsonDeserializationContext ctx)
Reads the id and returns an
ObjectIdGenerator.IdKey to the context. |
protected void |
setIdToBean(T bean,
V id)
Override this method to set the id into the bean
|
getDeserializer, newDeserializerpublic final String getPropertyName()
public final com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey readIdKey(JsonReader reader, JsonDeserializationContext ctx)
ObjectIdGenerator.IdKey to the context.reader - readerctx - context of the deserialization processObjectIdGenerator.IdKeypublic final void readAndAddIdToContext(JsonReader reader, T bean, JsonDeserializationContext ctx)
ObjectIdGenerator.IdKey to the context.reader - readerbean - the bean to associate the id toctx - context of the deserialization processCopyright © 2013. All Rights Reserved.