Class DefaultNoSqlObject
java.lang.Object
org.apache.logging.log4j.core.appender.nosql.DefaultNoSqlObject
- All Implemented Interfaces:
NoSqlObject<Map<String,
Object>>
Default implementation of
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets the value of a property on this object to a String or primitive.void
Sets the value of a property on this object to an array of Strings or primitives.void
Sets the value of a property on this object to a nested complex object.void
Sets the value of a property on this object to an array of nested complex objects.unwrap()
Obtains the underlying NoSQL library-specific object that this object wraps.
-
Constructor Details
-
DefaultNoSqlObject
public DefaultNoSqlObject()Constructs a new instance.
-
-
Method Details
-
set
Description copied from interface:NoSqlObject
Sets the value of a property on this object to a String or primitive.- Specified by:
set
in interfaceNoSqlObject<Map<String,
Object>> - Parameters:
field
- The name of the propertyvalue
- The value of the property
-
set
Description copied from interface:NoSqlObject
Sets the value of a property on this object to a nested complex object.- Specified by:
set
in interfaceNoSqlObject<Map<String,
Object>> - Parameters:
field
- The name of the propertyvalue
- The value of the property
-
set
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<Map<String,
Object>> - Parameters:
field
- The name of the propertyvalues
- The values for the property
-
set
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<Map<String,
Object>> - Parameters:
field
- The name of the propertyvalues
- The values for the property
-
unwrap
Description copied from interface:NoSqlObject
Obtains the underlying NoSQL library-specific object that this object wraps.- Specified by:
unwrap
in interfaceNoSqlObject<Map<String,
Object>> - Returns:
- the wrapped object.
-