| Modifier and Type | Field and Description |
|---|---|
| protected final BeanPropertyWriter | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canUseFor(ObjectIdGenerator<?> gen)
Overrides com. We must override this method, to prevent errors when scopes are the same, but underlying class (on which to access property) is different. |
| public ObjectIdGenerator | forScope(Class<?> scope)
Implements abstract com. Factory method to create a blueprint instance for specified scope. |
| public Object | generateId(Object
POJO for which identifier is needed forPojo)Implements abstract com. Method used for generating a new Object Identifier to serialize for given POJO. |
| public ObjectIdGenerator. | key(Object key)
Implements abstract com. Method for constructing key to use for ObjectId-to-POJO maps. |
| public ObjectIdGenerator | newForSerialization(Object
Serialization context object used (of type
context)com.fasterxml.jackson.databind.SerializerProvider);
may be needed by more complex generators to access contextual
information such as configuration.Implements abstract com. Factory method called to create a new instance to use for serialization: needed since generators may have state (next id to produce). |
| _property | back to summary |
|---|---|
| protected final BeanPropertyWriter _property | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| PropertyBasedObjectIdGenerator | back to summary |
|---|---|
| public PropertyBasedObjectIdGenerator(ObjectIdInfo oid, BeanPropertyWriter prop) | |
| PropertyBasedObjectIdGenerator | back to summary |
|---|---|
| protected PropertyBasedObjectIdGenerator(Class<?> scope, BeanPropertyWriter prop) | |
| canUseFor | back to summary |
|---|---|
| public boolean canUseFor(ObjectIdGenerator<?> gen) Overrides com. We must override this method, to prevent errors when scopes are the same, but underlying class (on which to access property) is different.
| |
| forScope | back to summary |
|---|---|
| public ObjectIdGenerator Implements abstract com. Doc from com. Factory method to create a blueprint instance for specified scope. Generators that do not use scope may return 'this'.
| |
| generateId | back to summary |
|---|---|
| public Object generateId(Object forPojo) Implements abstract com. Doc from com. Method used for generating a new Object Identifier to serialize for given POJO. | |
| key | back to summary |
|---|---|
| public ObjectIdGenerator. Implements abstract com. Doc from com. Method for constructing key to use for ObjectId-to-POJO maps.
| |
| newForSerialization | back to summary |
|---|---|
| public ObjectIdGenerator Implements abstract com. Doc from com. Factory method called to create a new instance to use for serialization: needed since generators may have state (next id to produce).
Note that actual type of 'context' is
| |