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 Object
createObject
(String className) Instantiate a class using the name of the class at runtimevoid
gets the database adapterstatic DatabaseService
Get the single instance of DatabaseService.boolean
void
stop()
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:
refreshable
in classBaseService
-
doRefresh
- Specified by:
doRefresh
in classBaseService
- Throws:
ServiceException
-
stop
- Specified by:
stop
in 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.
-