Package net.sourceforge.squirrel_sql.plugins.db2.exp

Examples of net.sourceforge.squirrel_sql.plugins.db2.exp.SchemaExpanderTest


      }
      catch (final Exception e)
      {
        if (DialectFactory.isDB2(session.getMetaData()))
        {
          final DB2JCCExceptionFormatter formatter = new DB2JCCExceptionFormatter();
          System.err.println("Formatted message: " + formatter.format(e));
        }
        if (DialectFactory.isInformix(session.getMetaData()))
        {
          final InformixExceptionFormatter formatter = new InformixExceptionFormatter(session);
          System.err.println("Formatted message: " + formatter.format(e));
        }
        throw e;
      }
      finally
      {
View Full Code Here


    // Expanders - trigger and index expanders are added inside the table
    // expander
    TableWithChildNodesExpander tableExpander = new TableWithChildNodesExpander();

    // tableExpander.setTableIndexExtractor(extractor);
    ITableIndexExtractor indexExtractor = new DB2TableIndexExtractorImpl(isOS400);
    tableExpander.setTableIndexExtractor(indexExtractor);

    ITableTriggerExtractor triggerExtractor = new DB2TableTriggerExtractorImpl(isOS400);
    tableExpander.setTableTriggerExtractor(triggerExtractor);
View Full Code Here

    // tableExpander.setTableIndexExtractor(extractor);
    ITableIndexExtractor indexExtractor = new DB2TableIndexExtractorImpl(isOS400);
    tableExpander.setTableIndexExtractor(indexExtractor);

    ITableTriggerExtractor triggerExtractor = new DB2TableTriggerExtractorImpl(isOS400);
    tableExpander.setTableTriggerExtractor(triggerExtractor);

    _treeAPI.addExpander(DatabaseObjectType.TABLE, tableExpander);

    _treeAPI.addDetailTab(DatabaseObjectType.TRIGGER, new TriggerDetailsTab());
View Full Code Here

    _treeAPI.addDetailTab(DatabaseObjectType.TABLE, new TableSourceTab("Show MQT Source", stmtSep, isOS400));

    // Expanders - trigger and index expanders are added inside the table
    // expander
    _treeAPI.addExpander(DatabaseObjectType.SCHEMA, new SchemaExpander(isOS400));

    // Expanders - trigger and index expanders are added inside the table
    // expander
    TableWithChildNodesExpander tableExpander = new TableWithChildNodesExpander();
View Full Code Here

    _treeAPI.addDetailTab(DatabaseObjectType.VIEW, new ViewSourceTabi18n.SHOW_VIEW_SOURCE,
                                                stmtSep,
                                                isOS400));

    _treeAPI.addDetailTab(DatabaseObjectType.INDEX, new DatabaseObjectInfoTab());
    _treeAPI.addDetailTab(DatabaseObjectType.INDEX, new IndexDetailsTab(isOS400));

    _treeAPI.addDetailTab(DatabaseObjectType.TRIGGER, new DatabaseObjectInfoTab());
    _treeAPI.addDetailTab(DatabaseObjectType.TRIGGER_TYPE_DBO, new DatabaseObjectInfoTab());

    _treeAPI.addDetailTab(DatabaseObjectType.SEQUENCE, new DatabaseObjectInfoTab());
View Full Code Here

  {
    String stmtSep = session.getQueryTokenizer().getSQLStatementSeparator();
    boolean isOS400 = isOS400(session);

    _treeAPI = session.getSessionInternalFrame().getObjectTreeAPI();
    _treeAPI.addDetailTab(DatabaseObjectType.PROCEDURE, new ProcedureSourceTab(i18n.SHOW_PROCEDURE_SOURCE,
                                                      isOS400,
                                                      stmtSep));
    _treeAPI.addDetailTab(DatabaseObjectType.VIEW, new ViewSourceTabi18n.SHOW_VIEW_SOURCE,
                                                stmtSep,
                                                isOS400));
View Full Code Here

    _treeAPI.addDetailTab(DatabaseObjectType.TRIGGER, new DatabaseObjectInfoTab());
    _treeAPI.addDetailTab(DatabaseObjectType.TRIGGER_TYPE_DBO, new DatabaseObjectInfoTab());

    _treeAPI.addDetailTab(DatabaseObjectType.SEQUENCE, new DatabaseObjectInfoTab());
    _treeAPI.addDetailTab(DatabaseObjectType.SEQUENCE, new SequenceDetailsTab(isOS400));

    _treeAPI.addDetailTab(DatabaseObjectType.UDF, new DatabaseObjectInfoTab());
    _treeAPI.addDetailTab(DatabaseObjectType.UDF, new UDFSourceTab(i18n.SHOW_UDF_SOURCE, stmtSep, isOS400));
    _treeAPI.addDetailTab(DatabaseObjectType.UDF, new UDFDetailsTab(isOS400));
View Full Code Here

    _treeAPI.addDetailTab(DatabaseObjectType.UDF, new DatabaseObjectInfoTab());
    _treeAPI.addDetailTab(DatabaseObjectType.UDF, new UDFSourceTab(i18n.SHOW_UDF_SOURCE, stmtSep, isOS400));
    _treeAPI.addDetailTab(DatabaseObjectType.UDF, new UDFDetailsTab(isOS400));

    _treeAPI.addDetailTab(DatabaseObjectType.TABLE, new TableSourceTab("Show MQT Source", stmtSep, isOS400));

    // Expanders - trigger and index expanders are added inside the table
    // expander
    _treeAPI.addExpander(DatabaseObjectType.SCHEMA, new SchemaExpander(isOS400));
View Full Code Here

    ITableTriggerExtractor triggerExtractor = new DB2TableTriggerExtractorImpl(isOS400);
    tableExpander.setTableTriggerExtractor(triggerExtractor);

    _treeAPI.addExpander(DatabaseObjectType.TABLE, tableExpander);

    _treeAPI.addDetailTab(DatabaseObjectType.TRIGGER, new TriggerDetailsTab());
    _treeAPI.addDetailTab(DatabaseObjectType.TRIGGER, new TriggerSourceTabi18n.SHOW_TRIGGER_SOURCE,
                                                    isOS400,
                                                    stmtSep));

  }
View Full Code Here

    tableExpander.setTableTriggerExtractor(triggerExtractor);

    _treeAPI.addExpander(DatabaseObjectType.TABLE, tableExpander);

    _treeAPI.addDetailTab(DatabaseObjectType.TRIGGER, new TriggerDetailsTab());
    _treeAPI.addDetailTab(DatabaseObjectType.TRIGGER, new TriggerSourceTabi18n.SHOW_TRIGGER_SOURCE,
                                                    isOS400,
                                                    stmtSep));

  }
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.plugins.db2.exp.SchemaExpanderTest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.