Class CouchbaseConfiguration
java.lang.Object
org.eclipse.jnosql.databases.couchbase.communication.CouchbaseConfiguration
- Direct Known Subclasses:
CouchbaseDocumentConfiguration,CouchbaseKeyValueConfiguration
The configuration base to all configuration implementation on couchbase
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCollection(String collection) add collection in the settingsbooleanprotected StringgetHost(org.eclipse.jnosql.communication.Settings settings) protected StringgetPassword(org.eclipse.jnosql.communication.Settings settings) protected StringgetUser(org.eclipse.jnosql.communication.Settings settings) inthashCode()voidsetCollection(String collection) Set the collectionvoidset the hostvoidsetPassword(String password) set the passwordvoidSet the scopevoidset the userReturns an immutable structure with the Couchbase settingstoString()protected voidupdate(org.eclipse.jnosql.communication.Settings settings)
-
Field Details
-
host
-
user
-
password
-
scope
-
index
-
collection
-
collections
-
-
Constructor Details
-
CouchbaseConfiguration
public CouchbaseConfiguration()
-
-
Method Details
-
update
protected void update(org.eclipse.jnosql.communication.Settings settings) -
getUser
-
getPassword
-
getHost
-
setHost
set the host- Parameters:
host- the host
-
setUser
set the user- Parameters:
user- the user
-
setPassword
set the password- Parameters:
password- the password
-
setScope
Set the scope- Parameters:
scope- the scope
-
setCollection
Set the collection- Parameters:
collection- the collection
-
addCollection
add collection in the settings- Parameters:
collection- the collection- Throws:
NullPointerException- when collection is null
-
toCouchbaseSettings
Returns an immutable structure with the Couchbase settings- Returns:
- the
CouchbaseSettings
-
equals
-
hashCode
public int hashCode() -
toString
-