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