public enum EventStoreDatabaseConfiguration extends java.lang.Enum<EventStoreDatabaseConfiguration>
| Modifier and Type | Method and Description |
|---|---|
static java.sql.Connection |
createDatabaseConnection() |
java.lang.String |
getEnvironmentVariableName() |
java.lang.String |
getPropertyName() |
java.lang.String |
readFrom(java.util.Properties properties) |
static java.util.Properties |
readPropertiesFromEnvironment() |
static EventStoreDatabaseConfiguration |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EventStoreDatabaseConfiguration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EventStoreDatabaseConfiguration HOST
public static final EventStoreDatabaseConfiguration NAME
public static final EventStoreDatabaseConfiguration USERNAME
public static final EventStoreDatabaseConfiguration PORT
public static final EventStoreDatabaseConfiguration PASSWORD
public static EventStoreDatabaseConfiguration[] values()
for (EventStoreDatabaseConfiguration c : EventStoreDatabaseConfiguration.values()) System.out.println(c);
public static EventStoreDatabaseConfiguration valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String readFrom(java.util.Properties properties)
public java.lang.String getPropertyName()
public java.lang.String getEnvironmentVariableName()
public static final java.util.Properties readPropertiesFromEnvironment()
public static java.sql.Connection createDatabaseConnection()
throws java.sql.SQLException
java.sql.SQLException