| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ObjectIdGenerator | forScope(Class<?> scope)
Implements abstract com. |
| public Object | generateId(Object
POJO for which identifier is needed forPojo)Implements abstract com. |
| public ObjectIdGenerator. | key(Object key)
Implements abstract com. |
| 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. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| PropertyBasedObjectIdGenerator | back to summary |
|---|---|
| public PropertyBasedObjectIdGenerator(Class<?> scope) | |
| 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
| |