Package net.sourceforge.squirrel_sql.fw.id

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


        // Find the internal Frame in the list of internal frames
        // and remove it.
        if (widget instanceof ISessionWidget)
        {
          final ISessionWidget sessionWidget = (ISessionWidget)widget;
          final IIdentifier sessionID = sessionWidget.getSession().getIdentifier();
               ISessionWidget[] sessionSheets = _sessionWindows.getFramesOfSession(sessionID);

               for (int i = 0; i < sessionSheets.length; i++)
               {
                  if (sessionSheets[i] == sessionWidget)
View Full Code Here


        {
          return;
        }

        _sessionClosing = true;
        IIdentifier sessionId = evt.getSession().getIdentifier();

        ISessionWidget[] framesOfSession = _sessionWindows.getFramesOfSession(sessionId);
        for (int i = 0; i < framesOfSession.length; i++)
        {
          if(framesOfSession[i] instanceof SessionTabWidget)
View Full Code Here

      }
   }

   public void removeWindow(ISessionWidget sessionWidget)
   {
      IIdentifier sessionIdentifier = _sessionIdentifierByFrame.get(sessionWidget);

      if(null == sessionIdentifier)
      {
         throw new IllegalArgumentException("Unknown Frame " + sessionWidget.getTitle());
      }
View Full Code Here

    _app.getSessionManager().addSessionListener(new SessionAdapter()
    {
      public void sessionClosed(SessionEvent evt)
      {
        IIdentifier id = evt.getSession().getIdentifier();
        MemorySessionInfo msi = _sessionInfosBySessionIDs.get(id);
        if(null == msi)
        {
          throw new IllegalStateException("A session with ID " + id + " has not been created");
        }
        msi.closed = new Date();
        updateGcStatus();
      }

      public void sessionConnected(SessionEvent evt)
      {
        IIdentifier id = evt.getSession().getIdentifier();
        if(null != _sessionInfosBySessionIDs.get(id))
        {
          throw new IllegalStateException("A session with ID " + id + " has already been created");
        }
        MemorySessionInfo msi = new MemorySessionInfo(id, evt.getSession().getAlias().getName());
View Full Code Here

     * in the connection internal frame.
     */
    public void run()
    {
      SQLConnection conn = null;
      final IIdentifier driverID = _alias.getDriverIdentifier();
      final ISQLDriver sqlDriver = _app.getDataCache().getDriver(driverID);

      try
      {
        OpenConnectionCommand cmd = new OpenConnectionCommand(_app,
View Full Code Here

   * Display connection internal frame.
   */
  public void execute() throws BaseException
  {
    _conn = null;
    final IIdentifier driverID = _sqlAlias.getDriverIdentifier();
    final ISQLDriver sqlDriver = _app.getDataCache().getDriver(driverID);
    final SQLDriverManager mgr = _app.getSQLDriverManager();
    try
    {
      _conn = mgr.getConnection(sqlDriver, _sqlAlias, _userName, _password, _props);
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.fw.id.IIdentifier

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.