Package net.sourceforge.squirrel_sql.client.session

Examples of net.sourceforge.squirrel_sql.client.session.MockSession


  }

  private void initSession(ArrayList<ISession> sessionsList, String url, String user, String pass,
    String driver, String catalog, String schema) throws Exception
  {
    final MockSession session = new MockSession(driver, url, user, pass);
    session.setDefaultCatalog(catalog);
    session.setDefaultSchema(schema);
    sessionsList.add(session);
  }
View Full Code Here


      final String pass = props.getProperty(db + "_jdbcPass");
      final String driver = props.getProperty(db + "_jdbcDriver");
      final String catalog = props.getProperty(db + "_catalog");
      final String schema = props.getProperty(db + "_schema");

      final MockSession session = new MockSession(driver, url, user, pass);
      session.setDefaultCatalog(catalog);
      session.setDefaultSchema(schema);
      sessionsList.add(session);
    }

    // sessionsList.add(mockGenericDialectSession);
  }
View Full Code Here

    testAddPrimaryKey(session, new TableColumnInfo[] { pkCol });
    final String createMatViewSQL =
      "CREATE MATERIALIZED VIEW " + testMaterializedViewName + " REFRESH COMPLETE NEXT SYSDATE + 1 "
        + " WITH PRIMARY KEY AS SELECT * FROM TEST ";
    runSQL(session, createMatViewSQL);
    final MockSession msession = (MockSession) session;
    final String cat = msession.getDefaultCatalog();
    final String schema = msession.getDefaultSchema();
    final SQLDatabaseMetaData md = session.getSQLConnection().getSQLMetaData();
    final ITableInfo info = new TableInfo(cat, schema, testMaterializedViewName, "TABLE", "", md);
    final List<String> dropSQL = dialect.getTableDropSQL(info, true, true, qualifier, prefs);
    runSQL(session, dropSQL);
  }
View Full Code Here

        String sourceDriver = bundle.getString("sourceDriver");
        String sourceJdbcUrl = bundle.getString("sourceJdbcUrl");
        String sourceUser = bundle.getString("sourceUser");
        String sourcePass = bundle.getString("sourcePass");
       
        sourceSession = new MockSession(sourceDriver,
                                        sourceJdbcUrl,
                                        sourceUser,
                                        sourcePass);
        sourceSchema = fixCase(bundle.getString("sourceSchema"),
                               sourceSession);
        sourceCatalog = fixCase(bundle.getString("sourceCatalog"),
                        sourceSession);
        String destDriver = bundle.getString("destDriver");
        String destJdbcUrl = bundle.getString("destJdbcUrl");
        String destUser = bundle.getString("destUser");
        String destPass = bundle.getString("destPass");
        destSession = new MockSession(destDriver,
                                      destJdbcUrl,
                                      destUser,
                                      destPass);
        destCatalog = fixCase(bundle.getString("destCatalog"),
                    destSession);
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.client.session.MockSession

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.