Package net.sourceforge.squirrel_sql.fw.sql.dbobj

Examples of net.sourceforge.squirrel_sql.fw.sql.dbobj.BestRowIdentifier


      final String table = ti.getSimpleName();

      final ResultSetColumnReader rdr = new ResultSetColumnReader(rs);
      while (rdr.next())
      {
        final BestRowIdentifier rid =
          new BestRowIdentifier(catalog, schema, table, rdr.getLong(1).intValue(), rdr.getString(2),
            rdr.getLong(3).shortValue(), rdr.getString(4), rdr.getLong(5).intValue(), rdr.getLong(7)
              .shortValue(), rdr.getLong(8).shortValue(), this);
        results.add(rid);
      }
    }
View Full Code Here


    classUnderTest = new SQLDatabaseMetaData(mockSqlConnection);
   
    BestRowIdentifier[] result = classUnderTest.getBestRowIdentifier(mockTableInfo);
   
    assertEquals(1, result.length);
    BestRowIdentifier rid = result[0];
    assertEquals(1, rid.getScope());
    assertEquals("aColumn", rid.getColumnName());
    assertEquals(3, rid.getSQLDataType());
    assertEquals("SMALLINT", rid.getTypeName());
    assertEquals(5, rid.getPrecision());
    assertEquals(7, rid.getScale());
    assertEquals(8, rid.getPseudoColumn());
   
    mockHelper.verifyAll();
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.fw.sql.dbobj.BestRowIdentifier

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.