public class DefaultNoSqlObject extends Object implements NoSqlObject<Map<String,Object>>
NoSqlObject
. Most NoSQL Java APIs tend
to re-use the Map interface for storage and retrieval of the underlying JSON documents. Therefore, this
implementation is provided for convenience.Constructor and Description |
---|
DefaultNoSqlObject() |
Modifier and Type | Method and Description |
---|---|
void |
set(String field,
NoSqlObject<Map<String,Object>> value)
Sets the value of a property on this object to a nested complex object.
|
void |
set(String field,
NoSqlObject<Map<String,Object>>[] values)
Sets the value of a property on this object to an array of nested complex objects.
|
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.
|
Map<String,Object> |
unwrap()
Obtains the underlying NoSQL library-specific object that this object wraps.
|
public void set(String field, Object value)
NoSqlObject
set
in interface NoSqlObject<Map<String,Object>>
field
- The name of the propertyvalue
- The value of the propertypublic void set(String field, NoSqlObject<Map<String,Object>> value)
NoSqlObject
set
in interface NoSqlObject<Map<String,Object>>
field
- The name of the propertyvalue
- The value of the propertypublic void set(String field, Object[] values)
NoSqlObject
set
in interface NoSqlObject<Map<String,Object>>
field
- The name of the propertyvalues
- The values for the propertypublic void set(String field, NoSqlObject<Map<String,Object>>[] values)
NoSqlObject
set
in interface NoSqlObject<Map<String,Object>>
field
- The name of the propertyvalues
- The values for the propertypublic Map<String,Object> unwrap()
NoSqlObject
unwrap
in interface NoSqlObject<Map<String,Object>>
Copyright © 1999-2017 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.