public class HSqlDbAdminHandler extends DbAdminHandlerImpl
| Constructor and Description |
|---|
HSqlDbAdminHandler() |
hasRole, isAdmin, isEnabledpublic final void backupLocalDb(Connection c, File backupArchive) throws SQLException
backupLocalDb in interface DbAdminHandlerbackupLocalDb in class DbAdminHandlerImplSQLExceptionpublic final void backupRemoteDb(Connection c, String dbName) throws SQLException
backupRemoteDb in interface DbAdminHandlerbackupRemoteDb in class DbAdminHandlerImplSQLExceptionpublic final void createAccount(Connection c, String account, char[] password) throws SQLException
createAccount in interface DbAdminHandlercreateAccount in class DbAdminHandlerImplSQLExceptionpublic final void defrag(Connection c) throws SQLException
defrag in interface DbAdminHandlerdefrag in class DbAdminHandlerImplSQLExceptionpublic final void dumpLocalDb(Connection c, File backupArchive) throws SQLException
dumpLocalDb in interface DbAdminHandlerdumpLocalDb in class DbAdminHandlerImplSQLExceptionpublic final String[] getAccounts(Connection c, boolean includeAdmin) throws SQLException
getAccounts in interface DbAdminHandlergetAccounts in class DbAdminHandlerImplSQLExceptionpublic final String[] getProcedures(Connection c) throws SQLException
getProcedures in interface DbAdminHandlergetProcedures in class DbAdminHandlerImplSQLExceptionpublic final String[] getRoles(Connection c, boolean includeAdmin) throws SQLException
getRoles in interface DbAdminHandlergetRoles in class DbAdminHandlerImplSQLExceptionpublic final DbSession[] getSessions(Connection c) throws SQLException
getSessions in interface DbAdminHandlergetSessions in class DbAdminHandlerImplSQLExceptionpublic final String[] getTables(Connection c) throws SQLException
getTables in interface DbAdminHandlergetTables in class DbAdminHandlerImplSQLExceptionpublic final String[] getViews(Connection c) throws SQLException
getViews in interface DbAdminHandlergetViews in class DbAdminHandlerImplSQLExceptionpublic boolean grantRole(Connection c, String account, String role) throws SQLException
grantRole in interface DbAdminHandlergrantRole in class DbAdminHandlerImplSQLExceptionpublic final boolean hasRole(Connection c, String account, String role) throws SQLException
hasRole in interface DbAdminHandlerhasRole in class DbAdminHandlerImplSQLExceptionpublic final boolean isAdmin(Connection c, String account) throws SQLException
isAdmin in interface DbAdminHandlerisAdmin in class DbAdminHandlerImplSQLExceptionpublic final boolean isEnabled(Connection c, String account) throws SQLException
isEnabled in interface DbAdminHandlerisEnabled in class DbAdminHandlerImplSQLExceptionpublic final boolean isLocalDbBackupSupported()
isLocalDbBackupSupported in interface DbAdminHandlerisLocalDbBackupSupported in class DbAdminHandlerImplpublic boolean isLocalDbDumpSupported()
isLocalDbDumpSupported in interface DbAdminHandlerisLocalDbDumpSupported in class DbAdminHandlerImplpublic final boolean isRemoteDbBackupSupported()
isRemoteDbBackupSupported in interface DbAdminHandlerisRemoteDbBackupSupported in class DbAdminHandlerImplpublic final void removeAccount(Connection c, String account) throws SQLException
removeAccount in interface DbAdminHandlerremoveAccount in class DbAdminHandlerImplSQLExceptionpublic final boolean revokeRole(Connection c, String account, String role) throws SQLException
revokeRole in interface DbAdminHandlerrevokeRole in class DbAdminHandlerImplSQLExceptionpublic final File selectLocalBackupFile(Component parentComponent, File defaultDir)
selectLocalBackupFile in interface DbAdminHandlerselectLocalBackupFile in class DbAdminHandlerImplpublic final File selectLocalDumpFile(Component parentComponent, File defaultDir)
selectLocalDumpFile in interface DbAdminHandlerselectLocalDumpFile in class DbAdminHandlerImplpublic final void setAdmin(Connection c, String account, boolean isAdmin) throws SQLException
setAdmin in interface DbAdminHandlersetAdmin in class DbAdminHandlerImplSQLExceptionpublic final void setEnabled(Connection c, String account, boolean isEnabled) throws SQLException
setEnabled in interface DbAdminHandlersetEnabled in class DbAdminHandlerImplSQLExceptionpublic final void updateAccount(Connection c, String account, char[] password) throws SQLException
updateAccount in interface DbAdminHandlerupdateAccount in class DbAdminHandlerImplSQLExceptionCopyright © 2015 OpenEstate. All rights reserved.