Class OdooIdSerializer

java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<OdooId>
com.fasterxml.jackson.databind.ser.std.StdSerializer<OdooId>
ch.helvethink.odoo4java.serialization.OdooIdSerializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, com.fasterxml.jackson.databind.jsonschema.SchemaAware, Serializable

public class OdooIdSerializer extends com.fasterxml.jackson.databind.ser.std.StdSerializer<OdooId>
Custom deserializer for ids (when null a Boolean is returned by Odoo)
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer

    com.fasterxml.jackson.databind.JsonSerializer.None
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    serialize(OdooId value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider)

    Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer

    acceptJsonFormatVisitor, getSchema, getSchema, handledType, wrapAndThrow, wrapAndThrow

    Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer

    getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OdooIdSerializer

      public OdooIdSerializer()
      Default Constructor
  • Method Details

    • serialize

      public void serialize(OdooId value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException
      Specified by:
      serialize in class com.fasterxml.jackson.databind.ser.std.StdSerializer<OdooId>
      Throws:
      IOException