Search in sources :

Example 6 with JoinRowSet

use of javax.sql.rowset.JoinRowSet in project jdk8u_jdk by JetBrains.

the class JoinRowSetTests method joinRowSetTests0001.

/*
     * Join two CachedRowSets specifying a column index to join against
     */
@Test(dataProvider = "createCachedRowSetsToUse")
public void joinRowSetTests0001(CachedRowSet crs, CachedRowSet crs1) throws Exception {
    try (JoinRowSet jrs = newInstance()) {
        jrs.addRowSet(crs, COFFEES_JOIN_COLUMN_INDEX);
        jrs.addRowSet(crs1, SUPPLIERS_JOIN_COLUMN_INDEX);
        validateResults(jrs);
        crs.close();
        crs1.close();
    }
}
Also used : JoinRowSet(javax.sql.rowset.JoinRowSet) Test(org.testng.annotations.Test)

Aggregations

JoinRowSet (javax.sql.rowset.JoinRowSet)6 Test (org.testng.annotations.Test)6 RowSet (javax.sql.RowSet)2 CachedRowSet (javax.sql.rowset.CachedRowSet)2 WebRowSet (javax.sql.rowset.WebRowSet)2