| Modifier and Type | Field and Description |
|---|---|
| public final boolean | alwaysAsId
Marker that indicates what the first reference is to be serialized as full POJO, or as Object Id (other references will always be serialized as Object Id) |
| public final ObjectIdGenerator | generator
Blueprint generator instance: actual instance will be
fetched from |
| public final JavaType | |
| public final SerializableString | propertyName
Name of id property to write, if not null: if null, should only write references, but id property is handled by some other entity. |
| public final JsonSerializer | serializer
Serializer used for serializing id values. |
| Access | Constructor and Description |
|---|---|
| protected | ObjectIdWriter(JavaType t, SerializableString propName, ObjectIdGenerator<?> gen, JsonSerializer<?> ser, boolean alwaysAsId)
|
| Modifier and Type | Method and Description |
|---|---|
| public static ObjectIdWriter | construct(JavaType idType, PropertyName propName, ObjectIdGenerator<?> generator, boolean alwaysAsId)
Factory method called by |
| public ObjectIdWriter | |
| public ObjectIdWriter |
| alwaysAsId | back to summary |
|---|---|
| public final boolean alwaysAsId Marker that indicates what the first reference is to be serialized as full POJO, or as Object Id (other references will always be serialized as Object Id)
| |
| generator | back to summary |
|---|---|
| public final ObjectIdGenerator<?> generator Blueprint generator instance: actual instance will be
fetched from | |
| idType | back to summary |
|---|---|
| public final JavaType idType | |
| propertyName | back to summary |
|---|---|
| public final SerializableString propertyName Name of id property to write, if not null: if null, should only write references, but id property is handled by some other entity. | |
| serializer | back to summary |
|---|---|
| public final JsonSerializer<Object> serializer Serializer used for serializing id values. | |
| ObjectIdWriter | back to summary |
|---|---|
protected ObjectIdWriter(JavaType t, SerializableString propName, ObjectIdGenerator<?> gen, JsonSerializer<?> ser, boolean alwaysAsId)
| |
| construct | back to summary |
|---|---|
| public static ObjectIdWriter construct(JavaType idType, PropertyName propName, ObjectIdGenerator<?> generator, boolean alwaysAsId) Factory method called by
| |
| withAlwaysAsId | back to summary |
|---|---|
public ObjectIdWriter withAlwaysAsId(boolean newState)
| |
| withSerializer | back to summary |
|---|---|
| public ObjectIdWriter withSerializer(JsonSerializer<?> ser) | |