public static enum Database.Type extends Enum<Database.Type>
Enum Constant and Description |
---|
CASSANDRA |
JDBC |
MONGODB |
REDIS |
UNRECOGNIZED |
Modifier and Type | Method and Description |
---|---|
static Database.Type |
fromKey(String key) |
String |
getKey() |
static Database.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Database.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Database.Type CASSANDRA
public static final Database.Type JDBC
public static final Database.Type MONGODB
public static final Database.Type REDIS
public static final Database.Type UNRECOGNIZED
public static Database.Type[] values()
for (Database.Type c : Database.Type.values()) System.out.println(c);
public static Database.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Database.Type fromKey(String key)
public String getKey()
Copyright © 2021. All rights reserved.