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