Revision 777
Added by bojilova over 23 years ago
src/edu/ucsb/nceas/metacat/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 |
} |
src/edu/ucsb/nceas/metacat/DocumentImpl.java | ||
---|---|---|
55 | 55 |
|
56 | 56 |
import java.net.URL; |
57 | 57 |
|
58 |
import edu.ucsb.nceas.dbadapter.DBAdapter;
|
|
58 |
import edu.ucsb.nceas.dbadapter.AbstractDatabase;
|
|
59 | 59 |
|
60 | 60 |
/** |
61 | 61 |
* A class that represents an XML document. It can be created with a simple |
... | ... | |
67 | 67 |
static final int ALL = 1; |
68 | 68 |
static final int WRITE = 2; |
69 | 69 |
static final int READ = 4; |
70 |
private static final DBAdapter dbAdapter = MetaCatUtil.dbAdapter;
|
|
70 |
private static final AbstractDatabase dbAdapter = MetaCatUtil.dbAdapter;
|
|
71 | 71 |
|
72 | 72 |
private Connection conn = null; |
73 | 73 |
private String docid = null; |
src/edu/ucsb/nceas/metacat/DBSAXNode.java | ||
---|---|---|
34 | 34 |
//import oracle.jdbc.driver.*; |
35 | 35 |
import org.xml.sax.SAXException; |
36 | 36 |
|
37 |
import edu.ucsb.nceas.dbadapter.DBAdapter;
|
|
37 |
import edu.ucsb.nceas.dbadapter.AbstractDatabase;
|
|
38 | 38 |
|
39 | 39 |
/** |
40 | 40 |
* A Class that represents an XML node and its contents and |
... | ... | |
44 | 44 |
|
45 | 45 |
private Connection conn; |
46 | 46 |
private DBSAXNode parentNode; |
47 |
private static final DBAdapter dbAdapter = MetaCatUtil.dbAdapter;
|
|
47 |
private static final AbstractDatabase dbAdapter = MetaCatUtil.dbAdapter;
|
|
48 | 48 |
|
49 | 49 |
/** |
50 | 50 |
* Construct a new node instance for DOCUMENT nodes |
src/edu/ucsb/nceas/metacat/AccessionNumber.java | ||
---|---|---|
31 | 31 |
import java.net.*; |
32 | 32 |
import java.sql.*; |
33 | 33 |
|
34 |
import edu.ucsb.nceas.dbadapter.DBAdapter;
|
|
34 |
import edu.ucsb.nceas.dbadapter.AbstractDatabase;
|
|
35 | 35 |
|
36 | 36 |
/** |
37 | 37 |
* (on insert of XML document) |
... | ... | |
43 | 43 |
*/ |
44 | 44 |
public class AccessionNumber { |
45 | 45 |
|
46 |
private static final DBAdapter dbAdapter = MetaCatUtil.dbAdapter;
|
|
46 |
private static final AbstractDatabase dbAdapter = MetaCatUtil.dbAdapter;
|
|
47 | 47 |
|
48 | 48 |
private Connection conn = null; |
49 | 49 |
private String sitecode = null; |
src/edu/ucsb/nceas/metacat/AccessControlList.java | ||
---|---|---|
47 | 47 |
import org.xml.sax.helpers.XMLReaderFactory; |
48 | 48 |
import org.xml.sax.helpers.DefaultHandler; |
49 | 49 |
|
50 |
import edu.ucsb.nceas.dbadapter.DBAdapter;
|
|
50 |
//import edu.ucsb.nceas.dbadapter.AbstractDatabase;
|
|
51 | 51 |
|
52 | 52 |
/** |
53 | 53 |
* A Class that loads eml-access.xml file containing ACL for a metadata |
Also available in: Unified diff
changed all mentions of DBAdapter to the new name AbstractDatabase