org.apache.logging.log4j.core.appender.db.nosql.couch
Class CouchDBObject

java.lang.Object
  extended by org.apache.logging.log4j.core.appender.db.nosql.couch.CouchDBObject
All Implemented Interfaces:
NoSQLObject<Map<String,Object>>

public final class CouchDBObject
extends Object
implements NoSQLObject<Map<String,Object>>

The Apache CouchDB implementation of NoSQLObject.


Constructor Summary
CouchDBObject()
           
 
Method Summary
 void set(String field, NoSQLObject<Map<String,Object>> value)
          Sets the value of a property on this object to a nested complex object.
 void set(String field, NoSQLObject<Map<String,Object>>[] values)
          Sets the value of a property on this object to an array of nested complex objects.
 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.
 Map<String,Object> unwrap()
          Obtains the underlying NoSQL library-specific object that this object wraps.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CouchDBObject

public CouchDBObject()
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,
                NoSQLObject<Map<String,Object>> value)
Description copied from interface: NoSQLObject
Sets the value of a property on this object to a nested complex object.

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

set

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

unwrap

public Map<String,Object> unwrap()
Description copied from interface: NoSQLObject
Obtains the underlying NoSQL library-specific object that this object wraps.

Specified by:
unwrap in interface NoSQLObject<Map<String,Object>>
Returns:
the wrapped object.


Copyright © 1999-2013 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.