Enum Class PrometheusDBResource
java.lang.Object
java.lang.Enum<PrometheusDBResource>
io.github.tonywasher.joceanus.prometheus.database.PrometheusDBResource
- All Implemented Interfaces:
OceanusBundleId,Serializable,Comparable<PrometheusDBResource>,Constable
Resource IDs for jPrometheus Preference Fields.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDatabasePreference Batch.DatabasePreference Driver.DatabasePreference Instance.DatabasePreference Name.DatabasePreference Password.DatabasePreference Port.DatabasePreference Display Name.DatabasePreference Server.DatabasePreference User.DBDriver H2.DBDriver MAriaDB.DBDriver SQLServer.DBDriver PostgreSQL.DBDriver SQLServer. -
Method Summary
Modifier and TypeMethodDescription(package private) static OceanusBundleIdgetKeyForDriver(PrometheusJDBCDriver pValue) Obtain key for DBDriver.Get Key Name.Get NameSpace.getValue()Get Value.static PrometheusDBResourceReturns the enum constant of this class with the specified name.static PrometheusDBResource[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DRIVER_SQLSERVER
DBDriver SQLServer. -
DRIVER_POSTGRESQL
DBDriver PostgreSQL. -
DRIVER_MYSQL
DBDriver SQLServer. -
DRIVER_MARIADB
DBDriver MAriaDB. -
DRIVER_H2
DBDriver H2. -
DBPREF_PREFNAME
DatabasePreference Display Name. -
DBPREF_DRIVER
DatabasePreference Driver. -
DBPREF_SERVER
DatabasePreference Server. -
DBPREF_INSTANCE
DatabasePreference Instance. -
DBPREF_PORT
DatabasePreference Port. -
DBPREF_NAME
DatabasePreference Name. -
DBPREF_BATCH
DatabasePreference Batch. -
DBPREF_USER
DatabasePreference User. -
DBPREF_PASS
DatabasePreference Password.
-
-
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
-
getKeyName
Description copied from interface:OceanusBundleIdGet Key Name.- Specified by:
getKeyNamein interfaceOceanusBundleId- Returns:
- the key name.
-
getNameSpace
Description copied from interface:OceanusBundleIdGet NameSpace.- Specified by:
getNameSpacein interfaceOceanusBundleId- Returns:
- the nameSpace.
-
getValue
Description copied from interface:OceanusBundleIdGet Value.- Specified by:
getValuein interfaceOceanusBundleId- Returns:
- the value.
-
getKeyForDriver
Obtain key for DBDriver.- Parameters:
pValue- the Value- Returns:
- the resource key
-