public enum ConnectionType extends Enum<ConnectionType>
Enum Constant and Description |
---|
DATABASE
Database connection type.
|
Modifier and Type | Method and Description |
---|---|
static ConnectionType |
getConnectionTypeByKey(String key)
Get the connection type by key
|
String |
getName()
Get the name of the connection.
|
boolean |
isEquals(String value)
Get if the connection name is equals to the value
|
static boolean |
isValidKey(String key)
Get if a connection is valid by key
|
static ConnectionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionType DATABASE
public static ConnectionType[] values()
for (ConnectionType c : ConnectionType.values()) System.out.println(c);
public static ConnectionType 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 String getName()
public boolean isEquals(String value)
value
- the valuepublic static boolean isValidKey(String key)
key
- the keypublic static ConnectionType getConnectionTypeByKey(String key)
key
- the keyCopyright © 2020 DEISER. All Rights Reserved.