Enum DatabaseVendor
- java.lang.Object
-
- java.lang.Enum<DatabaseVendor>
-
- com.inductiveautomation.ignition.common.datasource.DatabaseVendor
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DatabaseVendor>
public enum DatabaseVendor extends java.lang.Enum<DatabaseVendor>
An enumeration of common RDBMS vendors. Used to exploit vendor-specific SQL extensions or work around syntax differences. Note that the order of this enum (e.g. theordinal()
value) is important for backwards compatibility and serialization: don't re-arrange it.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
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
-
MYSQL
public static final DatabaseVendor MYSQL
-
POSTGRES
public static final DatabaseVendor POSTGRES
-
MSSQL
public static final DatabaseVendor MSSQL
-
GENERIC
public static final DatabaseVendor GENERIC
-
ORACLE
public static final DatabaseVendor ORACLE
-
DB2
public static final DatabaseVendor DB2
-
FIREBIRD
public static final DatabaseVendor FIREBIRD
-
SQLITE
public static final DatabaseVendor SQLITE
-
-
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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<DatabaseVendor>
-
-