Package net.sourceforge.squirrel_sql.fw.sql

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


        short ordinalPosition = 0;
        SortOrder sortOrder = null;
        int cardinality = 0;
        int pages = 0;
        String filterCondition = null;
        IndexInfo doi = new IndexInfo(
           cat, schema, indexName, tableName, columnName, nonUnique, indexQualifier, indexType,
           ordinalPosition, sortOrder, cardinality, pages, filterCondition, md);
        childNodes.add(new ObjectTreeNode(session, doi));
      }
    } catch (SQLException e)
View Full Code Here


      return new ForeignKeyInfo[] { result };
   }

   public static List<IndexInfo> getEasyMockIndexInfos(String tableName,
         String columnName) {
      IndexInfo result = createMock(IndexInfo.class);
      expect(result.getColumnName()).andReturn(columnName).anyTimes();
      expect(result.getSimpleName()).andReturn("TestIndex").anyTimes();
      expect(result.getOrdinalPosition()).andReturn((short) 1).anyTimes();
      expect(result.getTableName()).andReturn(tableName).anyTimes();
      expect(result.isNonUnique()).andReturn(false).anyTimes();
      expect(result.getSchemaName()).andStubReturn("TestSchema");
      replay(result);
      return Arrays.asList(new IndexInfo[] { result });
   }
View Full Code Here

TOP

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

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.