Class PropertyBasedObjectIdGenerator

java.lang.Object
com.fasterxml.jackson.annotation.ObjectIdGenerator<Object>
com.fasterxml.jackson.annotation.ObjectIdGenerators.PropertyGenerator
com.fasterxml.jackson.databind.deser.impl.PropertyBasedObjectIdGenerator
All Implemented Interfaces:
Serializable

public class PropertyBasedObjectIdGenerator extends com.fasterxml.jackson.annotation.ObjectIdGenerators.PropertyGenerator
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fasterxml.jackson.annotation.ObjectIdGenerator

    com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Class<?>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canUseFor(com.fasterxml.jackson.annotation.ObjectIdGenerator<?> arg0)
     
    com.fasterxml.jackson.annotation.ObjectIdGenerator<Object>
    forScope(Class<?> scope)
     
    generateId(Object forPojo)
     
    final Class<?>
     
    com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey
    key(Object key)
     
    com.fasterxml.jackson.annotation.ObjectIdGenerator<Object>
     

    Methods inherited from class com.fasterxml.jackson.annotation.ObjectIdGenerator

    isValidReferencePropertyName, maySerializeAsObject

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • _scope

      protected final Class<?> _scope
  • Constructor Details

    • PropertyBasedObjectIdGenerator

      public PropertyBasedObjectIdGenerator(Class<?> scope)
  • Method Details

    • generateId

      public Object generateId(Object forPojo)
    • forScope

      public com.fasterxml.jackson.annotation.ObjectIdGenerator<Object> forScope(Class<?> scope)
      Specified by:
      forScope in class com.fasterxml.jackson.annotation.ObjectIdGenerator<Object>
    • newForSerialization

      public com.fasterxml.jackson.annotation.ObjectIdGenerator<Object> newForSerialization(Object context)
      Specified by:
      newForSerialization in class com.fasterxml.jackson.annotation.ObjectIdGenerator<Object>
    • key

      public com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey key(Object key)
      Specified by:
      key in class com.fasterxml.jackson.annotation.ObjectIdGenerator<Object>
    • getScope

      public final Class<?> getScope()
      Specified by:
      getScope in class com.fasterxml.jackson.annotation.ObjectIdGenerator<T>
    • canUseFor

      public boolean canUseFor(com.fasterxml.jackson.annotation.ObjectIdGenerator<?> arg0)
      Specified by:
      canUseFor in class com.fasterxml.jackson.annotation.ObjectIdGenerator<T>