test_class.file: sql12/plugins/db2/src/test/java/net/sourceforge/squirrel_sql/plugins/db2/DB2PluginTest.java
test_class.identifier: DB2PluginTest
test_class.interfaces: implements DatabaseProductVersionData
test_class.superclass: extends AbstractSessionPluginTest
test_case.body: @Test
  	public void testSessionStarted() throws SQLException
  	{
  		when(mockDatabaseMetaData.getDriverName()).thenReturn(DB2Plugin.JCC_DRIVER_NAME);
  		PluginSessionCallback result = ((DB2Plugin) super.classUnderTest).sessionStarted(mockSession);
  		assertNotNull(result);
  	}
test_case.class_method_signature: DB2PluginTest.testSessionStarted()
test_case.full_signature: @Test public void testSessionStarted()
test_case.identifier: testSessionStarted
test_case.invocations: thenReturn when getDriverName sessionStarted assertNotNull
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSessionStarted()
focal_class.declarator: JCC_DRIVER_NAME = "IBM DB2 JDBC Universal Driver Architecture"
focal_class.modifier: public static final
focal_class.original_string: public static final String JCC_DRIVER_NAME = "IBM DB2 JDBC Universal Driver Architecture";
focal_class.type: String
focal_class.var_name: JCC_DRIVER_NAME
focal_class.declarator: OS_400_PRODUCT_NAME = "DB2 UDB for AS/400"
focal_class.modifier: private static final
focal_class.original_string: private static final String OS_400_PRODUCT_NAME = "DB2 UDB for AS/400";
focal_class.type: String
focal_class.var_name: OS_400_PRODUCT_NAME
focal_class.declarator: s_stringMgr = StringManagerFactory.getStringManager(DB2Plugin.class)
focal_class.modifier: private static final
focal_class.original_string: private static final StringManager s_stringMgr = StringManagerFactory.getStringManager(DB2Plugin.class);
focal_class.type: StringManager
focal_class.var_name: s_stringMgr
focal_class.declarator: s_log = LoggerController.createLogger(DB2Plugin.class)
focal_class.modifier: private final static
focal_class.original_string: private final static ILogger s_log = LoggerController.createLogger(DB2Plugin.class);
focal_class.type: ILogger
focal_class.var_name: s_log
focal_class.declarator: _treeAPI
focal_class.modifier: private
focal_class.original_string: private IObjectTreeAPI _treeAPI;
focal_class.type: IObjectTreeAPI
focal_class.var_name: _treeAPI
focal_class.file: sql12/plugins/db2/src/main/java/net/sourceforge/squirrel_sql/plugins/db2/DB2Plugin.java
focal_class.identifier: DB2Plugin
focal_class.class_method_signature: DB2Plugin.getInternalName()
focal_class.full_signature: public String getInternalName()
focal_class.identifier: getInternalName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getInternalName()
focal_class.class_method_signature: DB2Plugin.getDescriptiveName()
focal_class.full_signature: public String getDescriptiveName()
focal_class.identifier: getDescriptiveName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getDescriptiveName()
focal_class.class_method_signature: DB2Plugin.getVersion()
focal_class.full_signature: public String getVersion()
focal_class.identifier: getVersion
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getVersion()
focal_class.class_method_signature: DB2Plugin.getAuthor()
focal_class.full_signature: public String getAuthor()
focal_class.identifier: getAuthor
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getAuthor()
focal_class.class_method_signature: DB2Plugin.getContributors()
focal_class.full_signature: public String getContributors()
focal_class.identifier: getContributors
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getContributors()
focal_class.class_method_signature: DB2Plugin.getChangeLogFileName()
focal_class.full_signature: public String getChangeLogFileName()
focal_class.identifier: getChangeLogFileName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getChangeLogFileName()
focal_class.class_method_signature: DB2Plugin.getHelpFileName()
focal_class.full_signature: public String getHelpFileName()
focal_class.identifier: getHelpFileName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getHelpFileName()
focal_class.class_method_signature: DB2Plugin.getLicenceFileName()
focal_class.full_signature: public String getLicenceFileName()
focal_class.identifier: getLicenceFileName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getLicenceFileName()
focal_class.class_method_signature: DB2Plugin.load(IApplication app)
focal_class.full_signature: public synchronized void load(IApplication app)
focal_class.identifier: load
focal_class.modifiers: public synchronized
focal_class.parameters: (IApplication app)
focal_class.return: void
focal_class.signature: void load(IApplication app)
focal_class.class_method_signature: DB2Plugin.initialize()
focal_class.full_signature: public synchronized void initialize()
focal_class.identifier: initialize
focal_class.modifiers: public synchronized
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initialize()
focal_class.class_method_signature: DB2Plugin.unload()
focal_class.full_signature: public void unload()
focal_class.identifier: unload
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void unload()
focal_class.class_method_signature: DB2Plugin.allowsSessionStartedInBackground()
focal_class.full_signature: public boolean allowsSessionStartedInBackground()
focal_class.identifier: allowsSessionStartedInBackground
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean allowsSessionStartedInBackground()
focal_class.class_method_signature: DB2Plugin.sessionStarted(final ISession session)
focal_class.full_signature: public PluginSessionCallback sessionStarted(final ISession session)
focal_class.identifier: sessionStarted
focal_class.modifiers: public
focal_class.parameters: (final ISession session)
focal_class.return: PluginSessionCallback
focal_class.signature: PluginSessionCallback sessionStarted(final ISession session)
focal_class.class_method_signature: DB2Plugin.isPluginSession(ISession session)
focal_class.full_signature: @Override protected boolean isPluginSession(ISession session)
focal_class.identifier: isPluginSession
focal_class.modifiers: @Override protected
focal_class.parameters: (ISession session)
focal_class.return: boolean
focal_class.signature: boolean isPluginSession(ISession session)
focal_class.class_method_signature: DB2Plugin.updateTreeApi(ISession session)
focal_class.full_signature: private void updateTreeApi(ISession session)
focal_class.identifier: updateTreeApi
focal_class.modifiers: private
focal_class.parameters: (ISession session)
focal_class.return: void
focal_class.signature: void updateTreeApi(ISession session)
focal_class.class_method_signature: DB2Plugin.isOS400(ISession session)
focal_class.full_signature: private boolean isOS400(ISession session)
focal_class.identifier: isOS400
focal_class.modifiers: private
focal_class.parameters: (ISession session)
focal_class.return: boolean
focal_class.signature: boolean isOS400(ISession session)
focal_class.superclass: extends DefaultSessionPlugin
focal_method.body: public PluginSessionCallback sessionStarted(final ISession session)
  	{
  
  		if (!isPluginSession(session))
  		{
  			return null;
  		}
  		GUIUtils.processOnSwingEventThread(new Runnable()
  		{
  			public void run()
  			{
  				updateTreeApi(session);
  			}
  		});
  
  		// Install DB2JCCExceptionFormatter iff we're using the JCC driver
  		try
  		{
  			if (JCC_DRIVER_NAME.equals(session.getMetaData().getJDBCMetaData().getDriverName()))
  			{
  				session.setExceptionFormatter(new DB2JCCExceptionFormatter());
  			}
  		} catch (SQLException e)
  		{
  			s_log.error("Problem installing exception formatter: " + e.getMessage());
  		}
  
  		return new PluginSessionCallbackAdaptor(this);
  	}
focal_method.class_method_signature: DB2Plugin.sessionStarted(final ISession session)
focal_method.full_signature: public PluginSessionCallback sessionStarted(final ISession session)
focal_method.identifier: sessionStarted
focal_method.invocations: isPluginSession processOnSwingEventThread updateTreeApi equals getDriverName getJDBCMetaData getMetaData setExceptionFormatter error getMessage
focal_method.modifiers: public
focal_method.parameters: (final ISession session)
focal_method.return: PluginSessionCallback
focal_method.signature: PluginSessionCallback sessionStarted(final ISession session)