Arquillian Persistence Extension Implementation 1.0.0.Alpha4

org.jboss.arquillian.persistence.data.dbunit.configuration
Enum DataSeedStrategy

java.lang.Object
  extended by java.lang.Enum<DataSeedStrategy>
      extended by org.jboss.arquillian.persistence.data.dbunit.configuration.DataSeedStrategy
All Implemented Interfaces:
Serializable, Comparable<DataSeedStrategy>

public enum DataSeedStrategy
extends Enum<DataSeedStrategy>

Author:
Bartosz Majsak

Enum Constant Summary
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.
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.
 
Method Summary
abstract  org.dbunit.operation.DatabaseOperation get(boolean useIdentityInsert)
           
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.
 
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

INSERT

public static final DataSeedStrategy INSERT
Performs insert of the data defined in provided data sets. Default strategy.


CLEAN_INSERT

public static final DataSeedStrategy 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.


REFRESH

public static final DataSeedStrategy 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 dataset are not affected.


UPDATE

public static final DataSeedStrategy 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.

Method Detail

values

public static DataSeedStrategy[] 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 (DataSeedStrategy c : DataSeedStrategy.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DataSeedStrategy 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 name
NullPointerException - if the argument is null

get

public abstract org.dbunit.operation.DatabaseOperation get(boolean useIdentityInsert)

Arquillian Persistence Extension Implementation 1.0.0.Alpha4

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.