Package cz.metacentrum.perun.core.entry
Class DatabaseManagerEntry
java.lang.Object
cz.metacentrum.perun.core.entry.DatabaseManagerEntry
- All Implemented Interfaces:
DatabaseManager
Database manager can work with database version and upgraded state of perun DB.
- Author:
- Michal Stava email:<stavamichal@gmail.com>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn current database version in string (ex. 3.0.1)Get DB driver information from datasource (name-version)Get DB information from datasource (name-version)longGet time in ns "nanoseconds" of calling 1 simple update query to DB.voidsetDatabaseManagerBl(DatabaseManagerBl databaseManagerBl)
-
Constructor Details
-
DatabaseManagerEntry
public DatabaseManagerEntry()
-
-
Method Details
-
getCurrentDatabaseVersion
Description copied from interface:DatabaseManagerReturn current database version in string (ex. 3.0.1)- Specified by:
getCurrentDatabaseVersionin interfaceDatabaseManager- Returns:
- return current database version
- Throws:
PrivilegeException
-
getDatabaseDriverInformation
Description copied from interface:DatabaseManagerGet DB driver information from datasource (name-version)- Specified by:
getDatabaseDriverInformationin interfaceDatabaseManager- Returns:
- string information about database driver
- Throws:
PrivilegeException
-
getDatabaseInformation
Description copied from interface:DatabaseManagerGet DB information from datasource (name-version)- Specified by:
getDatabaseInformationin interfaceDatabaseManager- Returns:
- string information about database
- Throws:
PrivilegeException
-
getDatabaseManagerBl
-
getTimeOfQueryPerformance
Description copied from interface:DatabaseManagerGet time in ns "nanoseconds" of calling 1 simple update query to DB. This query will update property for this purpose in configurations table.- Specified by:
getTimeOfQueryPerformancein interfaceDatabaseManager- Parameters:
sess- user's session in Perun- Returns:
- time of processing query in nanoseconds
- Throws:
PrivilegeException- wrong privilege to call this method
-
setDatabaseManagerBl
-