Class OfferSequence


  • public class OfferSequence
    extends java.lang.Object
    Offer sequence.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String COUNTER_FIELD  
      static java.lang.String ID_FIELD  
    • Constructor Summary

      Constructors 
      Constructor Description
      OfferSequence()
      Constructor, jackson usage only
      OfferSequence​(java.lang.String id)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getCounter()
      Gets the counter
      java.lang.String getId()
      Gets the id
      void setCounter​(long counter)
      Sets the counter
      void setId​(java.lang.String id)
      Sets the id
      org.bson.Document toDocument()
      Ugly workaround to keep object type when convert JSON to Mongo Document TODO: switch to mongo-java-driver >= 3.5.0 and use PojoCodecProvider
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OfferSequence

        public OfferSequence()
        Constructor, jackson usage only
      • OfferSequence

        public OfferSequence​(java.lang.String id)
        Constructor
        Parameters:
        id - id
    • Method Detail

      • getId

        public java.lang.String getId()
        Gets the id
        Returns:
        the id
      • setId

        public void setId​(java.lang.String id)
        Sets the id
        Parameters:
        id -
      • getCounter

        public long getCounter()
        Gets the counter
        Returns:
        counter
      • setCounter

        public void setCounter​(long counter)
        Sets the counter
        Parameters:
        counter - counter
      • toDocument

        public org.bson.Document toDocument()
        Ugly workaround to keep object type when convert JSON to Mongo Document TODO: switch to mongo-java-driver >= 3.5.0 and use PojoCodecProvider
        Returns:
        Document
        See Also:
        PojoCodecProvider