Enum PersistenceUnit
- java.lang.Object
-
- java.lang.Enum<PersistenceUnit>
-
- org.jbpm.test.persistence.scripts.PersistenceUnit
-
- All Implemented Interfaces:
Serializable
,Comparable<PersistenceUnit>
public enum PersistenceUnit extends Enum<PersistenceUnit>
Persistence units that are supported and used in tests.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLEAR_SCHEMA
Persistence unit used for clearing the database schema.DB_QUARTZ_VALIDATE
Persistence unit used for clearing the database schema.DB_TESTING_UPDATE
Persistence unit used for test cases validation.DB_TESTING_VALIDATE
Persistence unit used for test cases validation.SCRIPT_RUNNER
Persistence unit used for SQL scripts execution.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDataSourceName()
String
getName()
static PersistenceUnit
valueOf(String name)
Returns the enum constant of this type with the specified name.static PersistenceUnit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SCRIPT_RUNNER
public static final PersistenceUnit SCRIPT_RUNNER
Persistence unit used for SQL scripts execution.
-
DB_TESTING_VALIDATE
public static final PersistenceUnit DB_TESTING_VALIDATE
Persistence unit used for test cases validation. Uses Hibernate's 'validate'.
-
DB_TESTING_UPDATE
public static final PersistenceUnit DB_TESTING_UPDATE
Persistence unit used for test cases validation. Uses 'Hibernate's update' instead of 'validate'
-
CLEAR_SCHEMA
public static final PersistenceUnit CLEAR_SCHEMA
Persistence unit used for clearing the database schema.
-
DB_QUARTZ_VALIDATE
public static final PersistenceUnit DB_QUARTZ_VALIDATE
Persistence unit used for clearing the database schema.
-
-
Method Detail
-
values
public static PersistenceUnit[] 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 (PersistenceUnit c : PersistenceUnit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PersistenceUnit 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
-
getName
public String getName()
-
getDataSourceName
public String getDataSourceName()
-
-