Examples of IIdentifier


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

  @Test
  public void testCreateDataSet() throws DataSetException {
   
    ISession mockSession = mockHelper.createMock(ISession.class);
    IApplication mockApplication = mockHelper.createMock(IApplication.class);
    IIdentifier mockIdentifier = mockHelper.createMock(IIdentifier.class);
    SessionManager mockSessionManager = mockHelper.createMock(SessionManager.class);
    ISQLConnection mockSqlConnection = mockHelper.createMock(ISQLConnection.class);
    SQLDatabaseMetaData mockMetaData = mockHelper.createMock(SQLDatabaseMetaData.class);
    IProcedureInfo mockProcedureInfo = mockHelper.createMock(IProcedureInfo.class);
   
View Full Code Here

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

  @Test
  public void testEqualsObject()
  {
    IIdentifierFactory factory = IdentifierFactory.getInstance();
    IIdentifier id1 = factory.createIdentifier();
    IIdentifier id2 = factory.createIdentifier();
    SQLAlias alias1 = new SQLAlias(id1);
    SQLAlias alias2 = new SQLAlias(id1);
    SQLAlias alias3 = new SQLAlias(id2);
    SQLAlias alias4 = new SQLAlias(id1)
    {
View Full Code Here

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

  }

  @Test
  public void testEqualsObject() throws Exception
  {
    IIdentifier id1 = new IntegerIdentifier(1);
    IIdentifier id2 = new IntegerIdentifier(2);
    String name1 = "NameTest";
    String name2 = "NameTest2";

    AliasGroup ag1 = new AliasGroup();
    ag1.setIdentifier(id1);
View Full Code Here

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

  {
    if (dboType == null)
    {
      throw new IllegalArgumentException("Null DatabaseObjectType passed");
    }
    IIdentifier key = dboType.getIdentifier();
    JPopupMenu pop = _popups.get(key);
    if (pop == null && create)
    {
      pop = new JPopupMenu();
      _popups.put(key, pop);
View Full Code Here

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

  {
    if (dboType == null)
    {
      throw new IllegalArgumentException("Null DatabaseObjectType passed");
    }
    IIdentifier key = dboType.getIdentifier();
    List<INodeExpander> list = _expanders.get(key);
    if (list == null)
    {
      list = new ArrayList<INodeExpander>();
      _expanders.put(key, list);
View Full Code Here

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

                s_log.error("Error closing Session", sqle);
                session.showErrorMessage(s_stringMgr.getString("SessionManager.ErrorClosingSession", sqle));
            }
            fireSessionClosed(session);

            final IIdentifier sessionId = session.getIdentifier();
            if (!_sessionsList.remove(session))
            {
               s_log.error("SessionManager.closeSession()-> Session " +
                     sessionId +
                     " not found in _sessionsList when trying to remove it.");
View Full Code Here

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

      for (int i = 0; i < frames.length; i++)
      {
         if(frames[i] instanceof SQLInternalFrame)
         {
            ISQLPanelAPI sqlPanelAPI = ((SQLInternalFrame)frames[i]).getSQLPanelAPI();
            IIdentifier id = sqlPanelAPI.getSQLEntryPanel().getIdentifier();

            if(id.equals(entryPanelIdentifier))
            {
               return sqlPanelAPI;
            }
         }

         if(frames[i] instanceof SessionInternalFrame)
         {
            ISQLPanelAPI sqlPanelAPI = ((SessionInternalFrame)frames[i]).getSQLPanelAPI();
            IIdentifier sqlEditorID = sqlPanelAPI.getSQLEntryPanel().getIdentifier();

            if(sqlEditorID.equals(entryPanelIdentifier))
            {
               return sqlPanelAPI;
            }

            IObjectTreeAPI objectTreeApi = ((SessionInternalFrame)frames[i]).getObjectTreeAPI();
            IIdentifier findEditorID = objectTreeApi.getFindController().getFindEntryPanel().getIdentifier();

            if(findEditorID.equals(entryPanelIdentifier))
            {
               return null;
            }
         }

         if(frames[i] instanceof ObjectTreeInternalFrame)
         {
            IObjectTreeAPI objectTreeApi = ((ObjectTreeInternalFrame)frames[i]).getObjectTreeAPI();
            IIdentifier findEditorID = objectTreeApi.getFindController().getFindEntryPanel().getIdentifier();

            if(findEditorID.equals(entryPanelIdentifier))
            {
               return null;
            }
         }
      }
View Full Code Here

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

    if (dboType == null)
    {
      throw new IllegalArgumentException("Null DatabaseObjectType passed");
    }

    final IIdentifier key = dboType.getIdentifier();
    ObjectTreeTabbedPane tabPane = _tabbedPanes.get(key);
    if (tabPane == null)
    {
      tabPane = new ObjectTreeTabbedPane(_session);
      setupTabbedPane(tabPane);
View Full Code Here

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

  public static ISQLAliasExt getEasyMockSqlAliasExt() {
     ISQLAliasExt result = createMock(ISQLAliasExt.class);
     SQLAliasColorProperties props = createMock(SQLAliasColorProperties.class);
     expect(result.getName()).andReturn("TestAlias").anyTimes();
     IIdentifier id = FwTestUtil.getEasyMockIdentifier();
     expect(result.getDriverIdentifier()).andReturn(id).anyTimes();
     expect(result.getColorProperties()).andStubReturn(props);
     replay(result);
     return result;
  }
View Full Code Here

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

    assertEquals("test.jar", classUnderTest.getJarFileNameWrapper(0).getString());
  }

  @Test
  public void testEqualsAndHashcode() throws Exception {
    IIdentifier id1 = mockHelper.createMock(IIdentifier.class);
    IIdentifier id2 = mockHelper.createMock(IIdentifier.class);
   
    mockHelper.replayAll();
   
    SQLDriver a = new SQLDriver(id1);
    SQLDriver b = new SQLDriver(id1);
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.