Uses of Class
com.fasterxml.jackson.annotation.ObjectIdGenerator
-
Packages that use ObjectIdGenerator Package Description com.fasterxml.jackson.annotation Public core annotations, most of which are used to configure how Data Mapping/Binding works.com.fasterxml.jackson.databind 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.com.fasterxml.jackson.databind.cfg 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).com.fasterxml.jackson.databind.deser Contains implementation classes of deserialization part of data binding.com.fasterxml.jackson.databind.deser.impl Contains those implementation classes of deserialization part of data binding that are not considered part of public or semi-public interfaces.com.fasterxml.jackson.databind.introspect Functionality needed for Bean introspection, required for detecting accessors and mutators for Beans, as well as locating and handling method annotations.com.fasterxml.jackson.databind.ser Contains implementation classes of serialization part of data binding.com.fasterxml.jackson.databind.ser.impl Contains implementation classes of serialization part of data binding. -
-
Uses of ObjectIdGenerator in com.fasterxml.jackson.annotation
Subclasses of ObjectIdGenerator in com.fasterxml.jackson.annotation Modifier and Type Class Description static classObjectIdGenerators.IntSequenceGeneratorSimple sequence-number based generator, which uses basic Javaints (starting with value 1) as Object Identifiers.static classObjectIdGenerators.NoneAbstract 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 classObjectIdGenerators.PropertyGeneratorAbstract place-holder class which is used to denote case where Object Identifier to use comes from a POJO property (getter method or field).static classObjectIdGenerators.StringIdGeneratorImplementation that will accept arbitrary (but unique) String Ids on deserialization, and (by default) use random UUID generation similar toObjectIdGenerators.UUIDGeneratorfor generation ids.static classObjectIdGenerators.UUIDGeneratorImplementation that just usesUUIDs as reliably unique identifiers: downside is that resulting String is 36 characters long.Methods in com.fasterxml.jackson.annotation that return ObjectIdGenerator Modifier and Type Method Description abstract ObjectIdGenerator<T>ObjectIdGenerator. forScope(Class<?> scope)Factory method to create a blueprint instance for specified scope.ObjectIdGenerator<Integer>ObjectIdGenerators.IntSequenceGenerator. forScope(Class<?> scope)ObjectIdGenerator<String>ObjectIdGenerators.StringIdGenerator. forScope(Class<?> scope)ObjectIdGenerator<UUID>ObjectIdGenerators.UUIDGenerator. forScope(Class<?> 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).ObjectIdGenerator<Integer>ObjectIdGenerators.IntSequenceGenerator. newForSerialization(Object context)ObjectIdGenerator<String>ObjectIdGenerators.StringIdGenerator. newForSerialization(Object context)ObjectIdGenerator<UUID>ObjectIdGenerators.UUIDGenerator. newForSerialization(Object context)Can just return base instance since this is essentially scopelessMethods in com.fasterxml.jackson.annotation that return types with arguments of type ObjectIdGenerator Modifier and Type Method Description Class<? extends ObjectIdGenerator<?>>generator()Generator to use for producing Object Identifier for objects: either one of pre-defined generators fromObjectIdGenerator, or a custom generator.Methods in com.fasterxml.jackson.annotation with parameters of type ObjectIdGenerator Modifier and Type Method Description abstract 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 ObjectIdGenerator Modifier and Type Method Description ObjectIdGenerator<?>DatabindContext. objectIdGeneratorInstance(Annotated annotated, ObjectIdInfo objectIdInfo)Methods in com.fasterxml.jackson.databind with parameters of type ObjectIdGenerator Modifier and Type Method Description abstract 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 ObjectIdGenerator Modifier and Type Method Description ObjectIdGenerator<?>HandlerInstantiator. 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 ObjectIdGenerator Modifier and Type Method Description ReadableObjectIdDefaultDeserializationContext. 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.impl Modifier and Type Class Description classPropertyBasedObjectIdGeneratorFields in com.fasterxml.jackson.databind.deser.impl declared as ObjectIdGenerator Modifier and Type Field Description 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 ObjectIdGenerator Modifier and Type Method Description ObjectIdGenerator<Object>PropertyBasedObjectIdGenerator. forScope(Class<?> scope)ObjectIdGenerator<Object>PropertyBasedObjectIdGenerator. newForSerialization(Object context)Methods in com.fasterxml.jackson.databind.deser.impl with parameters of type ObjectIdGenerator Modifier and Type Method Description static 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 ObjectIdGenerator Constructor Description ObjectIdReader(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 ObjectIdGenerator Modifier and Type Field Description protected Class<? extends ObjectIdGenerator<?>>ObjectIdInfo. _generatorMethods in com.fasterxml.jackson.databind.introspect that return types with arguments of type ObjectIdGenerator Modifier and Type Method Description Class<? 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 ObjectIdGenerator Modifier and Type Field Description protected ArrayList<ObjectIdGenerator<?>>DefaultSerializerProvider. _objectIdGeneratorsMethods in com.fasterxml.jackson.databind.ser with parameters of type ObjectIdGenerator Modifier and Type Method Description WritableObjectIdDefaultSerializerProvider. findObjectId(Object forPojo, ObjectIdGenerator<?> generatorType) -
Uses of ObjectIdGenerator in com.fasterxml.jackson.databind.ser.impl
Subclasses of ObjectIdGenerator in com.fasterxml.jackson.databind.ser.impl Modifier and Type Class Description classPropertyBasedObjectIdGeneratorFields in com.fasterxml.jackson.databind.ser.impl declared as ObjectIdGenerator Modifier and Type Field Description ObjectIdGenerator<?>ObjectIdWriter. generatorBlueprint generator instance: actual instance will be fetched fromSerializerProviderusing this as the key.ObjectIdGenerator<?>WritableObjectId. generatorMethods in com.fasterxml.jackson.databind.ser.impl that return ObjectIdGenerator Modifier and Type Method Description ObjectIdGenerator<Object>PropertyBasedObjectIdGenerator. forScope(Class<?> scope)ObjectIdGenerator<Object>PropertyBasedObjectIdGenerator. newForSerialization(Object context)Methods in com.fasterxml.jackson.databind.ser.impl with parameters of type ObjectIdGenerator Modifier and Type Method Description booleanPropertyBasedObjectIdGenerator. 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 ObjectIdGenerator Constructor Description ObjectIdWriter(JavaType t, SerializableString propName, ObjectIdGenerator<?> gen, JsonSerializer<?> ser, boolean alwaysAsId)WritableObjectId(ObjectIdGenerator<?> generator)
-