Package com.github.ddth.dao.utils
Enum DatabaseVendor
- java.lang.Object
-
- java.lang.Enum<DatabaseVendor>
-
- com.github.ddth.dao.utils.DatabaseVendor
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DatabaseVendor>
public enum DatabaseVendor extends java.lang.Enum<DatabaseVendor>
JDBC driver vendor info.- Since:
- 0.8.3
- Author:
- Thanh Nguyen
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MSSQL
MYSQL
ORACLE
POSTGRESQL
UNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
static DatabaseVendor
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DatabaseVendor[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final DatabaseVendor UNKNOWN
-
MYSQL
public static final DatabaseVendor MYSQL
-
POSTGRESQL
public static final DatabaseVendor POSTGRESQL
-
MSSQL
public static final DatabaseVendor MSSQL
-
ORACLE
public static final DatabaseVendor ORACLE
-
-
Method Detail
-
values
public static DatabaseVendor[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DatabaseVendor c : DatabaseVendor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DatabaseVendor valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getValue
public int getValue()
-
-