public enum Database extends Enum<Database>
If a given PersistenceProvider supports a database not listed here,
the strategy class can still be specified using the fully-qualified class name.
This enumeration is merely a convenience. The database products listed here
are the same as those explicitly supported for Spring JDBC exception translation
in sql-error-codes.xml
.
AbstractJpaVendorAdapter.setDatabase(org.springframework.orm.jpa.vendor.Database)
Enum Constant and Description |
---|
DB2 |
DEFAULT |
DERBY |
H2 |
HANA |
HSQL |
INFORMIX |
MYSQL |
ORACLE |
POSTGRESQL |
SQL_SERVER |
SYBASE |
Modifier and Type | Method and Description |
---|---|
static Database |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Database[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Database DEFAULT
public static final Database DB2
public static final Database DERBY
public static final Database H2
public static final Database HANA
public static final Database HSQL
public static final Database INFORMIX
public static final Database MYSQL
public static final Database ORACLE
public static final Database POSTGRESQL
public static final Database SQL_SERVER
public static final Database SYBASE
public static Database[] values()
for (Database c : Database.values()) System.out.println(c);
public static Database 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 null