edu.ucsb.nceas.metacat.database
Class DatabaseService
java.lang.Object
edu.ucsb.nceas.metacat.shared.BaseService
edu.ucsb.nceas.metacat.database.DatabaseService
public class DatabaseService
- extends BaseService
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.