@Status(stage=PRODUCTION, unitTests=COMPLETE) @Review(by="Kees Schotanus",at="2009-04-11") @Review(by="Kees Schotanus",at="2009-08-17",reason="Errors found by unit tests") public enum DatabaseType extends Enum<DatabaseType>
Enum Constant and Description |
---|
DB2
IBM's DB/2 database.
|
DERBY
Generic Apache Derby DatabaseType, formerly known as CloudScape.
|
DERBY_10_2
Apache Derby 10.2 DatabaseType, formerly known as CloudScape.
|
DERBY_10_3
Apache Derby 10.3 DatabaseType, formerly known as CloudScape.
|
ORACLE
Generic Oracle DatabaseType.
|
ORACLE_10
Oracle 10 database.
|
ORACLE_11
Oracle 11 database.
|
ORACLE_8
Oracle 8 database.
|
ORACLE_9
Oracle 9 database.
|
Modifier and Type | Method and Description |
---|---|
int |
getMajorVersion()
Gets the major version of this DatabaseType.
|
int |
getMinorVersion()
Gets the minor version of this DatabaseType.
|
static boolean |
isDB2(DatabaseType databaseType)
Determines whether the supplied database is a DB/2 database.
|
static boolean |
isDerby(DatabaseType databaseType)
Determines whether the supplied database is a Derby database.
|
static boolean |
isOracle(DatabaseType databaseType)
Determines whether the supplied database is an Oracle database.
|
static DatabaseType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DatabaseType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DatabaseType DB2
public static final DatabaseType DERBY
public static final DatabaseType DERBY_10_2
public static final DatabaseType DERBY_10_3
public static final DatabaseType ORACLE
public static final DatabaseType ORACLE_8
public static final DatabaseType ORACLE_9
public static final DatabaseType ORACLE_10
public static final DatabaseType ORACLE_11
public static DatabaseType[] values()
for (DatabaseType c : DatabaseType.values()) System.out.println(c);
public static DatabaseType 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 nullpublic int getMajorVersion()
public int getMinorVersion()
public static boolean isDB2(DatabaseType databaseType)
databaseType
- The database server to check.public static boolean isDerby(DatabaseType databaseType)
databaseType
- The database server to check.public static boolean isOracle(DatabaseType databaseType)
databaseType
- The database server to check.Copyright © 2008–2018. All rights reserved.