Package edu.ucsb.nceas.metacat.database
Class DatabaseService
java.lang.Object
edu.ucsb.nceas.metacat.shared.BaseService
edu.ucsb.nceas.metacat.database.DatabaseService
-
Field Summary
Fields inherited from class edu.ucsb.nceas.metacat.shared.BaseService
_serviceName -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectcreateObject(String className) Instantiate a class using the name of the class at runtimevoidgets the database adapterstatic DatabaseServiceGet the single instance of DatabaseService.booleanvoidstop()Methods inherited from class edu.ucsb.nceas.metacat.shared.BaseService
refresh
-
Method Details
-
getInstance
Get the single instance of DatabaseService.- Returns:
- the single instance of DatabaseService
-
refreshable
public boolean refreshable()- Specified by:
refreshablein classBaseService
-
doRefresh
- Specified by:
doRefreshin classBaseService- Throws:
ServiceException
-
stop
- Specified by:
stopin classBaseService- Throws:
ServiceException
-
createObject
Instantiate a class using the name of the class at runtime- Parameters:
className- the fully qualified name of the class to instantiate- Throws:
Exception
-
getDBAdapter
gets the database adapter- Returns:
- AbstractDatabase object for this application's database adapter.
-