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 DbAdminHandler
SQLException
public abstract void backupRemoteDb(Connection c, String dbName) throws SQLException
backupRemoteDb
in interface DbAdminHandler
SQLException
public abstract void createAccount(Connection c, String account, char[] password) throws SQLException
createAccount
in interface DbAdminHandler
SQLException
public abstract void dumpLocalDb(Connection c, File backupArchive) throws SQLException
dumpLocalDb
in interface DbAdminHandler
SQLException
public abstract void defrag(Connection c) throws SQLException
defrag
in interface DbAdminHandler
SQLException
public abstract String[] getAccounts(Connection c, boolean includeAdmin) throws SQLException
getAccounts
in interface DbAdminHandler
SQLException
public abstract String[] getProcedures(Connection c) throws SQLException
getProcedures
in interface DbAdminHandler
SQLException
public abstract String[] getRoles(Connection c, boolean includeAdmin) throws SQLException
getRoles
in interface DbAdminHandler
SQLException
public abstract DbSession[] getSessions(Connection c) throws SQLException
getSessions
in interface DbAdminHandler
SQLException
public abstract String[] getTables(Connection c) throws SQLException
getTables
in interface DbAdminHandler
SQLException
public abstract String[] getViews(Connection c) throws SQLException
getViews
in interface DbAdminHandler
SQLException
public abstract boolean grantRole(Connection c, String account, String role) throws SQLException
grantRole
in interface DbAdminHandler
SQLException
public final boolean hasRole(Connection c, String role) throws SQLException
hasRole
in interface DbAdminHandler
SQLException
public abstract boolean hasRole(Connection c, String account, String role) throws SQLException
hasRole
in interface DbAdminHandler
SQLException
public final boolean isAdmin(Connection c) throws SQLException
isAdmin
in interface DbAdminHandler
SQLException
public abstract boolean isAdmin(Connection c, String account) throws SQLException
isAdmin
in interface DbAdminHandler
SQLException
public final boolean isEnabled(Connection c) throws SQLException
isEnabled
in interface DbAdminHandler
SQLException
public abstract boolean isEnabled(Connection c, String account) throws SQLException
isEnabled
in interface DbAdminHandler
SQLException
public abstract boolean isLocalDbBackupSupported()
isLocalDbBackupSupported
in interface DbAdminHandler
public abstract boolean isLocalDbDumpSupported()
isLocalDbDumpSupported
in interface DbAdminHandler
public abstract boolean isRemoteDbBackupSupported()
isRemoteDbBackupSupported
in interface DbAdminHandler
public abstract void removeAccount(Connection c, String account) throws SQLException
removeAccount
in interface DbAdminHandler
SQLException
public abstract boolean revokeRole(Connection c, String account, String role) throws SQLException
revokeRole
in interface DbAdminHandler
SQLException
public abstract File selectLocalBackupFile(Component parentComponent, File defaultDir)
selectLocalBackupFile
in interface DbAdminHandler
public abstract File selectLocalDumpFile(Component parentComponent, File defaultDir)
selectLocalDumpFile
in interface DbAdminHandler
public abstract void setAdmin(Connection c, String account, boolean isAdmin) throws SQLException
setAdmin
in interface DbAdminHandler
SQLException
public abstract void setEnabled(Connection c, String account, boolean isEnabled) throws SQLException
setEnabled
in interface DbAdminHandler
SQLException
public abstract void updateAccount(Connection c, String account, char[] password) throws SQLException
updateAccount
in interface DbAdminHandler
SQLException
Copyright © 2015 OpenEstate. All rights reserved.