edu.ucsb.nceas.metacat.database
Class DatabaseService

java.lang.Object
  extended by edu.ucsb.nceas.metacat.shared.BaseService
      extended by edu.ucsb.nceas.metacat.database.DatabaseService

public class DatabaseService
extends BaseService


Field Summary
 
Fields inherited from class edu.ucsb.nceas.metacat.shared.BaseService
_serviceName
 
Method Summary
static java.lang.Object createObject(java.lang.String className)
          Instantiate a class using the name of the class at runtime
 void doRefresh()
           
static AbstractDatabase getDBAdapter()
          gets the database adapter
static DatabaseService getInstance()
          Get the single instance of DatabaseService.
 boolean refreshable()
           
 void stop()
           
 
Methods inherited from class edu.ucsb.nceas.metacat.shared.BaseService
refresh
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DatabaseService getInstance()
Get the single instance of DatabaseService.

Returns:
the single instance of DatabaseService

refreshable

public boolean refreshable()
Specified by:
refreshable in class BaseService

doRefresh

public void doRefresh()
               throws ServiceException
Specified by:
doRefresh in class BaseService
Throws:
ServiceException

stop

public void stop()
          throws ServiceException
Specified by:
stop in class BaseService
Throws:
ServiceException

createObject

public static java.lang.Object createObject(java.lang.String className)
                                     throws java.lang.Exception
Instantiate a class using the name of the class at runtime

Parameters:
className - the fully qualified name of the class to instantiate
Throws:
java.lang.Exception

getDBAdapter

public static AbstractDatabase getDBAdapter()
gets the database adapter

Returns:
AbstractDatabase object for this application's database adapter.


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