Revision 777
Added by bojilova almost 23 years ago
MetaCatUtil.java | ||
---|---|---|
37 | 37 |
import java.util.Hashtable; |
38 | 38 |
import java.util.Enumeration; |
39 | 39 |
|
40 |
import edu.ucsb.nceas.dbadapter.DBAdapter;
|
|
40 |
import edu.ucsb.nceas.dbadapter.AbstractDatabase;
|
|
41 | 41 |
|
42 | 42 |
/** |
43 | 43 |
* A suite of utility classes for the metadata catalog server |
44 | 44 |
*/ |
45 | 45 |
public class MetaCatUtil { |
46 | 46 |
|
47 |
public static DBAdapter dbAdapter;
|
|
47 |
public static AbstractDatabase dbAdapter;
|
|
48 | 48 |
private static PropertyResourceBundle options = null; |
49 | 49 |
private static String propertiesFile = "edu.ucsb.nceas.metacat.metacat"; |
50 | 50 |
private static boolean debug = false; |
... | ... | |
56 | 56 |
*/ |
57 | 57 |
static { |
58 | 58 |
try { |
59 |
dbAdapter = (DBAdapter)createObject(getOption("dbAdapter"));
|
|
59 |
dbAdapter = (AbstractDatabase)createObject(getOption("dbAdapter"));
|
|
60 | 60 |
} catch (Exception e) { |
61 | 61 |
System.err.println("Error in MetaCatUtil static block:" + e.getMessage()); |
62 | 62 |
} |
Also available in: Unified diff
changed all mentions of DBAdapter to the new name AbstractDatabase