Project

General

Profile

« Previous | Next » 

Revision 778

Added by bojilova almost 23 years ago

changed all mentions of DBAdapter to the new name AbstractDatabase

View differences:

src/edu/ucsb/nceas/dbadapter/AbstractDatabase.java
112 112
    // Determine our db adapter class and
113 113
    // create an instance of that class
114 114
    try {
115
      MetaCatUtil util = new MetaCatUtil();
116
      String dbAdapter = util.getOption("dbAdapter");
115
      String dbAdapter = MetaCatUtil.getOption("dbAdapter");
117 116
      AbstractDatabase dbAdapterObj = (AbstractDatabase)createObject(dbAdapter);
118 117
      
119 118
      // test if they work correctly
120 119
      String date = dbAdapterObj.getDateTimeFunction();
121 120

  
122
      Connection conn = util.openDBConnection();
123
      long uniqueid = dbAdapterObj.getUniqueID(conn, "xml_catalog");
124
      conn.close();
125
      conn = null;
126

  
127 121
    } catch (Exception e) {
128 122
      System.out.println(e);
129 123
    }

Also available in: Unified diff