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

io.yawp.driver.postgresql.datastore.NamespaceManager Maven / Gradle / Ivy

There is a newer version: 2.08alpha
Show newest version
package io.yawp.driver.postgresql.datastore;

import io.yawp.repository.Namespace;

public class NamespaceManager {

    private static ThreadLocal namespace = new ThreadLocal();

    private NamespaceManager() {}

    public static String get() {
        String ns = namespace.get();
        return ns == null ? Namespace.GLOBAL : ns;
    }

    public static void set(String ns) {
        namespace.set(ns);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy