Package java.sql

Examples of java.sql.ResultSet.relative()


        rs.first();
        checkContentsBeforeAndAfterUpdatingClob(rs);
        rs.next();
        checkContentsBeforeAndAfterUpdatingClob(rs);
        rs.relative(3);
        checkContentsBeforeAndAfterUpdatingClob(rs);
        rs.absolute(7);
        checkContentsBeforeAndAfterUpdatingClob(rs);
        rs.previous();
        checkContentsBeforeAndAfterUpdatingClob(rs);
View Full Code Here


        rs.first();
        updateClobWithUpdateCharacterStream(rs);
        rs.next();
        updateClobWithUpdateCharacterStream(rs);
        rs.relative(3);
        updateClobWithUpdateCharacterStream(rs);
        rs.absolute(7);
        updateClobWithUpdateCharacterStream(rs);
        rs.previous();
        updateClobWithUpdateCharacterStream(rs);
View Full Code Here

        rs.first();
        checkContentsBeforeAndAfterUpdatingBlob(rs);
        rs.next();
        checkContentsBeforeAndAfterUpdatingBlob(rs);
        rs.relative(3);
        checkContentsBeforeAndAfterUpdatingBlob(rs);
        rs.absolute(7);
        checkContentsBeforeAndAfterUpdatingBlob(rs);
        rs.previous();
        checkContentsBeforeAndAfterUpdatingBlob(rs);
View Full Code Here

        rs.first();
        updateBlobWithUpdateBinaryStream(rs);
        rs.next();
        updateBlobWithUpdateBinaryStream(rs);
        rs.relative(3);
        updateBlobWithUpdateBinaryStream(rs);
        rs.absolute(7);
        updateBlobWithUpdateBinaryStream(rs);
        rs.previous();
        updateBlobWithUpdateBinaryStream(rs);
View Full Code Here

        concurrency);
    ResultSet rs = stmt1.executeQuery("select * from testRelative");

    rs.next(); // First Record
    assertEquals("work1", rs.getString("name"));
    rs.relative(2);
    assertEquals("work3", rs.getString("name"));
    assertEquals(false, rs.isFirst());
    assertEquals(false, rs.isLast());
    assertEquals(false, rs.isAfterLast());
    rs.relative(-2);
View Full Code Here

    rs.relative(2);
    assertEquals("work3", rs.getString("name"));
    assertEquals(false, rs.isFirst());
    assertEquals(false, rs.isLast());
    assertEquals(false, rs.isAfterLast());
    rs.relative(-2);
    assertEquals("work1", rs.getString("name"));

    rs.relative(10);
    try {
      /*
 
View Full Code Here

    assertEquals(false, rs.isLast());
    assertEquals(false, rs.isAfterLast());
    rs.relative(-2);
    assertEquals("work1", rs.getString("name"));

    rs.relative(10);
    try {
      /*
       * Attempting to move beyond the first/last row in the result set
       * positions the cursor before/after the the first/last row.
       * Therefore, attempting to get value will throw an exception.
View Full Code Here

        concurrency);
    ResultSet rs = stmt1.executeQuery("select * from testRelative");

    rs.next(); // First Record
    assertEquals("work1", rs.getString("name"));
    rs.relative(2);
    assertEquals("work3", rs.getString("name"));
    assertEquals(false, rs.isFirst());
    assertEquals(false, rs.isLast());
    assertEquals(false, rs.isAfterLast());
    rs.relative(-2);
View Full Code Here

    rs.relative(2);
    assertEquals("work3", rs.getString("name"));
    assertEquals(false, rs.isFirst());
    assertEquals(false, rs.isLast());
    assertEquals(false, rs.isAfterLast());
    rs.relative(-2);
    assertEquals("work1", rs.getString("name"));

    rs.relative(10);
    try {
      /*
 
View Full Code Here

    assertEquals(false, rs.isLast());
    assertEquals(false, rs.isAfterLast());
    rs.relative(-2);
    assertEquals("work1", rs.getString("name"));

    rs.relative(10);
    try {
      /*
       * Attempting to move beyond the first/last row in the result set
       * positions the cursor before/after the the first/last row.
       * Therefore, attempting to get value now will throw an exception.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.