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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA default couchbase collection.couchbase collection split by a comma.The host at the database.A couchbase collection index.The password's credentialThe scope to use at couchbase otherwise, it will use the default.The user's credential. -
Method Summary
Modifier and TypeMethodDescriptionget()static CouchbaseConfigurationsReturns the enum constant of this class with the specified name.static CouchbaseConfigurations[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HOST
The host at the database. -
USER
The user's credential. -
PASSWORD
The password's credential -
SCOPE
The scope to use at couchbase otherwise, it will use the default. -
COLLECTIONS
couchbase collection split by a comma. At the start-up of aCouchbaseConfiguration, there is this option to check if these collections exist; if not, it will create using the default settings. -
COLLECTION
A default couchbase collection. When it is not defined the default value comes fromBucket.defaultCollection() -
INDEX
A couchbase collection index. At the start-up of aCouchbaseConfiguration, 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
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
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 nameNullPointerException- if the argument is null
-
get
-