com.googlecode.flyway.core.validation
Enum ValidationErrorMode

java.lang.Object
  extended by java.lang.Enum<ValidationErrorMode>
      extended by com.googlecode.flyway.core.validation.ValidationErrorMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ValidationErrorMode>

public enum ValidationErrorMode
extends java.lang.Enum<ValidationErrorMode>

Mode for handling validation errors.


Enum Constant Summary
CLEAN
          Cleans the database.
FAIL
          Throw an exception and fail.
 
Method Summary
static ValidationErrorMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ValidationErrorMode[] 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

FAIL

public static final ValidationErrorMode FAIL
Throw an exception and fail.


CLEAN

public static final ValidationErrorMode CLEAN
Cleans the database.

This is exclusively intended as a convenience for development. Even tough we strongly recommend not to change migration scripts once they have been checked into SCM and run, this provides a way of dealing with this case in a smooth manner. The database will be wiped clean automatically, ensuring that the next migration will bring you back to the state checked into SCM.


Warning ! Do not use in produktion !

Method Detail

values

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

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

valueOf

public static ValidationErrorMode valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2011. All Rights Reserved.