All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.umlg.runtime.adaptor.TransactionThreadBypassValidationVar Maven / Gradle / Ivy

There is a newer version: 2.0.15
Show newest version
package org.umlg.runtime.adaptor;


public class TransactionThreadBypassValidationVar {

    private TransactionThreadBypassValidationVar() {
    }

    private static ThreadLocal transactionBypassValidationVar = ThreadLocal.withInitial(() -> false);

    public static void remove() {
        transactionBypassValidationVar.remove();
    }

    public static void set(boolean bypass) {
        transactionBypassValidationVar.set(bypass);
    }

    public static boolean get() {
        return transactionBypassValidationVar.get();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy