com.amazon.redshift.jdbc2.ArrayAssistantRegistry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redshift-jdbc42 Show documentation
Show all versions of redshift-jdbc42 Show documentation
Java JDBC 4.2 (JRE 8+) driver for Redshift database
The newest version!
/*
* Copyright (c) 2004, PostgreSQL Global Development Group
* See the LICENSE file in the project root for more information.
*/
package com.amazon.redshift.jdbc2;
import java.util.HashMap;
import java.util.Map;
/**
* Array assistants register here.
*
* @author Minglei Tu
*/
public class ArrayAssistantRegistry {
private static Map arrayAssistantMap =
new HashMap();
public static ArrayAssistant getAssistant(int oid) {
return arrayAssistantMap.get(oid);
}
////
public static void register(int oid, ArrayAssistant assistant) {
arrayAssistantMap.put(oid, assistant);
}
}