Class CouchbaseConfiguration

java.lang.Object
org.eclipse.jnosql.databases.couchbase.communication.CouchbaseConfiguration
Direct Known Subclasses:
CouchbaseDocumentConfiguration, CouchbaseKeyValueConfiguration

public abstract class CouchbaseConfiguration extends Object
The configuration base to all configuration implementation on couchbase
  • Field Details

    • host

      protected String host
    • user

      protected String user
    • password

      protected String password
    • scope

      protected String scope
    • index

      protected String index
    • collection

      protected String collection
    • collections

      protected Set<String> collections
  • Constructor Details

    • CouchbaseConfiguration

      public CouchbaseConfiguration()
  • Method Details

    • update

      protected void update(org.eclipse.jnosql.communication.Settings settings)
    • getUser

      protected String getUser(org.eclipse.jnosql.communication.Settings settings)
    • getPassword

      protected String getPassword(org.eclipse.jnosql.communication.Settings settings)
    • getHost

      protected String getHost(org.eclipse.jnosql.communication.Settings settings)
    • setHost

      public void setHost(String host)
      set the host
      Parameters:
      host - the host
    • setUser

      public void setUser(String user)
      set the user
      Parameters:
      user - the user
    • setPassword

      public void setPassword(String password)
      set the password
      Parameters:
      password - the password
    • setScope

      public void setScope(String scope)
      Set the scope
      Parameters:
      scope - the scope
    • setCollection

      public void setCollection(String collection)
      Set the collection
      Parameters:
      collection - the collection
    • addCollection

      public void addCollection(String collection)
      add collection in the settings
      Parameters:
      collection - the collection
      Throws:
      NullPointerException - when collection is null
    • toCouchbaseSettings

      public CouchbaseSettings toCouchbaseSettings()
      Returns an immutable structure with the Couchbase settings
      Returns:
      the CouchbaseSettings
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object