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
Modifier and TypeMethodDescriptionvoid
Sets the value of a property on this object to a String or primitive.void
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.unwrap()
Obtains the underlying NoSQL library-specific object that this object wraps.
-
Method Details
-
set
Sets the value of a property on this object to a String or primitive.- Parameters:
field
- The name of the propertyvalue
- The value of the property
-
set
Sets the value of a property on this object to a nested complex object.- Parameters:
field
- The name of the propertyvalue
- The value of the property
-
set
Sets the value of a property on this object to an array of Strings or primitives.- Parameters:
field
- The name of the propertyvalues
- The values for the property
-
set
Sets the value of a property on this object to an array of nested complex objects.- Parameters:
field
- The name of the propertyvalues
- The values for the property
-
unwrap
W unwrap()Obtains the underlying NoSQL library-specific object that this object wraps.- Returns:
- the wrapped object.
-