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) |
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-2013 FasterXML. All Rights Reserved.