Package | Description |
---|---|
org.ektorp | |
org.ektorp.impl | |
org.ektorp.support |
Modifier and Type | Method and Description |
---|---|
Options |
Options.includeConflicts()
The loaded doc will include the special field '_conflicts' that contains all the conflicting revisions of the document.
|
Options |
Options.includeRevisions()
The loaded doc will include the special field '_revisions' that describes all document revisions that exists in the database.
|
Options |
Options.param(String name,
String value)
Adds a parameter to the GET request sent to the database.
|
Options |
Options.revision(String rev)
Retrieve a specific revision of the document.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
CouchDbConnector.find(Class<T> c,
String id,
Options options)
Same as get(Class
|
<T> T |
CouchDbConnector.get(Class<T> c,
String id,
Options options) |
InputStream |
CouchDbConnector.getAsStream(String id,
Options options)
Please note that the stream has to be closed after usage, otherwise http connection leaks will occur and the
system will eventually hang due to connection starvation.
|
void |
CouchDbConnector.update(String id,
InputStream document,
long length,
Options options)
Sends a document to the Couch server as a JSON stream
|
void |
CouchDbConnector.updateMultipart(String id,
InputStream stream,
String boundary,
long length,
Options options)
Sends a document to the Couch server as a MIME multipart/related message.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
StdCouchDbConnector.find(Class<T> c,
String id,
Options options) |
<T> T |
StdCouchDbConnector.get(Class<T> c,
String id,
Options options) |
InputStream |
StdCouchDbConnector.getAsStream(String id,
Options options) |
void |
StdCouchDbConnector.update(String id,
InputStream document,
long length,
Options options) |
void |
StdCouchDbConnector.updateMultipart(String id,
InputStream stream,
String boundary,
long length,
Options options) |
Modifier and Type | Method and Description |
---|---|
T |
CouchDbRepositorySupport.get(String id,
Options options) |
Copyright © 2013. All Rights Reserved.