Package com.openindex.openestate.tool.db
Interface DbAdminHandler
-
- All Known Implementing Classes:
DbAdminHandlerImpl
,HSqlDbAdminHandler
public interface DbAdminHandler
DbAdminHandler.- Author:
- Andreas Rudolph
-
-
Method Summary
-
-
-
Method Detail
-
backupLocalDb
void backupLocalDb(Connection c, File backupArchive) throws SQLException
- Throws:
SQLException
-
backupRemoteDb
void backupRemoteDb(Connection c, String dbName) throws SQLException
- Throws:
SQLException
-
createAccount
void createAccount(Connection c, String account, char[] password) throws SQLException
- Throws:
SQLException
-
defrag
void defrag(Connection c) throws SQLException
- Throws:
SQLException
-
dumpLocalDb
void dumpLocalDb(Connection c, File backupArchive) throws SQLException
- Throws:
SQLException
-
getAccounts
String[] getAccounts(Connection c, boolean includeAdmin) throws SQLException
- Throws:
SQLException
-
getProcedures
String[] getProcedures(Connection c) throws SQLException
- Throws:
SQLException
-
getRoles
String[] getRoles(Connection c, boolean includeAdmin) throws SQLException
- Throws:
SQLException
-
getSessions
DbSession[] getSessions(Connection c) throws SQLException
- Throws:
SQLException
-
getTables
String[] getTables(Connection c) throws SQLException
- Throws:
SQLException
-
getViews
String[] getViews(Connection c) throws SQLException
- Throws:
SQLException
-
grantRole
boolean grantRole(Connection c, String account, String role) throws SQLException
- Throws:
SQLException
-
hasRole
boolean hasRole(Connection c, String role) throws SQLException
- Throws:
SQLException
-
hasRole
boolean hasRole(Connection c, String account, String role) throws SQLException
- Throws:
SQLException
-
isAdmin
boolean isAdmin(Connection c) throws SQLException
- Throws:
SQLException
-
isAdmin
boolean isAdmin(Connection c, String account) throws SQLException
- Throws:
SQLException
-
isEnabled
boolean isEnabled(Connection c) throws SQLException
- Throws:
SQLException
-
isEnabled
boolean isEnabled(Connection c, String account) throws SQLException
- Throws:
SQLException
-
isLocalDbBackupSupported
boolean isLocalDbBackupSupported()
-
isLocalDbDumpSupported
boolean isLocalDbDumpSupported()
-
isRemoteDbBackupSupported
boolean isRemoteDbBackupSupported()
-
removeAccount
void removeAccount(Connection c, String account) throws SQLException
- Throws:
SQLException
-
revokeRole
boolean revokeRole(Connection c, String account, String role) throws SQLException
- Throws:
SQLException
-
setAdmin
void setAdmin(Connection c, String account, boolean isAdmin) throws SQLException
- Throws:
SQLException
-
setEnabled
void setEnabled(Connection c, String account, boolean isEnabled) throws SQLException
- Throws:
SQLException
-
updateAccount
void updateAccount(Connection c, String account, char[] password) throws SQLException
- Throws:
SQLException
-
-