Uses of Class
com.fasterxml.jackson.annotation.ObjectIdGenerator
Packages that use ObjectIdGenerator
Package
Description
Public core annotations, most of which are used to configure how
Data Mapping/Binding works.
Basic data binding (mapping) functionality that
allows for reading JSON content into Java Objects (POJOs)
and JSON Trees (
JsonNode), as well as
writing Java Objects and trees as JSON.Package that contains most of configuration-related classes;
exception being couple of most-commonly used configuration
things (like Feature enumerations) that are at the
main level (
com.fasterxml.jackson.databind).Contains implementation classes of deserialization part of
data binding.
Contains those implementation classes of deserialization part of
data binding that are not considered part of public or semi-public
interfaces.
Functionality needed for Bean introspection, required for detecting
accessors and mutators for Beans, as well as locating and handling
method annotations.
Contains implementation classes of serialization part of
data binding.
Contains implementation classes of serialization part of
data binding.
-
Uses of ObjectIdGenerator in com.fasterxml.jackson.annotation
Subclasses of ObjectIdGenerator in com.fasterxml.jackson.annotationModifier and TypeClassDescriptionstatic final classSimple sequence-number based generator, which uses basic Javaints (starting with value 1) as Object Identifiers.static classAbstract marker class used to allow explicitly specifying that no generator is used; which also implies that no Object Id is to be included or used.static classAbstract place-holder class which is used to denote case where Object Identifier to use comes from a POJO property (getter method or field).static final classImplementation that will accept arbitrary (but unique) String Ids on deserialization, and (by default) use random UUID generation similar toObjectIdGenerators.UUIDGeneratorfor generation ids.static final classImplementation that just usesUUIDs as reliably unique identifiers: downside is that resulting String is 36 characters long.Methods in com.fasterxml.jackson.annotation that return ObjectIdGeneratorModifier and TypeMethodDescriptionabstract ObjectIdGenerator<T>Factory method to create a blueprint instance for specified scope.Can just return base instance since this is essentially scopelessabstract ObjectIdGenerator<T>ObjectIdGenerator.newForSerialization(Object context) Factory method called to create a new instance to use for serialization: needed since generators may have state (next id to produce).ObjectIdGenerators.IntSequenceGenerator.newForSerialization(Object context) ObjectIdGenerators.StringIdGenerator.newForSerialization(Object context) ObjectIdGenerators.UUIDGenerator.newForSerialization(Object context) Can just return base instance since this is essentially scopelessMethods in com.fasterxml.jackson.annotation with parameters of type ObjectIdGeneratorModifier and TypeMethodDescriptionabstract booleanObjectIdGenerator.canUseFor(ObjectIdGenerator<?> gen) Method called to check whether this generator instance can be used for Object Ids of specific generator type and scope; determination is based by passing a configured "blueprint" (prototype) instance; from which the actual instances are created (usingnewForSerialization(java.lang.Object)).booleanObjectIdGenerators.StringIdGenerator.canUseFor(ObjectIdGenerator<?> gen) booleanObjectIdGenerators.UUIDGenerator.canUseFor(ObjectIdGenerator<?> gen) Since UUIDs are always unique, let's fully ignore scope definition -
Uses of ObjectIdGenerator in com.fasterxml.jackson.databind
Methods in com.fasterxml.jackson.databind that return ObjectIdGeneratorModifier and TypeMethodDescriptionDatabindContext.objectIdGeneratorInstance(Annotated annotated, ObjectIdInfo objectIdInfo) Methods in com.fasterxml.jackson.databind with parameters of type ObjectIdGeneratorModifier and TypeMethodDescriptionabstract ReadableObjectIdDeserializationContext.findObjectId(Object id, ObjectIdGenerator<?> generator, ObjectIdResolver resolver) Method called to find and return entry corresponding to given Object Id: will add an entry if necessary, and never returns nullabstract WritableObjectIdSerializerProvider.findObjectId(Object forPojo, ObjectIdGenerator<?> generatorType) Method called to find the Object Id for given POJO, if one has been generated. -
Uses of ObjectIdGenerator in com.fasterxml.jackson.databind.cfg
Methods in com.fasterxml.jackson.databind.cfg that return ObjectIdGeneratorModifier and TypeMethodDescriptionHandlerInstantiator.objectIdGeneratorInstance(MapperConfig<?> config, Annotated annotated, Class<?> implClass) Method called to construct a ObjectIdHandler instance of specified type. -
Uses of ObjectIdGenerator in com.fasterxml.jackson.databind.deser
Methods in com.fasterxml.jackson.databind.deser with parameters of type ObjectIdGeneratorModifier and TypeMethodDescriptionDefaultDeserializationContext.findObjectId(Object id, ObjectIdGenerator<?> gen, ObjectIdResolver resolverType) -
Uses of ObjectIdGenerator in com.fasterxml.jackson.databind.deser.impl
Subclasses of ObjectIdGenerator in com.fasterxml.jackson.databind.deser.implFields in com.fasterxml.jackson.databind.deser.impl declared as ObjectIdGeneratorModifier and TypeFieldDescriptionfinal ObjectIdGenerator<?>ObjectIdReader.generatorBlueprint generator instance: actual instance will be fetched fromSerializerProviderusing this as the key.Methods in com.fasterxml.jackson.databind.deser.impl that return ObjectIdGeneratorModifier and TypeMethodDescriptionPropertyBasedObjectIdGenerator.newForSerialization(Object context) Methods in com.fasterxml.jackson.databind.deser.impl with parameters of type ObjectIdGeneratorModifier and TypeMethodDescriptionstatic ObjectIdReaderObjectIdReader.construct(JavaType idType, PropertyName propName, ObjectIdGenerator<?> generator, JsonDeserializer<?> deser, SettableBeanProperty idProp, ObjectIdResolver resolver) Factory method called byBeanSerializerBasewith the initial information based on standard settings for the type for which serializer is being built.Constructors in com.fasterxml.jackson.databind.deser.impl with parameters of type ObjectIdGeneratorModifierConstructorDescriptionprotectedObjectIdReader(JavaType t, PropertyName propName, ObjectIdGenerator<?> gen, JsonDeserializer<?> deser, SettableBeanProperty idProp, ObjectIdResolver resolver) -
Uses of ObjectIdGenerator in com.fasterxml.jackson.databind.introspect
Fields in com.fasterxml.jackson.databind.introspect with type parameters of type ObjectIdGeneratorModifier and TypeFieldDescriptionprotected final Class<? extends ObjectIdGenerator<?>>ObjectIdInfo._generatorMethods in com.fasterxml.jackson.databind.introspect that return types with arguments of type ObjectIdGeneratorModifier and TypeMethodDescriptionClass<? extends ObjectIdGenerator<?>>ObjectIdInfo.getGeneratorType() -
Uses of ObjectIdGenerator in com.fasterxml.jackson.databind.ser
Fields in com.fasterxml.jackson.databind.ser with type parameters of type ObjectIdGeneratorModifier and TypeFieldDescriptionprotected ArrayList<ObjectIdGenerator<?>>DefaultSerializerProvider._objectIdGeneratorsMethods in com.fasterxml.jackson.databind.ser with parameters of type ObjectIdGeneratorModifier and TypeMethodDescriptionDefaultSerializerProvider.findObjectId(Object forPojo, ObjectIdGenerator<?> generatorType) -
Uses of ObjectIdGenerator in com.fasterxml.jackson.databind.ser.impl
Subclasses of ObjectIdGenerator in com.fasterxml.jackson.databind.ser.implFields in com.fasterxml.jackson.databind.ser.impl declared as ObjectIdGeneratorModifier and TypeFieldDescriptionfinal ObjectIdGenerator<?>ObjectIdWriter.generatorBlueprint generator instance: actual instance will be fetched fromSerializerProviderusing this as the key.final ObjectIdGenerator<?>WritableObjectId.generatorMethods in com.fasterxml.jackson.databind.ser.impl that return ObjectIdGeneratorModifier and TypeMethodDescriptionPropertyBasedObjectIdGenerator.newForSerialization(Object context) Methods in com.fasterxml.jackson.databind.ser.impl with parameters of type ObjectIdGeneratorModifier and TypeMethodDescriptionbooleanPropertyBasedObjectIdGenerator.canUseFor(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.static ObjectIdWriterObjectIdWriter.construct(JavaType idType, PropertyName propName, ObjectIdGenerator<?> generator, boolean alwaysAsId) Factory method called byBeanSerializerBasewith the initial information based on standard settings for the type for which serializer is being built.Constructors in com.fasterxml.jackson.databind.ser.impl with parameters of type ObjectIdGeneratorModifierConstructorDescriptionprotectedObjectIdWriter(JavaType t, SerializableString propName, ObjectIdGenerator<?> gen, JsonSerializer<?> ser, boolean alwaysAsId) WritableObjectId(ObjectIdGenerator<?> generator)