Package javax.sql.rowset

Examples of javax.sql.rowset.JoinRowSet


        jrs = newJoinRowSet();
        jrs.addRowSet(crset, 1);
        StringWriter writer = new StringWriter();
        jrs.writeXml(writer);

        JoinRowSet another = newJoinRowSet();
        another.readXml(new StringReader(writer.getBuffer().toString()));

        assertCachedRowSetEquals(jrs, another);
    }
View Full Code Here


        assertTrue(jrs.rowInserted());

        StringWriter writer = new StringWriter();
        jrs.writeXml(writer);

        JoinRowSet another = newJoinRowSet();
        another.readXml(new StringReader(writer.getBuffer().toString()));

        if (System.getProperty("Testing Harmony") == "true") {
            assertCachedRowSetEquals(jrs, another);
        } else {
            // TODO why the output xml has no insert information.
            another.absolute(2);
            assertFalse(another.rowInserted());
            jrs.absolute(2);
            assertTrue(jrs.rowInserted());
        }
    }
View Full Code Here

        StringWriter writer = new StringWriter();

        jrs.writeXml(writer);

        JoinRowSet another = newJoinRowSet();
        another.readXml(new StringReader(writer.getBuffer().toString()));


        if (System.getProperty("Testing Harmony") == "true") {
            assertCachedRowSetEquals(jrs, another);
        } else {
            another.absolute(3);
            assertFalse(another.rowUpdated());
            jrs.absolute(3);
            assertTrue(jrs.rowUpdated());
           
            // TODO why the output xml has no update information.
            another.absolute(4);
            assertFalse(another.rowUpdated());
            jrs.absolute(4);
            assertTrue(jrs.rowUpdated());
        }
    }
View Full Code Here

    public void testWriteXmlLResultSet() throws Exception {
        StringWriter writer = new StringWriter();
        rs = st.executeQuery("select * from user_info");
        jrs.writeXml(rs, writer);
       
        JoinRowSet jrs2 = newJoinRowSet();
        jrs2.readXml(new StringReader(writer.getBuffer().toString()));
        assertCachedRowSetEquals(crset, jrs2);
    }
View Full Code Here

TOP

Related Classes of javax.sql.rowset.JoinRowSet

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.