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