Class CouchDbClientAndroid
java.lang.Object
org.lightcouch.CouchDbClientBase
org.lightcouch.CouchDbClientAndroid
Presents a client to CouchDB database server; targeted to run on Android platform.
- Since:
- 0.1.0
- Author:
- Ahmed Yehia
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new client instance.CouchDbClientAndroid(String configFileName) Constructs a new client instance.CouchDbClientAndroid(String dbName, boolean createDbIfNotExist, String protocol, String host, int port, String username, String password) Constructs a new client instance.CouchDbClientAndroid(CouchDbProperties properties) Constructs a new client instance. -
Method Summary
Methods inherited from class CouchDbClientBase
batch, bulk, changes, contains, context, design, executeRequest, find, find, find, find, find, findAny, findDocs, getBaseUri, getDBUri, getGson, invokeUpdateHandler, post, remove, remove, replication, replicator, save, saveAttachment, saveAttachment, setGsonBuilder, syncDesignDocsWithDb, update, view
-
Constructor Details
-
CouchDbClientAndroid
public CouchDbClientAndroid()Constructs a new client instance. -
CouchDbClientAndroid
Constructs a new client instance.- Parameters:
configFileName- The configuration file
-
CouchDbClientAndroid
public CouchDbClientAndroid(String dbName, boolean createDbIfNotExist, String protocol, String host, int port, String username, String password) Constructs a new client instance.- Parameters:
dbName- The database name.createDbIfNotExist- To create a new database if it does not already exist.protocol- The protocol to use (i.e http or https)host- The database host addressport- The database listening portusername- The Username credentialpassword- The Password credential
-
CouchDbClientAndroid
Constructs a new client instance.- Parameters:
properties- An object containing configuration properties.
-
-
Method Details
-
shutdown
public void shutdown()
-