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 gen,
SerializerProvider provider,
ObjectIdWriter w)
Method called to output Object Id as specified.
|
boolean |
writeAsId(JsonGenerator gen,
SerializerProvider provider,
ObjectIdWriter w) |
public final ObjectIdGenerator<?> generator
public Object id
protected boolean idWritten
public WritableObjectId(ObjectIdGenerator<?> generator)
public boolean writeAsId(JsonGenerator gen, SerializerProvider provider, ObjectIdWriter w) throws IOException
IOException
public void writeAsField(JsonGenerator gen, SerializerProvider provider, ObjectIdWriter w) throws IOException
IOException
Copyright © 2008–2016 FasterXML. All rights reserved.