Arquillian Persistence Extension API 1.0.0.Alpha4

org.jboss.arquillian.persistence
Enum CleanupStrategy

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

public enum CleanupStrategy
extends Enum<CleanupStrategy>

Defines strategy to be applied for @Cleanup operation.

Author:
Bartosz Majsak

Enum Constant Summary
STRICT
          Cleans entire database.
USED_ROWS_ONLY
          Deletes only those entries which were defined in data sets.
USED_TABLES_ONLY
          Deletes only those tables which were used in data sets.
 
Method Summary
static CleanupStrategy getDefault()
           
static CleanupStrategy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CleanupStrategy[] 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

STRICT

public static final CleanupStrategy STRICT
Cleans entire database. Might require turning off database constraints (e.g. referential integrity).


USED_ROWS_ONLY

public static final CleanupStrategy USED_ROWS_ONLY
Deletes only those entries which were defined in data sets.


USED_TABLES_ONLY

public static final CleanupStrategy USED_TABLES_ONLY
Deletes only those tables which were used in data sets.

Method Detail

values

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

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

valueOf

public static CleanupStrategy 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

getDefault

public static CleanupStrategy getDefault()

Arquillian Persistence Extension API 1.0.0.Alpha4

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