org.dbmaintain.script.analyzer
Enum ScriptUpdateType

java.lang.Object
  extended by java.lang.Enum<ScriptUpdateType>
      extended by org.dbmaintain.script.analyzer.ScriptUpdateType
All Implemented Interfaces:
Serializable, Comparable<ScriptUpdateType>

public enum ScriptUpdateType
extends Enum<ScriptUpdateType>

Since:
24-dec-2008
Author:
Filip Neven, Tim Ducheyne

Enum Constant Summary
HIGHER_INDEX_SCRIPT_ADDED
          'Regular' script updates: these are always allowed
INDEXED_SCRIPT_DELETED
           
INDEXED_SCRIPT_RENAMED
          Regular script renames.
INDEXED_SCRIPT_RENAMED_SCRIPT_SEQUENCE_CHANGED
           
INDEXED_SCRIPT_UPDATED
          Irregular script updates: these cause an exception or trigger a recreation from scratch
LOWER_INDEX_NON_PATCH_SCRIPT_ADDED
           
LOWER_INDEX_PATCH_SCRIPT_ADDED
          Script update that is only allowed if the 'patch.allowOutOfSequenceExecution' option is enabled
POSTPROCESSING_SCRIPT_ADDED
          Postprocessing script updates: these are also always allowed
POSTPROCESSING_SCRIPT_DELETED
           
POSTPROCESSING_SCRIPT_FAILURE_RERUN
           
POSTPROCESSING_SCRIPT_RENAMED
           
POSTPROCESSING_SCRIPT_UPDATED
           
REPEATABLE_SCRIPT_ADDED
           
REPEATABLE_SCRIPT_DELETED
          Special case: deletion of a repeatable script: this is allowed, thought might introduce problems
REPEATABLE_SCRIPT_RENAMED
           
REPEATABLE_SCRIPT_UPDATED
           
 
Method Summary
static ScriptUpdateType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ScriptUpdateType[] 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

HIGHER_INDEX_SCRIPT_ADDED

public static final ScriptUpdateType HIGHER_INDEX_SCRIPT_ADDED
'Regular' script updates: these are always allowed


REPEATABLE_SCRIPT_ADDED

public static final ScriptUpdateType REPEATABLE_SCRIPT_ADDED

REPEATABLE_SCRIPT_UPDATED

public static final ScriptUpdateType REPEATABLE_SCRIPT_UPDATED

REPEATABLE_SCRIPT_DELETED

public static final ScriptUpdateType REPEATABLE_SCRIPT_DELETED
Special case: deletion of a repeatable script: this is allowed, thought might introduce problems


POSTPROCESSING_SCRIPT_ADDED

public static final ScriptUpdateType POSTPROCESSING_SCRIPT_ADDED
Postprocessing script updates: these are also always allowed


POSTPROCESSING_SCRIPT_UPDATED

public static final ScriptUpdateType POSTPROCESSING_SCRIPT_UPDATED

POSTPROCESSING_SCRIPT_DELETED

public static final ScriptUpdateType POSTPROCESSING_SCRIPT_DELETED

POSTPROCESSING_SCRIPT_FAILURE_RERUN

public static final ScriptUpdateType POSTPROCESSING_SCRIPT_FAILURE_RERUN

INDEXED_SCRIPT_UPDATED

public static final ScriptUpdateType INDEXED_SCRIPT_UPDATED
Irregular script updates: these cause an exception or trigger a recreation from scratch


INDEXED_SCRIPT_DELETED

public static final ScriptUpdateType INDEXED_SCRIPT_DELETED

LOWER_INDEX_NON_PATCH_SCRIPT_ADDED

public static final ScriptUpdateType LOWER_INDEX_NON_PATCH_SCRIPT_ADDED

INDEXED_SCRIPT_RENAMED_SCRIPT_SEQUENCE_CHANGED

public static final ScriptUpdateType INDEXED_SCRIPT_RENAMED_SCRIPT_SEQUENCE_CHANGED

LOWER_INDEX_PATCH_SCRIPT_ADDED

public static final ScriptUpdateType LOWER_INDEX_PATCH_SCRIPT_ADDED
Script update that is only allowed if the 'patch.allowOutOfSequenceExecution' option is enabled


INDEXED_SCRIPT_RENAMED

public static final ScriptUpdateType INDEXED_SCRIPT_RENAMED
Regular script renames.


REPEATABLE_SCRIPT_RENAMED

public static final ScriptUpdateType REPEATABLE_SCRIPT_RENAMED

POSTPROCESSING_SCRIPT_RENAMED

public static final ScriptUpdateType POSTPROCESSING_SCRIPT_RENAMED
Method Detail

values

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

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

valueOf

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


Copyright © 2011. All Rights Reserved.