Package com.openindex.openestate.tool.db
Class DbPluginHandlerImpl
- java.lang.Object
-
- com.openindex.openestate.tool.db.DbPluginHandlerImpl
-
- All Implemented Interfaces:
DbPluginHandler
- Direct Known Subclasses:
HSqlDbPluginHandler
public abstract class DbPluginHandlerImpl extends Object implements DbPluginHandler
DbPluginHandler.- Author:
- Andreas Rudolph
-
-
Constructor Summary
Constructors Constructor Description DbPluginHandlerImpl()
-
Method Summary
-
-
-
Method Detail
-
downloadPluginFile
public abstract void downloadPluginFile(Connection c, long fileId, OutputStream output) throws SQLException, IOException
- Specified by:
downloadPluginFile
in interfaceDbPluginHandler
- Throws:
SQLException
IOException
-
getPlugin
public final DbPlugin getPlugin(Connection c, long id) throws SQLException
- Specified by:
getPlugin
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPlugin
public final DbPlugin getPlugin(Connection c, String name) throws SQLException
- Specified by:
getPlugin
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPlugins
public final DbPlugin[] getPlugins(Connection c) throws SQLException
- Specified by:
getPlugins
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPlugins
public abstract DbPlugin[] getPlugins(Connection c, Boolean enabled) throws SQLException
- Specified by:
getPlugins
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPlugins
public abstract DbPlugin[] getPlugins(Connection c, long[] ids) throws SQLException
- Specified by:
getPlugins
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPlugins
public abstract DbPlugin[] getPlugins(Connection c, String[] names) throws SQLException
- Specified by:
getPlugins
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginId
public final long getPluginId(Connection c, String name) throws SQLException
- Specified by:
getPluginId
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginIds
public final long[] getPluginIds(Connection c) throws SQLException
- Specified by:
getPluginIds
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginIds
public abstract long[] getPluginIds(Connection c, Boolean enabled) throws SQLException
- Specified by:
getPluginIds
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginIds
public abstract long[] getPluginIds(Connection c, String[] names) throws SQLException
- Specified by:
getPluginIds
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginFile
public final DbPluginFile getPluginFile(Connection c, long pluginId, String fileNames) throws SQLException
- Specified by:
getPluginFile
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginFile
public final DbPluginFile getPluginFile(Connection c, String pluginName, String fileNames) throws SQLException
- Specified by:
getPluginFile
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginFiles
public final DbPluginFile[] getPluginFiles(Connection c, long pluginId) throws SQLException
- Specified by:
getPluginFiles
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginFiles
public final DbPluginFile[] getPluginFiles(Connection c, String pluginName) throws SQLException
- Specified by:
getPluginFiles
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginFiles
public abstract DbPluginFile[] getPluginFiles(Connection c, long pluginId, String[] fileNames) throws SQLException
- Specified by:
getPluginFiles
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginFiles
public abstract DbPluginFile[] getPluginFiles(Connection c, String pluginName, String[] fileNames) throws SQLException
- Specified by:
getPluginFiles
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginFileId
public final long getPluginFileId(Connection c, long pluginId, String fileName) throws SQLException
- Specified by:
getPluginFileId
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginFileIds
public final long[] getPluginFileIds(Connection c) throws SQLException
- Specified by:
getPluginFileIds
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginFileIds
public final long[] getPluginFileIds(Connection c, long pluginId) throws SQLException
- Specified by:
getPluginFileIds
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginFileIds
public abstract long[] getPluginFileIds(Connection c, long pluginId, String[] fileNames) throws SQLException
- Specified by:
getPluginFileIds
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginFileNames
public abstract String[] getPluginFileNames(Connection c, long pluginId) throws SQLException
- Specified by:
getPluginFileNames
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginFileNames
public abstract String[] getPluginFileNames(Connection c, String pluginName) throws SQLException
- Specified by:
getPluginFileNames
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginNames
public final String[] getPluginNames(Connection c) throws SQLException
- Specified by:
getPluginNames
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginNames
public abstract String[] getPluginNames(Connection c, Boolean enabled) throws SQLException
- Specified by:
getPluginNames
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginRelation
public final DbPluginRelation getPluginRelation(Connection c, String name) throws SQLException
- Specified by:
getPluginRelation
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginRelations
public abstract DbPluginRelation[] getPluginRelations(Connection c, String[] names) throws SQLException
- Specified by:
getPluginRelations
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginRelations
public final DbPluginRelation[] getPluginRelations(Connection c, long pluginId) throws SQLException
- Specified by:
getPluginRelations
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginRelations
public abstract DbPluginRelation[] getPluginRelations(Connection c, long[] pluginIds) throws SQLException
- Specified by:
getPluginRelations
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginRelationUninstallQuery
public abstract String getPluginRelationUninstallQuery(Connection c, String name) throws SQLException
- Specified by:
getPluginRelationUninstallQuery
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginSettings
public abstract Map<String,String> getPluginSettings(Connection c, long id, String prefix) throws SQLException
- Specified by:
getPluginSettings
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginSettings
public abstract Map<String,String> getPluginSettings(Connection c, String name, String prefix) throws SQLException
- Specified by:
getPluginSettings
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginUninstallQuery
public abstract String getPluginUninstallQuery(Connection c, long pluginId) throws SQLException
- Specified by:
getPluginUninstallQuery
in interfaceDbPluginHandler
- Throws:
SQLException
-
getPluginUninstallQuery
public abstract String getPluginUninstallQuery(Connection c, String pluginName) throws SQLException
- Specified by:
getPluginUninstallQuery
in interfaceDbPluginHandler
- Throws:
SQLException
-
loadPluginPermissions
public final void loadPluginPermissions(Connection c, DbUserHandler userHandler, DbPlugin plugin) throws SQLException
- Specified by:
loadPluginPermissions
in interfaceDbPluginHandler
- Throws:
SQLException
-
loadPluginSettings
public final void loadPluginSettings(Connection c, DbPlugin plugin) throws SQLException
- Specified by:
loadPluginSettings
in interfaceDbPluginHandler
- Throws:
SQLException
-
loadPluginSettings
public abstract void loadPluginSettings(Connection c, DbPlugin[] plugins) throws SQLException
- Specified by:
loadPluginSettings
in interfaceDbPluginHandler
- Throws:
SQLException
-
removePlugin
public final void removePlugin(Connection c, long id) throws SQLException
- Specified by:
removePlugin
in interfaceDbPluginHandler
- Throws:
SQLException
-
removePlugin
public final void removePlugin(Connection c, String name) throws SQLException
- Specified by:
removePlugin
in interfaceDbPluginHandler
- Throws:
SQLException
-
removePlugins
public final void removePlugins(Connection c, String[] names) throws SQLException
- Specified by:
removePlugins
in interfaceDbPluginHandler
- Throws:
SQLException
-
removePlugins
public abstract void removePlugins(Connection c, long[] ids) throws SQLException
- Specified by:
removePlugins
in interfaceDbPluginHandler
- Throws:
SQLException
-
removePluginFile
public final void removePluginFile(Connection c, long pluginId, String fileName) throws SQLException
- Specified by:
removePluginFile
in interfaceDbPluginHandler
- Throws:
SQLException
-
removePluginFile
public final void removePluginFile(Connection c, String pluginName, String fileName) throws SQLException
- Specified by:
removePluginFile
in interfaceDbPluginHandler
- Throws:
SQLException
-
removePluginFile
public final void removePluginFile(Connection c, long id) throws SQLException
- Specified by:
removePluginFile
in interfaceDbPluginHandler
- Throws:
SQLException
-
removePluginFiles
public final void removePluginFiles(Connection c, long pluginId, String[] fileNames) throws SQLException
- Specified by:
removePluginFiles
in interfaceDbPluginHandler
- Throws:
SQLException
-
removePluginFiles
public final void removePluginFiles(Connection c, String pluginName, String[] fileNames) throws SQLException
- Specified by:
removePluginFiles
in interfaceDbPluginHandler
- Throws:
SQLException
-
removePluginFiles
public abstract void removePluginFiles(Connection c, long[] ids) throws SQLException
- Specified by:
removePluginFiles
in interfaceDbPluginHandler
- Throws:
SQLException
-
removePluginRelation
public final void removePluginRelation(Connection c, String name) throws SQLException
- Specified by:
removePluginRelation
in interfaceDbPluginHandler
- Throws:
SQLException
-
removePluginRelations
public abstract void removePluginRelations(Connection c, String[] names) throws SQLException
- Specified by:
removePluginRelations
in interfaceDbPluginHandler
- Throws:
SQLException
-
savePlugin
public final void savePlugin(Connection c, DbPlugin plugin) throws SQLException
- Specified by:
savePlugin
in interfaceDbPluginHandler
- Throws:
SQLException
-
savePlugin
public abstract void savePlugin(Connection c, DbUserHandler userHandler, DbPlugin plugin) throws SQLException
- Specified by:
savePlugin
in interfaceDbPluginHandler
- Throws:
SQLException
-
savePluginFile
public abstract void savePluginFile(Connection c, DbPluginFile file, File content) throws SQLException, IOException
- Specified by:
savePluginFile
in interfaceDbPluginHandler
- Throws:
SQLException
IOException
-
savePluginRelation
public abstract void savePluginRelation(Connection c, DbPluginRelation relation) throws SQLException, IOException
- Specified by:
savePluginRelation
in interfaceDbPluginHandler
- Throws:
SQLException
IOException
-
setPluginEnabled
public final void setPluginEnabled(Connection c, long id, boolean enabled) throws SQLException
- Specified by:
setPluginEnabled
in interfaceDbPluginHandler
- Throws:
SQLException
-
setPluginEnabled
public final void setPluginEnabled(Connection c, String name, boolean enabled) throws SQLException
- Specified by:
setPluginEnabled
in interfaceDbPluginHandler
- Throws:
SQLException
-
setPluginsEnabled
public final void setPluginsEnabled(Connection c, String[] names, boolean enabled) throws SQLException
- Specified by:
setPluginsEnabled
in interfaceDbPluginHandler
- Throws:
SQLException
-
setPluginsEnabled
public abstract void setPluginsEnabled(Connection c, long[] ids, boolean enabled) throws SQLException
- Specified by:
setPluginsEnabled
in interfaceDbPluginHandler
- Throws:
SQLException
-
setPluginRelationUninstallQuery
public abstract void setPluginRelationUninstallQuery(Connection c, String name, String uninstallQuery) throws SQLException
- Specified by:
setPluginRelationUninstallQuery
in interfaceDbPluginHandler
- Throws:
SQLException
-
setPluginUninstallQuery
public final void setPluginUninstallQuery(Connection c, String name, String uninstallQuery) throws SQLException
- Specified by:
setPluginUninstallQuery
in interfaceDbPluginHandler
- Throws:
SQLException
-
setPluginUninstallQuery
public abstract void setPluginUninstallQuery(Connection c, long id, String uninstallQuery) throws SQLException
- Specified by:
setPluginUninstallQuery
in interfaceDbPluginHandler
- Throws:
SQLException
-
-