edu.ucsb.nceas.metacat
Class MetaCatUtil

java.lang.Object
  |
  +--edu.ucsb.nceas.metacat.MetaCatUtil

public class MetaCatUtil
extends java.lang.Object

A suite of utility classes for the metadata catalog server


Constructor Summary
MetaCatUtil()
           
 
Method Summary
static java.sql.Connection openDBConnection(java.lang.String dbDriver, java.lang.String connection, java.lang.String user, java.lang.String password)
          Utility method to establish a JDBC database connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaCatUtil

public MetaCatUtil()
Method Detail

openDBConnection

public static java.sql.Connection openDBConnection(java.lang.String dbDriver,
                                                   java.lang.String connection,
                                                   java.lang.String user,
                                                   java.lang.String password)
                                            throws java.sql.SQLException,
                                                   java.lang.ClassNotFoundException
Utility method to establish a JDBC database connection
Parameters:
dbDriver - the string representing the database driver
connection - the string representing the database connectin parameters
user - name of the user to use for database connection
password - password for the user to use for database connection


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.