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

org.postgresql.jdbc2.ArrayAssistantRegistry Maven / Gradle / Ivy

There is a newer version: 5.0.0.9.pg
Show newest version
/*
 * Copyright (c) 2004, PostgreSQL Global Development Group
 * See the LICENSE file in the project root for more information.
 */

package io.mogdb.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);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy