Enum DatabaseType
- java.lang.Object
-
- java.lang.Enum<DatabaseType>
-
- org.jbpm.test.persistence.scripts.DatabaseType
-
- All Implemented Interfaces:
Serializable
,Comparable<DatabaseType>
public enum DatabaseType extends Enum<DatabaseType>
Represents various supported database types. Based on supported hibernate dialects.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DB2
DERBY
H2
HSQLDB
MYSQL5
MYSQLINNODB
ORACLE
POSTGRESQL
SQLSERVER
SQLSERVER2008
SYBASE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getScriptDatabasePrefix()
Gets the database prefix name used for the scripts, based on the hibernate dialect.String
getScriptsFolderName()
Gets name of folder which contains scripts for database type.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.
-
-
-
Enum Constant Detail
-
DB2
public static final DatabaseType DB2
-
DERBY
public static final DatabaseType DERBY
-
H2
public static final DatabaseType H2
-
HSQLDB
public static final DatabaseType HSQLDB
-
MYSQL5
public static final DatabaseType MYSQL5
-
MYSQLINNODB
public static final DatabaseType MYSQLINNODB
-
ORACLE
public static final DatabaseType ORACLE
-
POSTGRESQL
public static final DatabaseType POSTGRESQL
-
SQLSERVER
public static final DatabaseType SQLSERVER
-
SQLSERVER2008
public static final DatabaseType SQLSERVER2008
-
SYBASE
public static final DatabaseType SYBASE
-
-
Method Detail
-
values
public static DatabaseType[] 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 (DatabaseType c : DatabaseType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DatabaseType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getScriptsFolderName
public String getScriptsFolderName()
Gets name of folder which contains scripts for database type.- Returns:
- Name of folder which contains scripts for database type.
-
getScriptDatabasePrefix
public String getScriptDatabasePrefix()
Gets the database prefix name used for the scripts, based on the hibernate dialect.- Returns:
- Database prefix name used for the script.
-
-