NoSqlObject<org.bson.Document>
public final class MongoDbDocumentObject extends Object implements NoSqlObject<org.bson.Document>
NoSqlObject
typed to a BSON Document
.Constructor | Description |
---|---|
MongoDbDocumentObject() |
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<org.bson.Document> value) |
Sets the value of a property on this object to a nested complex object.
|
void |
set(String field,
NoSqlObject<org.bson.Document>[] values) |
Sets the value of a property on this object to an array of nested complex objects.
|
org.bson.Document |
unwrap() |
Obtains the underlying NoSQL library-specific object that this object wraps.
|
public void set(String field, NoSqlObject<org.bson.Document> value)
NoSqlObject
set
in interface NoSqlObject<org.bson.Document>
field
- The name of the propertyvalue
- The value of the propertypublic void set(String field, NoSqlObject<org.bson.Document>[] values)
NoSqlObject
set
in interface NoSqlObject<org.bson.Document>
field
- The name of the propertyvalues
- The values for the propertypublic void set(String field, Object value)
NoSqlObject
set
in interface NoSqlObject<org.bson.Document>
field
- The name of the propertyvalue
- The value of the propertypublic void set(String field, Object[] values)
NoSqlObject
set
in interface NoSqlObject<org.bson.Document>
field
- The name of the propertyvalues
- The values for the propertypublic org.bson.Document unwrap()
NoSqlObject
unwrap
in interface NoSqlObject<org.bson.Document>
Copyright © 1999-2018. 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.