org.postgresql.jdbc2.ArrayAssistantRegistry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of postgresql-holo Show documentation
Show all versions of postgresql-holo Show documentation
PostgreSQL JDBC Driver Postgresql
The newest version!
/*
* Copyright (c) 2004, PostgreSQL Global Development Group
* See the LICENSE file in the project root for more information.
*/
package org.postgresql.jdbc2;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
/**
* Array assistants register here.
*
* @author Minglei Tu
*/
public class ArrayAssistantRegistry {
private static final ConcurrentMap ARRAY_ASSISTANT_MAP =
new ConcurrentHashMap();
public static @Nullable ArrayAssistant getAssistant(int oid) {
return ARRAY_ASSISTANT_MAP.get(oid);
}
public static void register(int oid, ArrayAssistant assistant) {
ARRAY_ASSISTANT_MAP.put(oid, assistant);
}
}