1 50 51 package org.openlaszlo.iv.flash.cache; 52 53 import org.openlaszlo.iv.flash.api.*; 54 import java.util.*; 55 import java.sql.*; 56 57 public final class ConnectionCache { 58 59 private static Hashtable cache = new Hashtable(); 60 61 public static synchronized Connection getConnection( String key ) { 62 Connection connection = (Connection) cache.get(key); 63 return connection; 64 } 65 66 public static void putConnection( String key, Connection connection ) { 67 cache.put(key, connection); 68 } 69 } 70 | Popular Tags |