public class PropertyBasedObjectIdGenerator
extends com.fasterxml.jackson.annotation.ObjectIdGenerators.PropertyGenerator
Modifier and Type | Field and Description |
---|---|
protected BeanPropertyWriter |
_property |
Modifier | Constructor and Description |
---|---|
protected |
PropertyBasedObjectIdGenerator(Class<?> scope,
BeanPropertyWriter prop) |
|
PropertyBasedObjectIdGenerator(ObjectIdInfo oid,
BeanPropertyWriter prop) |
Modifier and Type | Method and Description |
---|---|
boolean |
canUseFor(com.fasterxml.jackson.annotation.ObjectIdGenerator<?> gen)
We must override this method, to prevent errors when scopes are the same,
but underlying class (on which to access property) is different.
|
com.fasterxml.jackson.annotation.ObjectIdGenerator<Object> |
forScope(Class<?> scope) |
Object |
generateId(Object forPojo) |
com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey |
key(Object key) |
com.fasterxml.jackson.annotation.ObjectIdGenerator<Object> |
newForSerialization(Object context) |
protected final BeanPropertyWriter _property
public PropertyBasedObjectIdGenerator(ObjectIdInfo oid, BeanPropertyWriter prop)
protected PropertyBasedObjectIdGenerator(Class<?> scope, BeanPropertyWriter prop)
public boolean canUseFor(com.fasterxml.jackson.annotation.ObjectIdGenerator<?> gen)
public com.fasterxml.jackson.annotation.ObjectIdGenerator<Object> forScope(Class<?> scope)
forScope
in class com.fasterxml.jackson.annotation.ObjectIdGenerator<Object>
public com.fasterxml.jackson.annotation.ObjectIdGenerator<Object> newForSerialization(Object context)
newForSerialization
in class com.fasterxml.jackson.annotation.ObjectIdGenerator<Object>
Copyright © 2014-2015 FasterXML. All Rights Reserved.