|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.logging.log4j.core.appender.db.nosql.couch.CouchDBConnection
public final class CouchDBConnection
The Apache CouchDB implementation of NoSQLConnection.
| Constructor Summary | |
|---|---|
CouchDBConnection(org.lightcouch.CouchDbClient client)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the underlying connection. |
CouchDBObject[] |
createList(int length)
Creates an array of the specified length typed to match the NoSQLObject implementation appropriate for
this provider. |
CouchDBObject |
createObject()
Instantiates and returns a NoSQLObject instance whose properties can be configured before ultimate
insertion via NoSQLConnection.insertObject(NoSQLObject). |
void |
insertObject(NoSQLObject<Map<String,Object>> object)
Inserts the given object into the underlying NoSQL database. |
boolean |
isClosed()
Indicates whether the underlying connection is closed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CouchDBConnection(org.lightcouch.CouchDbClient client)
| Method Detail |
|---|
public CouchDBObject createObject()
NoSQLConnectionNoSQLObject instance whose properties can be configured before ultimate
insertion via NoSQLConnection.insertObject(NoSQLObject).
createObject in interface NoSQLConnection<Map<String,Object>,CouchDBObject>NoSQLObjectpublic CouchDBObject[] createList(int length)
NoSQLConnectionNoSQLObject implementation appropriate for
this provider.
createList in interface NoSQLConnection<Map<String,Object>,CouchDBObject>length - the length of the array to create.
NoSQLObjectpublic void insertObject(NoSQLObject<Map<String,Object>> object)
NoSQLConnection
insertObject in interface NoSQLConnection<Map<String,Object>,CouchDBObject>object - The object to insert.public void close()
NoSQLConnection
close in interface Closeableclose in interface NoSQLConnection<Map<String,Object>,CouchDBObject>public boolean isClosed()
NoSQLConnectiontrue if a call to NoSQLConnection.insertObject(NoSQLObject) will fail due to the state of this object.
isClosed in interface NoSQLConnection<Map<String,Object>,CouchDBObject>true if this object is considered closed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.