Class MongoDbDocumentObject
- java.lang.Object
-
- org.apache.logging.log4j.mongodb3.MongoDbDocumentObject
-
- All Implemented Interfaces:
NoSqlObject<org.bson.Document>
public final class MongoDbDocumentObject extends java.lang.Object implements NoSqlObject<org.bson.Document>
The MongoDB implementation ofNoSqlObjecttyped to a BSONDocument.
-
-
Constructor Summary
Constructors Constructor Description MongoDbDocumentObject()
-
Method Summary
All Methods Instance Methods Concrete 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<org.bson.Document> value)Sets the value of a property on this object to a nested complex object.voidset(java.lang.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.Documentunwrap()Obtains the underlying NoSQL library-specific object that this object wraps.
-
-
-
Method Detail
-
set
public void set(java.lang.String field, NoSqlObject<org.bson.Document> value)Description copied from interface:NoSqlObjectSets the value of a property on this object to a nested complex object.- Specified by:
setin interfaceNoSqlObject<org.bson.Document>- Parameters:
field- The name of the propertyvalue- The value of the property
-
set
public void set(java.lang.String field, NoSqlObject<org.bson.Document>[] values)Description copied from interface:NoSqlObjectSets the value of a property on this object to an array of nested complex objects.- Specified by:
setin interfaceNoSqlObject<org.bson.Document>- Parameters:
field- The name of the propertyvalues- The values for the property
-
set
public void set(java.lang.String field, java.lang.Object value)Description copied from interface:NoSqlObjectSets the value of a property on this object to a String or primitive.- Specified by:
setin interfaceNoSqlObject<org.bson.Document>- Parameters:
field- The name of the propertyvalue- The value of the property
-
set
public void set(java.lang.String field, java.lang.Object[] values)Description copied from interface:NoSqlObjectSets the value of a property on this object to an array of Strings or primitives.- Specified by:
setin interfaceNoSqlObject<org.bson.Document>- Parameters:
field- The name of the propertyvalues- The values for the property
-
unwrap
public org.bson.Document unwrap()
Description copied from interface:NoSqlObjectObtains the underlying NoSQL library-specific object that this object wraps.- Specified by:
unwrapin interfaceNoSqlObject<org.bson.Document>- Returns:
- the wrapped object.
-
-