public abstract class DbAdminHandlerImpl extends Object implements DbAdminHandler
| Constructor and Description |
|---|
DbAdminHandlerImpl() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
backupLocalDb(Connection c,
File backupArchive) |
abstract void |
backupRemoteDb(Connection c,
String dbName) |
abstract void |
createAccount(Connection c,
String account,
char[] password) |
abstract void |
defrag(Connection c) |
abstract void |
dumpLocalDb(Connection c,
File backupArchive) |
abstract String[] |
getAccounts(Connection c,
boolean includeAdmin) |
abstract String[] |
getProcedures(Connection c) |
abstract String[] |
getRoles(Connection c,
boolean includeAdmin) |
abstract DbSession[] |
getSessions(Connection c) |
abstract String[] |
getTables(Connection c) |
abstract String[] |
getViews(Connection c) |
abstract boolean |
grantRole(Connection c,
String account,
String role) |
boolean |
hasRole(Connection c,
String role) |
abstract boolean |
hasRole(Connection c,
String account,
String role) |
boolean |
isAdmin(Connection c) |
abstract boolean |
isAdmin(Connection c,
String account) |
boolean |
isEnabled(Connection c) |
abstract boolean |
isEnabled(Connection c,
String account) |
abstract boolean |
isLocalDbBackupSupported() |
abstract boolean |
isLocalDbDumpSupported() |
abstract boolean |
isRemoteDbBackupSupported() |
abstract void |
removeAccount(Connection c,
String account) |
abstract boolean |
revokeRole(Connection c,
String account,
String role) |
abstract File |
selectLocalBackupFile(Component parentComponent,
File defaultDir) |
abstract File |
selectLocalDumpFile(Component parentComponent,
File defaultDir) |
abstract void |
setAdmin(Connection c,
String account,
boolean isAdmin) |
abstract void |
setEnabled(Connection c,
String account,
boolean isEnabled) |
abstract void |
updateAccount(Connection c,
String account,
char[] password) |
public abstract void backupLocalDb(Connection c, File backupArchive) throws SQLException
backupLocalDb in interface DbAdminHandlerSQLExceptionpublic abstract void backupRemoteDb(Connection c, String dbName) throws SQLException
backupRemoteDb in interface DbAdminHandlerSQLExceptionpublic abstract void createAccount(Connection c, String account, char[] password) throws SQLException
createAccount in interface DbAdminHandlerSQLExceptionpublic abstract void dumpLocalDb(Connection c, File backupArchive) throws SQLException
dumpLocalDb in interface DbAdminHandlerSQLExceptionpublic abstract void defrag(Connection c) throws SQLException
defrag in interface DbAdminHandlerSQLExceptionpublic abstract String[] getAccounts(Connection c, boolean includeAdmin) throws SQLException
getAccounts in interface DbAdminHandlerSQLExceptionpublic abstract String[] getProcedures(Connection c) throws SQLException
getProcedures in interface DbAdminHandlerSQLExceptionpublic abstract String[] getRoles(Connection c, boolean includeAdmin) throws SQLException
getRoles in interface DbAdminHandlerSQLExceptionpublic abstract DbSession[] getSessions(Connection c) throws SQLException
getSessions in interface DbAdminHandlerSQLExceptionpublic abstract String[] getTables(Connection c) throws SQLException
getTables in interface DbAdminHandlerSQLExceptionpublic abstract String[] getViews(Connection c) throws SQLException
getViews in interface DbAdminHandlerSQLExceptionpublic abstract boolean grantRole(Connection c, String account, String role) throws SQLException
grantRole in interface DbAdminHandlerSQLExceptionpublic final boolean hasRole(Connection c, String role) throws SQLException
hasRole in interface DbAdminHandlerSQLExceptionpublic abstract boolean hasRole(Connection c, String account, String role) throws SQLException
hasRole in interface DbAdminHandlerSQLExceptionpublic final boolean isAdmin(Connection c) throws SQLException
isAdmin in interface DbAdminHandlerSQLExceptionpublic abstract boolean isAdmin(Connection c, String account) throws SQLException
isAdmin in interface DbAdminHandlerSQLExceptionpublic final boolean isEnabled(Connection c) throws SQLException
isEnabled in interface DbAdminHandlerSQLExceptionpublic abstract boolean isEnabled(Connection c, String account) throws SQLException
isEnabled in interface DbAdminHandlerSQLExceptionpublic abstract boolean isLocalDbBackupSupported()
isLocalDbBackupSupported in interface DbAdminHandlerpublic abstract boolean isLocalDbDumpSupported()
isLocalDbDumpSupported in interface DbAdminHandlerpublic abstract boolean isRemoteDbBackupSupported()
isRemoteDbBackupSupported in interface DbAdminHandlerpublic abstract void removeAccount(Connection c, String account) throws SQLException
removeAccount in interface DbAdminHandlerSQLExceptionpublic abstract boolean revokeRole(Connection c, String account, String role) throws SQLException
revokeRole in interface DbAdminHandlerSQLExceptionpublic abstract File selectLocalBackupFile(Component parentComponent, File defaultDir)
selectLocalBackupFile in interface DbAdminHandlerpublic abstract File selectLocalDumpFile(Component parentComponent, File defaultDir)
selectLocalDumpFile in interface DbAdminHandlerpublic abstract void setAdmin(Connection c, String account, boolean isAdmin) throws SQLException
setAdmin in interface DbAdminHandlerSQLExceptionpublic abstract void setEnabled(Connection c, String account, boolean isEnabled) throws SQLException
setEnabled in interface DbAdminHandlerSQLExceptionpublic abstract void updateAccount(Connection c, String account, char[] password) throws SQLException
updateAccount in interface DbAdminHandlerSQLExceptionCopyright © 2015 OpenEstate. All rights reserved.