public enum DataSeedStrategy extends Enum<DataSeedStrategy>
| Modifier and Type | Class and Description |
|---|---|
static interface |
DataSeedStrategy.StrategyProvider<T> |
| Enum Constant and Description |
|---|
CLEAN_INSERT
Performs insert of the data defined in provided data sets,
after removal of all data present in the tables referred
in provided files.
|
DEFAULT
This is guarding enum instance used to indicate
that use has not defined seeding strategy explicitly.
|
INSERT
Performs insert of the data defined in provided data sets.
|
REFRESH
During this operation existing rows are updated and new ones are inserted.
|
UPDATE
This strategy updates existing rows using data provided
in the datasets.
|
| Modifier and Type | Method and Description |
|---|---|
abstract <T> T |
provide(DataSeedStrategy.StrategyProvider<T> provider) |
static DataSeedStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataSeedStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataSeedStrategy INSERT
public static final DataSeedStrategy CLEAN_INSERT
public static final DataSeedStrategy REFRESH
public static final DataSeedStrategy UPDATE
public static final DataSeedStrategy DEFAULT
arquillian.xml
should be used.public static DataSeedStrategy[] values()
for (DataSeedStrategy c : DataSeedStrategy.values()) System.out.println(c);
public static DataSeedStrategy 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 abstract <T> T provide(DataSeedStrategy.StrategyProvider<T> provider)
Copyright © 2018 JBoss by Red Hat. All rights reserved.