public interface DbAdminHandler
void backupLocalDb(Connection c, File backupArchive) throws SQLException
SQLException
void backupRemoteDb(Connection c, String dbName) throws SQLException
SQLException
void createAccount(Connection c, String account, char[] password) throws SQLException
SQLException
void defrag(Connection c) throws SQLException
SQLException
void dumpLocalDb(Connection c, File backupArchive) throws SQLException
SQLException
String[] getAccounts(Connection c, boolean includeAdmin) throws SQLException
SQLException
String[] getProcedures(Connection c) throws SQLException
SQLException
String[] getRoles(Connection c, boolean includeAdmin) throws SQLException
SQLException
DbSession[] getSessions(Connection c) throws SQLException
SQLException
String[] getTables(Connection c) throws SQLException
SQLException
String[] getViews(Connection c) throws SQLException
SQLException
boolean grantRole(Connection c, String account, String role) throws SQLException
SQLException
boolean hasRole(Connection c, String role) throws SQLException
SQLException
boolean hasRole(Connection c, String account, String role) throws SQLException
SQLException
boolean isAdmin(Connection c) throws SQLException
SQLException
boolean isAdmin(Connection c, String account) throws SQLException
SQLException
boolean isEnabled(Connection c) throws SQLException
SQLException
boolean isEnabled(Connection c, String account) throws SQLException
SQLException
boolean isLocalDbBackupSupported()
boolean isLocalDbDumpSupported()
boolean isRemoteDbBackupSupported()
void removeAccount(Connection c, String account) throws SQLException
SQLException
boolean revokeRole(Connection c, String account, String role) throws SQLException
SQLException
void setAdmin(Connection c, String account, boolean isAdmin) throws SQLException
SQLException
void setEnabled(Connection c, String account, boolean isEnabled) throws SQLException
SQLException
void updateAccount(Connection c, String account, char[] password) throws SQLException
SQLException
Copyright © 2015 OpenEstate. All rights reserved.