Enum Class CouchbaseConfigurations

java.lang.Object
java.lang.Enum<CouchbaseConfigurations>
org.eclipse.jnosql.databases.couchbase.communication.CouchbaseConfigurations
All Implemented Interfaces:
Serializable, Comparable<CouchbaseConfigurations>, Constable, Supplier<String>

public enum CouchbaseConfigurations extends Enum<CouchbaseConfigurations> implements Supplier<String>
An enumeration to show the available options to connect to the Couchbase database. It implements Supplier, where its it returns the property name that might be overwritten by the system environment using Eclipse Microprofile or Jakarta Config API.
See Also:
  • Settings
  • Enum Constant Details

    • HOST

      public static final CouchbaseConfigurations HOST
      The host at the database.
    • USER

      public static final CouchbaseConfigurations USER
      The user's credential.
    • PASSWORD

      public static final CouchbaseConfigurations PASSWORD
      The password's credential
    • SCOPE

      public static final CouchbaseConfigurations SCOPE
      The scope to use at couchbase otherwise, it will use the default.
    • COLLECTIONS

      public static final CouchbaseConfigurations COLLECTIONS
      couchbase collection split by a comma. At the start-up of a CouchbaseConfiguration, there is this option to check if these collections exist; if not, it will create using the default settings.
    • COLLECTION

      public static final CouchbaseConfigurations COLLECTION
      A default couchbase collection. When it is not defined the default value comes from Bucket.defaultCollection()
    • INDEX

      public static final CouchbaseConfigurations INDEX
      A couchbase collection index. At the start-up of a CouchbaseConfiguration, it will read this property to check if the index does exist, if not it will create combined by scope and the database.
  • Method Details

    • values

      public static CouchbaseConfigurations[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CouchbaseConfigurations valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • get

      public String get()
      Specified by:
      get in interface Supplier<String>