public final class WritableObjectId extends Object
Modifier and Type | Field and Description |
---|---|
ObjectIdGenerator<?> |
generator |
Object |
id |
protected boolean |
idWritten |
Constructor and Description |
---|
WritableObjectId(ObjectIdGenerator<?> generator) |
Modifier and Type | Method and Description |
---|---|
Object |
generateId(Object forPojo) |
void |
writeAsField(JsonGenerator jgen,
SerializerProvider provider,
ObjectIdWriter w)
Method called to output Object Id as specified.
|
boolean |
writeAsId(JsonGenerator jgen,
SerializerProvider provider,
ObjectIdWriter w) |
public final ObjectIdGenerator<?> generator
public Object id
protected boolean idWritten
public WritableObjectId(ObjectIdGenerator<?> generator)
public boolean writeAsId(JsonGenerator jgen, SerializerProvider provider, ObjectIdWriter w) throws IOException, JsonGenerationException
IOException
JsonGenerationException
public void writeAsField(JsonGenerator jgen, SerializerProvider provider, ObjectIdWriter w) throws IOException, JsonGenerationException
IOException
JsonGenerationException
Copyright © 2012-2014 FasterXML. All Rights Reserved.