public class ObjectIdReader extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected JsonDeserializer<Object> |
_deserializer
Deserializer used for deserializing id values.
|
protected JavaType |
_idType |
ObjectIdGenerator<?> |
generator
Blueprint generator instance: actual instance will be
fetched from
SerializerProvider using this as
the key. |
SettableBeanProperty |
idProperty |
PropertyName |
propertyName |
ObjectIdResolver |
resolver |
Modifier | Constructor and Description |
---|---|
protected |
ObjectIdReader(JavaType t,
PropertyName propName,
ObjectIdGenerator<?> gen,
JsonDeserializer<?> deser,
SettableBeanProperty idProp)
Deprecated.
|
protected |
ObjectIdReader(JavaType t,
PropertyName propName,
ObjectIdGenerator<?> gen,
JsonDeserializer<?> deser,
SettableBeanProperty idProp,
ObjectIdResolver resolver) |
protected |
ObjectIdReader(JavaType t,
String propName,
ObjectIdGenerator<?> gen,
JsonDeserializer<?> deser,
SettableBeanProperty idProp)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ObjectIdReader |
construct(JavaType idType,
PropertyName propName,
ObjectIdGenerator<?> generator,
JsonDeserializer<?> deser,
SettableBeanProperty idProp)
Deprecated.
|
static ObjectIdReader |
construct(JavaType idType,
PropertyName propName,
ObjectIdGenerator<?> generator,
JsonDeserializer<?> deser,
SettableBeanProperty idProp,
ObjectIdResolver resolver)
Factory method called by
BeanSerializerBase
with the initial information based on standard settings for the type
for which serializer is being built. |
static ObjectIdReader |
construct(JavaType idType,
String propName,
ObjectIdGenerator<?> generator,
JsonDeserializer<?> deser,
SettableBeanProperty idProp)
Deprecated.
|
JsonDeserializer<Object> |
getDeserializer() |
JavaType |
getIdType() |
Object |
readObjectReference(JsonParser jp,
DeserializationContext ctxt)
Method called to read value that is expected to be an Object Reference
(that is, value of an Object Id used to refer to another object).
|
protected final JavaType _idType
public final PropertyName propertyName
public final ObjectIdGenerator<?> generator
SerializerProvider
using this as
the key.public final ObjectIdResolver resolver
protected final JsonDeserializer<Object> _deserializer
public final SettableBeanProperty idProperty
protected ObjectIdReader(JavaType t, PropertyName propName, ObjectIdGenerator<?> gen, JsonDeserializer<?> deser, SettableBeanProperty idProp, ObjectIdResolver resolver)
@Deprecated protected ObjectIdReader(JavaType t, PropertyName propName, ObjectIdGenerator<?> gen, JsonDeserializer<?> deser, SettableBeanProperty idProp)
@Deprecated protected ObjectIdReader(JavaType t, String propName, ObjectIdGenerator<?> gen, JsonDeserializer<?> deser, SettableBeanProperty idProp)
public static ObjectIdReader construct(JavaType idType, PropertyName propName, ObjectIdGenerator<?> generator, JsonDeserializer<?> deser, SettableBeanProperty idProp, ObjectIdResolver resolver)
BeanSerializerBase
with the initial information based on standard settings for the type
for which serializer is being built.@Deprecated public static ObjectIdReader construct(JavaType idType, PropertyName propName, ObjectIdGenerator<?> generator, JsonDeserializer<?> deser, SettableBeanProperty idProp)
@Deprecated public static ObjectIdReader construct(JavaType idType, String propName, ObjectIdGenerator<?> generator, JsonDeserializer<?> deser, SettableBeanProperty idProp)
public JsonDeserializer<Object> getDeserializer()
public JavaType getIdType()
public Object readObjectReference(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException
IOException
JsonProcessingException
Copyright © 2014 FasterXML. All Rights Reserved.