Package net.sourceforge.squirrel_sql.fw.sql

Examples of net.sourceforge.squirrel_sql.fw.sql.TableInfo


         s_log.warn(s_stringMgr.getString("SchemaInfo.UnableToLoadColumns", tableName));
         return;
      }

      String name = getCaseSensitiveTableName(tableName.toString());
      TableInfo ti = new TableInfo(null, null, name, "TABLE", null, _dmd);

      try
      {
         TableColumnInfo[] infos = _dmd.getColumnInfo(ti);
         _schemaInfoCache.writeColumsToCache(infos, tableName);
View Full Code Here


      ////////////////////////////////////////////////////////////////////////
      // Reload  all matching table types
      for(Iterator<String> i=caseSensitiveTableNames.keySet().iterator(); i.hasNext();)
      {
         String buf = i.next();
         TableInfo ti = new TableInfo(null, null, buf, null, null, _dmd);
         reload(ti, fireSchemaInfoUpdate);
      }
      //
      ////////////////////////////////////////////////////////////////////////
View Full Code Here

      EditableSqlCheck edittableCheck = new EditableSqlCheck(exInfo);

      if (edittableCheck.allowsEditing())
      {
         TableInfo ti = getTableName(edittableCheck.getTableNameFromSQL());
         _dataSetUpdateableTableModel.setTableInfo(ti);
      }
      else
      {
         _dataSetUpdateableTableModel.setTableInfo(null);
View Full Code Here

   public void setUp() throws Exception {
     super.serializableToTest = new SchemaInfoCache();
      mockMetaData = FwTestUtil.getEasyMockH2SQLMetaData();
      for (int i = 0; i < tableInfos.length; i++) {
         String tableName = "table" + i;
         tableInfos[i] = new TableInfo(testCatalog, testSchema, tableName,
               testTableType, null, mockMetaData);
      }
      schemaInfoCacheUnderTest.writeToTableCache(tableInfos);
   }
View Full Code Here

            FwTestUtil.getEasyMockSQLMetaData("oracle",
                                            "jdbc:oracle:thin",
                                            false,
                                            true);
       
        childTableInfo = new TableInfo("testCatalog",
                                  "testSchema",
                                  "childTable",
                                  "TABLE",
                                  "a comment",
                                  tableMockMetaData)
       
        parentTableInfo = new TableInfo("testCatalog",
                                        "testSchema",
                                        "parentTable",
                                        "TABLE",
                                        "a comment",
                                        tableMockMetaData);
View Full Code Here

    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

      ti = infos[0];
    }
    else
    {
      // Couldn't locate the table - just try to fake it.
      ti = new TableInfo(catalog, schema, tableName, "TABLE", "", md);
    }

    final String pkName = getPKName(tableName);
    final AddPrimaryKeySqlExtractor extractor = new AddPrimaryKeySqlExtractor(ti, colInfos, pkName);
    if (dialectDiscoveryMode)
View Full Code Here

        } else {
          result = new ArrayList<ITableInfo>();
            String[] tableNames = tableStr.split(",");
            for (int i = 0; i < tableNames.length; i++) {
        String tableName = tableNames[i];
        TableInfo info = new TableInfo(sourceCatalog,
                         sourceSchema,
                         tableName,
                         "TABLE",
                         "",
                         null);
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.fw.sql.TableInfo

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.