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)long
Get time in ns "nanoseconds" of calling 1 simple update query to DB.void
setDatabaseManagerBl
(DatabaseManagerBl databaseManagerBl)
-
Constructor Details
-
DatabaseManagerEntry
public DatabaseManagerEntry()
-
-
Method Details
-
getCurrentDatabaseVersion
Description copied from interface:DatabaseManager
Return current database version in string (ex. 3.0.1)- Specified by:
getCurrentDatabaseVersion
in interfaceDatabaseManager
- Returns:
- return current database version
- Throws:
PrivilegeException
-
getDatabaseDriverInformation
Description copied from interface:DatabaseManager
Get DB driver information from datasource (name-version)- Specified by:
getDatabaseDriverInformation
in interfaceDatabaseManager
- Returns:
- string information about database driver
- Throws:
PrivilegeException
-
getDatabaseInformation
Description copied from interface:DatabaseManager
Get DB information from datasource (name-version)- Specified by:
getDatabaseInformation
in interfaceDatabaseManager
- Returns:
- string information about database
- Throws:
PrivilegeException
-
getDatabaseManagerBl
-
getTimeOfQueryPerformance
Description copied from interface:DatabaseManager
Get 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:
getTimeOfQueryPerformance
in interfaceDatabaseManager
- Parameters:
sess
- user's session in Perun- Returns:
- time of processing query in nanoseconds
- Throws:
PrivilegeException
- wrong privilege to call this method
-
setDatabaseManagerBl
-