org.equanda.persistence
Class CheckRulesState

java.lang.Object
  extended by org.equanda.persistence.CheckRulesState

public final class CheckRulesState
extends Object

Store the state whether declarative rules should be checked or not. This is stored in a ThreadLocal. When this is false, checks are skipped. This should only be used internally in the system to avoid double checks (and resulting slowness).

Author:
Joachim Van der Auwera

Field Summary
static String RULES_CHECKS_STATE_CONTEXT
           
 
Method Summary
static boolean getCheckRules()
           
static void setCheckRules(boolean value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RULES_CHECKS_STATE_CONTEXT

public static final String RULES_CHECKS_STATE_CONTEXT
See Also:
Constant Field Values
Method Detail

getCheckRules

public static boolean getCheckRules()

setCheckRules

public static void setCheckRules(boolean value)


Copyright © 2007-2009. All Rights Reserved.