Package net.sourceforge.squirrel_sql.fw.sql

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


           
            return;
        }
        HashSet<String> pkCols = new HashSet<String>();
        for (int i = 0; i < primaryKeyInfos.length; i++) {
            PrimaryKeyInfo pkInfo = primaryKeyInfos[i];
            pkCols.add(pkInfo.getColumnName());
        }
       
        ArrayList<String> newNotUseList = new ArrayList<String>();
        ListModel useColsModel = useColsList.getModel();
        ListModel notUseColsModel = notUseColsList.getModel();
View Full Code Here


   }

   public static PrimaryKeyInfo getEasyMockPrimaryKeyInfo(String catalog,
         String schemaName, String tableName, String columnName,
         short keySequence, String pkName, boolean replay) {
      PrimaryKeyInfo pki = createMock(PrimaryKeyInfo.class);
      expect(pki.getCatalogName()).andReturn(catalog).anyTimes();
      expect(pki.getColumnName()).andReturn(columnName).anyTimes();
      expect(pki.getDatabaseObjectType()).andReturn(DatabaseObjectType.PRIMARY_KEY)
                                         .anyTimes();
      expect(pki.getKeySequence()).andReturn(keySequence).anyTimes();
      expect(pki.getQualifiedColumnName()).andReturn(columnName).anyTimes();
      expect(pki.getQualifiedName()).andReturn(pkName).anyTimes();
      expect(pki.getSchemaName()).andReturn(schemaName).anyTimes();
      expect(pki.getSimpleName()).andReturn(pkName).anyTimes();
      expect(pki.getTableName()).andReturn(tableName).anyTimes();
      if (replay) {
         replay(pki);
      }
      return pki;
   }
View Full Code Here

      try {
          PrimaryKeyInfo[] pkinfos =
              md.getPrimaryKey(_catalog, _schema, _tableName);
          for (int i = 0; i < pkinfos.length; i++) {
             PrimaryKeyInfo info = pkinfos[i];
             for (int c = 0; c < _colInfos.length; c++)
             {
                if(_colInfos[c].getName().equals(info.getColumnName()))
                {
                   _colInfos[c].markPrimaryKey();
                }
             }
          }         
View Full Code Here

TOP

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

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.