Examples of IIdentifier


Examples of net.sourceforge.squirrel_sql.fw.id.IIdentifier

      replay(result);
      return result;
   }

   public static IIdentifier getEasyMockIdentifier() {
      IIdentifier result = createMock(IIdentifier.class);
      replay(result);
      return result;
   }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.id.IIdentifier

      {
         throw new ValidationException(IStrings.ERR_BLANK_DRIVER);
      }
      if (_driverId != data)
      {
         final IIdentifier oldValue = _driverId;
         _driverId = data;
         getPropertyChangeReporter().firePropertyChange(IPropNames.DRIVER,
                                    oldValue, _driverId);
      }
   }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.id.IIdentifier

   {
      _alias = alias;
      _app = app;
      String aliasUrl = alias.getUrl();

      IIdentifier driverIdentifier = alias.getDriverIdentifier();
      if (driverIdentifier == null)
      {
         // I18n[DriverPropertiesController.noDriverSelected=No driver available in this Alias.\nCan not load driver properties tab.]
         _errMsg = s_stringMgr.getString("DriverPropertiesController.noDriverSelected");
         _app.getMessageHandler().showErrorMessage(_errMsg);
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.id.IIdentifier

    return result;
  }

  private boolean isOracle(ISQLAliasExt alias)
  {
    IIdentifier driverIdentifier = alias.getDriverIdentifier();
    Driver jdbcDriver = getApplication().getSQLDriverManager().getJDBCDriver(driverIdentifier);

    if (null == jdbcDriver)
    {
      return false;
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.id.IIdentifier

    assertEquals("aTestString", classUnderTest.getSQL());
  }

  @Test
  public void testEqualsAndHashcode() {
    IIdentifier id1 = mockHelper.createMock(IIdentifier.class);
    IIdentifier id2 = mockHelper.createMock(IIdentifier.class);
   
    ISQLAlias alias1 = mockHelper.createMock(ISQLAlias.class);
    EasyMock.expect(alias1.getIdentifier()).andStubReturn(id1);
    ISQLAlias alias2 = mockHelper.createMock(ISQLAlias.class);
    EasyMock.expect(alias2.getIdentifier()).andStubReturn(id2);
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.id.IIdentifier

         ISQLDriver iSqlDr = session.getDriver();
         if (!(iSqlDr.getDriverClassName().startsWith("org.apache.derby.jdbc.EmbeddedDriver"))) {
            return;
         }
         //the code bellow is only for Embedded Derby Driver
         IIdentifier drId = iSqlDr.getIdentifier();
         SQLDriverManager sqlDrMan = _app.getSQLDriverManager();
         //Getting java.sql.Driver to run shutdown command
         Driver jdbcDr = sqlDrMan.getJDBCDriver(drId);
         //Shutdown Embedded Derby DB
         try {
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.id.IIdentifier

   * @param sess the session that is ending.
   */
  public void sessionEnding(final ISession sess)
  {
    _syntaxFactory.sessionEnding(sess);
    final IIdentifier id = sess.getIdentifier();
    if (id != null && _panels.containsKey(id))
    {
      NetbeansSQLEntryPanel panel = _panels.get(id);
      if (panel != null)
      {
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.id.IIdentifier

            // This event does not always hit the righr editor !?
            // That's why we can't use _sqlEntryPanelIdentifier
            origAction.actionPerformed(e);
            if(_session.getActiveSessionWindow().hasSQLPanelAPI())
            {
               IIdentifier entryPanelId = _session.getSQLPanelAPIOfActiveSessionWindow().getSQLEntryPanel().getIdentifier();
               triggerParser(entryPanelId);
            }
         }
      };
      //
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.id.IIdentifier

    assertEquals(true, classUnderTest.getCanLAFSetBorder());
  }

  @Test
  public void testEqualsAndHashcode() {
    IIdentifier id = mockHelper.createMock(IIdentifier.class);
    IIdentifier id2 = mockHelper.createMock(IIdentifier.class);
   
    LAFPreferences a = new LAFPreferences(id);
    LAFPreferences b = new LAFPreferences(id);
    LAFPreferences c = new LAFPreferences(id2);
    LAFPreferences d = new LAFPreferences(id) {
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.id.IIdentifier

        //i18n[WindowManager.registerSessionSheet=Registering {0} in WindowManager]
        String dbg =
            s_stringMgr.getString("WindowManager.registerSessionSheet",
                                  sheet.getClass().getName());
    s_log.debug(dbg);
    final IIdentifier sessionIdentifier = sheet.getSession().getIdentifier();

    // Store ptr to newly open window in list of windows per session.
    final int idx = _sessionWindows.addFrame(sessionIdentifier, sheet);

    // For all windows (other than the first one opened) for a session
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.