public enum DatabaseOperation extends Enum<DatabaseOperation>
DatabaseSetup,
DatabaseTearDown| Enum Constant and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.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 nameNullPointerException - if the argument is nullCopyright © 2016. All rights reserved.