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 ofNoSqlObject
typed to a BSONDocument
.
-
-
Constructor Summary
Constructors Constructor Description MongoDbDocumentObject()
-
Method Summary
All Methods Instance Methods Concrete 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<org.bson.Document> value)
Sets the value of a property on this object to a nested complex object.void
set(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.Document
unwrap()
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:NoSqlObject
Sets the value of a property on this object to a nested complex object.- Specified by:
set
in 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:NoSqlObject
Sets the value of a property on this object to an array of nested complex objects.- Specified by:
set
in 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:NoSqlObject
Sets the value of a property on this object to a String or primitive.- Specified by:
set
in 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:NoSqlObject
Sets the value of a property on this object to an array of Strings or primitives.- Specified by:
set
in 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:NoSqlObject
Obtains the underlying NoSQL library-specific object that this object wraps.- Specified by:
unwrap
in interfaceNoSqlObject<org.bson.Document>
- Returns:
- the wrapped object.
-
-