Enum SeedStrategy
- java.lang.Object
-
- java.lang.Enum<SeedStrategy>
-
- com.github.database.rider.core.api.dataset.SeedStrategy
-
- All Implemented Interfaces:
Serializable,Comparable<SeedStrategy>
public enum SeedStrategy extends Enum<SeedStrategy>
Same as arquillian persistence: https://docs.jboss.org/author/display/ARQ/Persistence Data insert strategies DBUnit, and hence Arquillian Persistence Extension, provides following strategies for inserting data INSERT Performs insert of the data defined in provided data sets. This is the default strategy. CLEAN_INSERT Performs insert of the data defined in provided data sets, after removal of all data present in the tables (DELETE_ALL invoked by DBUnit before INSERT). REFRESH During this operation existing rows are updated and new ones are inserted. Entries already existing in the database which are not defined in the provided data set are not affected. UPDATE This strategy updates existing rows using data provided in the datasets. If dataset contain a row which is not present in the database (identified by its primary key) then exception is thrown. IDENTITY_INSERT This strategy disables the MS SQL Server automatic identifier generation for the execution of inserts. Use it if you need to define record ids in your datasets.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLEAN_INSERTIDENTITY_INSERTINSERTREFRESHTRUNCATE_INSERTUPDATE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.dbunit.operation.DatabaseOperationgetOperation()static SeedStrategyvalueOf(String name)Returns the enum constant of this type with the specified name.static SeedStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLEAN_INSERT
public static final SeedStrategy CLEAN_INSERT
-
TRUNCATE_INSERT
public static final SeedStrategy TRUNCATE_INSERT
-
INSERT
public static final SeedStrategy INSERT
-
REFRESH
public static final SeedStrategy REFRESH
-
UPDATE
public static final SeedStrategy UPDATE
-
IDENTITY_INSERT
public static final SeedStrategy IDENTITY_INSERT
-
-
Method Detail
-
values
public static SeedStrategy[] 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 (SeedStrategy c : SeedStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SeedStrategy 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
-
getOperation
public org.dbunit.operation.DatabaseOperation getOperation()
-
-