org.apache.logging.log4j.nosql.appender

Class DefaultNoSqlObject

  • All Implemented Interfaces:
    NoSqlObject<Map<String,Object>>


    public class DefaultNoSqlObject
    extends Object
    implements 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 Detail

      • DefaultNoSqlObject

        public DefaultNoSqlObject()
    • Method Detail

      • set

        public void set(String field,
               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 interface NoSqlObject<Map<String,Object>>
        Parameters:
        field - The name of the property
        value - The value of the property
      • set

        public void set(String field,
               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 interface NoSqlObject<Map<String,Object>>
        Parameters:
        field - The name of the property
        values - The values for the property

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.