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
,MongoDbObject
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(java.lang.String field, java.lang.Object value)
Sets the value of a property on this object to a String or primitive.void
set(java.lang.String field, java.lang.Object[] values)
Sets the value of a property on this object to an array of Strings or primitives.void
set(java.lang.String field, NoSqlObject<W> value)
Sets the value of a property on this object to a nested complex object.void
set(java.lang.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(java.lang.String field, java.lang.Object value)
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
void set(java.lang.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 propertyvalue
- The value of the property
-
set
void set(java.lang.String field, java.lang.Object[] values)
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
void set(java.lang.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 propertyvalues
- The values for the property
-
unwrap
W unwrap()
Obtains the underlying NoSQL library-specific object that this object wraps.- Returns:
- the wrapped object.
-
-