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 voidset(java.lang.String field, java.lang.Object value)Sets the value of a property on this object to a String or primitive.voidset(java.lang.String field, java.lang.Object[] values)Sets the value of a property on this object to an array of Strings or primitives.voidset(java.lang.String field, NoSqlObject<W> value)Sets the value of a property on this object to a nested complex object.voidset(java.lang.String field, NoSqlObject<W>[] values)Sets the value of a property on this object to an array of nested complex objects.Wunwrap()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.
-
-