Class HSqlDbAdminHandler
- java.lang.Object
-
- com.openindex.openestate.tool.db.DbAdminHandlerImpl
-
- com.openindex.openestate.tool.db.hsql.HSqlDbAdminHandler
-
- All Implemented Interfaces:
DbAdminHandler
public class HSqlDbAdminHandler extends DbAdminHandlerImpl
HSqlDbAdminHandler.- Author:
- Andreas Rudolph
-
-
Constructor Summary
Constructors Constructor Description HSqlDbAdminHandler()
-
Method Summary
-
Methods inherited from class com.openindex.openestate.tool.db.DbAdminHandlerImpl
hasRole, isAdmin, isEnabled
-
-
-
-
Method Detail
-
backupLocalDb
public final void backupLocalDb(Connection c, File backupArchive) throws SQLException
- Specified by:
backupLocalDbin interfaceDbAdminHandler- Specified by:
backupLocalDbin classDbAdminHandlerImpl- Throws:
SQLException
-
backupRemoteDb
public final void backupRemoteDb(Connection c, String dbName) throws SQLException
- Specified by:
backupRemoteDbin interfaceDbAdminHandler- Specified by:
backupRemoteDbin classDbAdminHandlerImpl- Throws:
SQLException
-
createAccount
public final void createAccount(Connection c, String account, char[] password) throws SQLException
- Specified by:
createAccountin interfaceDbAdminHandler- Specified by:
createAccountin classDbAdminHandlerImpl- Throws:
SQLException
-
defrag
public final void defrag(Connection c) throws SQLException
- Specified by:
defragin interfaceDbAdminHandler- Specified by:
defragin classDbAdminHandlerImpl- Throws:
SQLException
-
dumpLocalDb
public final void dumpLocalDb(Connection c, File backupArchive) throws SQLException
- Specified by:
dumpLocalDbin interfaceDbAdminHandler- Specified by:
dumpLocalDbin classDbAdminHandlerImpl- Throws:
SQLException
-
getAccounts
public final String[] getAccounts(Connection c, boolean includeAdmin) throws SQLException
- Specified by:
getAccountsin interfaceDbAdminHandler- Specified by:
getAccountsin classDbAdminHandlerImpl- Throws:
SQLException
-
getProcedures
public final String[] getProcedures(Connection c) throws SQLException
- Specified by:
getProceduresin interfaceDbAdminHandler- Specified by:
getProceduresin classDbAdminHandlerImpl- Throws:
SQLException
-
getRoles
public final String[] getRoles(Connection c, boolean includeAdmin) throws SQLException
- Specified by:
getRolesin interfaceDbAdminHandler- Specified by:
getRolesin classDbAdminHandlerImpl- Throws:
SQLException
-
getSessions
public final DbSession[] getSessions(Connection c) throws SQLException
- Specified by:
getSessionsin interfaceDbAdminHandler- Specified by:
getSessionsin classDbAdminHandlerImpl- Throws:
SQLException
-
getTables
public final String[] getTables(Connection c) throws SQLException
- Specified by:
getTablesin interfaceDbAdminHandler- Specified by:
getTablesin classDbAdminHandlerImpl- Throws:
SQLException
-
getViews
public final String[] getViews(Connection c) throws SQLException
- Specified by:
getViewsin interfaceDbAdminHandler- Specified by:
getViewsin classDbAdminHandlerImpl- Throws:
SQLException
-
grantRole
public boolean grantRole(Connection c, String account, String role) throws SQLException
- Specified by:
grantRolein interfaceDbAdminHandler- Specified by:
grantRolein classDbAdminHandlerImpl- Throws:
SQLException
-
hasRole
public final boolean hasRole(Connection c, String account, String role) throws SQLException
- Specified by:
hasRolein interfaceDbAdminHandler- Specified by:
hasRolein classDbAdminHandlerImpl- Throws:
SQLException
-
isAdmin
public final boolean isAdmin(Connection c, String account) throws SQLException
- Specified by:
isAdminin interfaceDbAdminHandler- Specified by:
isAdminin classDbAdminHandlerImpl- Throws:
SQLException
-
isEnabled
public final boolean isEnabled(Connection c, String account) throws SQLException
- Specified by:
isEnabledin interfaceDbAdminHandler- Specified by:
isEnabledin classDbAdminHandlerImpl- Throws:
SQLException
-
isLocalDbBackupSupported
public final boolean isLocalDbBackupSupported()
- Specified by:
isLocalDbBackupSupportedin interfaceDbAdminHandler- Specified by:
isLocalDbBackupSupportedin classDbAdminHandlerImpl
-
isLocalDbDumpSupported
public boolean isLocalDbDumpSupported()
- Specified by:
isLocalDbDumpSupportedin interfaceDbAdminHandler- Specified by:
isLocalDbDumpSupportedin classDbAdminHandlerImpl
-
isRemoteDbBackupSupported
public final boolean isRemoteDbBackupSupported()
- Specified by:
isRemoteDbBackupSupportedin interfaceDbAdminHandler- Specified by:
isRemoteDbBackupSupportedin classDbAdminHandlerImpl
-
removeAccount
public final void removeAccount(Connection c, String account) throws SQLException
- Specified by:
removeAccountin interfaceDbAdminHandler- Specified by:
removeAccountin classDbAdminHandlerImpl- Throws:
SQLException
-
revokeRole
public final boolean revokeRole(Connection c, String account, String role) throws SQLException
- Specified by:
revokeRolein interfaceDbAdminHandler- Specified by:
revokeRolein classDbAdminHandlerImpl- Throws:
SQLException
-
selectLocalBackupFile
public final File selectLocalBackupFile(Component parentComponent, File defaultDir)
- Specified by:
selectLocalBackupFilein interfaceDbAdminHandler- Specified by:
selectLocalBackupFilein classDbAdminHandlerImpl
-
selectLocalDumpFile
public final File selectLocalDumpFile(Component parentComponent, File defaultDir)
- Specified by:
selectLocalDumpFilein interfaceDbAdminHandler- Specified by:
selectLocalDumpFilein classDbAdminHandlerImpl
-
setAdmin
public final void setAdmin(Connection c, String account, boolean isAdmin) throws SQLException
- Specified by:
setAdminin interfaceDbAdminHandler- Specified by:
setAdminin classDbAdminHandlerImpl- Throws:
SQLException
-
setEnabled
public final void setEnabled(Connection c, String account, boolean isEnabled) throws SQLException
- Specified by:
setEnabledin interfaceDbAdminHandler- Specified by:
setEnabledin classDbAdminHandlerImpl- Throws:
SQLException
-
updateAccount
public final void updateAccount(Connection c, String account, char[] password) throws SQLException
- Specified by:
updateAccountin interfaceDbAdminHandler- Specified by:
updateAccountin classDbAdminHandlerImpl- Throws:
SQLException
-
-