Interface NoSqlObject<W>

  • Type Parameters:
    W - Specifies what type of underlying object (such as a MongoDB BasicDBObject) this NoSqlObject wraps.
    All Known Implementing Classes:
    DefaultNoSqlObject

    public interface NoSqlObject<W>
    Represents a simple POJO object inserted into a NoSQL object.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void set​(String field, Object value)
      Sets the value of a property on this object to a String or primitive.
      void set​(String field, Object[] values)
      Sets the value of a property on this object to an array of Strings or primitives.
      void set​(String field, NoSqlObject<W> value)
      Sets the value of a property on this object to a nested complex object.
      void set​(String field, NoSqlObject<W>[] values)
      Sets the value of a property on this object to an array of nested complex objects.
      W unwrap()
      Obtains the underlying NoSQL library-specific object that this object wraps.
    • Method Detail

      • set

        void set​(String field,
                 Object value)
        Sets the value of a property on this object to a String or primitive.
        Parameters:
        field - The name of the property
        value - The value of the property
      • set

        void set​(String field,
                 NoSqlObject<W> value)
        Sets the value of a property on this object to a nested complex object.
        Parameters:
        field - The name of the property
        value - The value of the property
      • set

        void set​(String field,
                 Object[] values)
        Sets the value of a property on this object to an array of Strings or primitives.
        Parameters:
        field - The name of the property
        values - The values for the property
      • set

        void set​(String field,
                 NoSqlObject<W>[] values)
        Sets the value of a property on this object to an array of nested complex objects.
        Parameters:
        field - The name of the property
        values - The values for the property
      • unwrap

        W unwrap()
        Obtains the underlying NoSQL library-specific object that this object wraps.
        Returns:
        the wrapped object.