net.sourceforge.squirrel_sql.plugins.dataimport
Class DataImportPlugin

java.lang.Object
  extended by net.sourceforge.squirrel_sql.client.plugin.DefaultPlugin
      extended by net.sourceforge.squirrel_sql.client.plugin.DefaultSessionPlugin
          extended by net.sourceforge.squirrel_sql.plugins.dataimport.DataImportPlugin
All Implemented Interfaces:
IPlugin, ISessionPlugin

public class DataImportPlugin
extends DefaultSessionPlugin

Plugin to import data into a table

Author:
Thorsten Mürell

Field Summary
 
Fields inherited from class net.sourceforge.squirrel_sql.client.plugin.DefaultPlugin
_app, applicationFiles, fileWrapperFactory
 
Constructor Summary
DataImportPlugin()
           
 
Method Summary
 String getAuthor()
          Returns the authors name.
 String getChangeLogFileName()
           
 String getContributors()
           
 String getDescriptiveName()
          Return the descriptive name of this plugin.
 IGlobalPreferencesPanel[] getGlobalPreferencePanels()
          Create preferences panel for the Global Preferences dialog.
 String getHelpFileName()
           
 String getInternalName()
          Return the internal name of this plugin.
 String getLicenceFileName()
           
 String getVersion()
          Returns the current version of this plugin.
 void initialize()
          Initialize this plugin.
 void load(IApplication app)
           
 PluginSessionCallback sessionStarted(ISession session)
          Called when a session started.
 void setResourcesFactory(IPluginResourcesFactory resourcesFactory)
           
 void unload()
          Application is shutting down so save preferences.
 
Methods inherited from class net.sourceforge.squirrel_sql.client.plugin.DefaultSessionPlugin
allowsSessionStartedInBackground, getDefaultNodeExpander, getObjectTypes, getSessionPropertiesPanels, isPluginSession, registerSessionMenu, sessionCreated, sessionEnding
 
Methods inherited from class net.sourceforge.squirrel_sql.client.plugin.DefaultPlugin
aliasCopied, aliasRemoved, getAliasPropertiesPanelControllers, getApplication, getExternalService, getNewSessionPropertiesPanels, getPluginAppSettingsFolder, getPluginJarFilePath, getPluginUserSettingsFolder, getWebSite, setApplicationFiles, setFileWrapperFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.squirrel_sql.client.plugin.IPlugin
aliasCopied, aliasRemoved, getAliasPropertiesPanelControllers, getExternalService, getNewSessionPropertiesPanels, getPluginAppSettingsFolder, getPluginJarFilePath, getPluginUserSettingsFolder, getWebSite, setApplicationFiles, setFileWrapperFactory
 

Constructor Detail

DataImportPlugin

public DataImportPlugin()
Method Detail

setResourcesFactory

public void setResourcesFactory(IPluginResourcesFactory resourcesFactory)
Parameters:
resourcesFactory - the resourcesFactory to set

getInternalName

public String getInternalName()
Return the internal name of this plugin.

Returns:
the internal name of this plugin.

getDescriptiveName

public String getDescriptiveName()
Return the descriptive name of this plugin.

Returns:
the descriptive name of this plugin.

getVersion

public String getVersion()
Returns the current version of this plugin.

Returns:
the current version of this plugin.

getAuthor

public String getAuthor()
Returns the authors name.

Returns:
the authors name.

getContributors

public String getContributors()
Specified by:
getContributors in interface IPlugin
Overrides:
getContributors in class DefaultPlugin
See Also:
DefaultPlugin.getContributors()

getChangeLogFileName

public String getChangeLogFileName()
Specified by:
getChangeLogFileName in interface IPlugin
Overrides:
getChangeLogFileName in class DefaultPlugin
See Also:
DefaultPlugin.getChangeLogFileName()

getLicenceFileName

public String getLicenceFileName()
Specified by:
getLicenceFileName in interface IPlugin
Overrides:
getLicenceFileName in class DefaultPlugin
See Also:
DefaultPlugin.getLicenceFileName()

getHelpFileName

public String getHelpFileName()
Specified by:
getHelpFileName in interface IPlugin
Overrides:
getHelpFileName in class DefaultPlugin
See Also:
DefaultPlugin.getHelpFileName()

load

public void load(IApplication app)
          throws PluginException
Specified by:
load in interface IPlugin
Overrides:
load in class DefaultPlugin
Throws:
PluginException
See Also:
DefaultPlugin.load(net.sourceforge.squirrel_sql.client.IApplication)

initialize

public void initialize()
                throws PluginException
Initialize this plugin.

Specified by:
initialize in interface IPlugin
Overrides:
initialize in class DefaultPlugin
Throws:
PluginException

unload

public void unload()
Application is shutting down so save preferences.

Specified by:
unload in interface IPlugin
Overrides:
unload in class DefaultPlugin

sessionStarted

public PluginSessionCallback sessionStarted(ISession session)
Called when a session started.

Parameters:
session - The session that is starting.
Returns:
true to indicate that this plugin is applicable to passed session.

getGlobalPreferencePanels

public IGlobalPreferencesPanel[] getGlobalPreferencePanels()
Create preferences panel for the Global Preferences dialog.

Specified by:
getGlobalPreferencePanels in interface IPlugin
Overrides:
getGlobalPreferencePanels in class DefaultPlugin
Returns:
Preferences panel.


Copyright © 2001-2011. All Rights Reserved.