|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<DatabaseOperation>
com.github.springtestdbunit.annotation.DatabaseOperation
public enum DatabaseOperation
Database test operations that can be performed to configure database tables.
DatabaseSetup,
DatabaseTearDown| Enum Constant Summary | |
|---|---|
CLEAN_INSERT
Deletes all rows from a database table when the tables is specified in the dataset and subsequently insert new contents. |
|
DELETE
Deletes database table rows that matches rows from the dataset. |
|
DELETE_ALL
Deletes all rows from a database table when the table is specified in the dataset. |
|
INSERT
Inserts new database tables and contents from the dataset. |
|
REFRESH
Refresh the contents of existing database tables. |
|
TRUNCATE_TABLE
Deletes all rows from a database table when the table is specified in the dataset. |
|
UPDATE
Updates the contents of existing database tables from the dataset. |
|
| Method Summary | |
|---|---|
static DatabaseOperation |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DatabaseOperation[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final DatabaseOperation UPDATE
public static final DatabaseOperation INSERT
public static final DatabaseOperation REFRESH
public static final DatabaseOperation DELETE
public static final DatabaseOperation DELETE_ALL
TRUNCATE_TABLEpublic static final DatabaseOperation TRUNCATE_TABLE
DELETE_ALL expect this operation cannot be rolled back and
is supported by less database vendors.
DELETE_ALLpublic static final DatabaseOperation CLEAN_INSERT
DELETE_ALL followed by INSERT.
| Method Detail |
|---|
public static DatabaseOperation[] values()
for (DatabaseOperation c : DatabaseOperation.values()) System.out.println(c);
public static DatabaseOperation valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||