Examples of updateShort()


Examples of java.sql.ResultSet.updateShort()

        rs.updateTimestamp(9, null);
        rs.updateDouble(10, 0.0);
        rs.updateFloat(11, (float) 0.0);
        rs.updateLong(12, 0L);
        rs.updateObject(13, null);
        rs.updateShort(14, (short) 0);
        rs.updateCharacterStream(15, new StringReader("test"), 0);
        rs.updateBinaryStream(16, new ByteArrayInputStream(new byte[] { (byte) 0xff, 0x00 }), 0);
        rs.insertRow();

        rs.moveToInsertRow();
View Full Code Here

Examples of java.sql.ResultSet.updateShort()

        rs.updateTimestamp("TS", Timestamp.valueOf("2005-09-21 21:47:09.567890123"));
        rs.updateDouble("DB", 1.725);
        rs.updateFloat("R", (float) 2.5);
        rs.updateLong("L", Long.MAX_VALUE);
        rs.updateObject("O_I", 10);
        rs.updateShort("SH", Short.MIN_VALUE);
        // auml, ouml, uuml
        rs.updateCharacterStream("CL", new StringReader("\u00ef\u00f6\u00fc"), 0);
        rs.updateBinaryStream("BL", new ByteArrayInputStream(new byte[] { (byte) 0xab, 0x12 }), 0);
        rs.insertRow();
View Full Code Here

Examples of java.sql.ResultSet.updateShort()

                ResultSet.CONCUR_UPDATABLE);
        ResultSet rs = s.executeQuery(SELECT_STMT);
        rs.next();

        for (int i = 1; i <= COLUMNS; i++) {
            rs.updateShort(i, (short) 2);
            assertEquals("Expected rs.getShort(" + i +
                         ") to match updated value", 2, (int) rs.getShort(i));
        }
        rs.updateRow();
        rs.close();
View Full Code Here

Examples of java.sql.ResultSet.updateShort()

                ResultSet.CONCUR_UPDATABLE);
        ResultSet rs = s.executeQuery(SELECT_STMT);
        rs.next();

        for (int i = 1; i <= COLUMNS; i++) {
            rs.updateShort(i, (short) 2);
            assertEquals("Expected rs.getShort(" + i +
                         ") to match updated value", 2, (int) rs.getShort(i));
        }
        rs.updateRow();
        rs.close();
View Full Code Here

Examples of java.sql.ResultSet.updateShort()

                ResultSet.CONCUR_UPDATABLE);
        ResultSet rs = s.executeQuery(SELECT_STMT);
        rs.next();

        for (int i = 1; i <= COLUMNS; i++) {
            rs.updateShort(i, (short) 2);
            assertEquals("Expected rs.getShort(" + i +
                         ") to match updated value", 2, (int) rs.getShort(i));
        }
        rs.updateRow();
        rs.close();
View Full Code Here

Examples of java.sql.ResultSet.updateShort()

            rs1.next();
            try {
                if (updateXXXName == 1) {
                    //update column with updateShort methods
                    if (indexOrName == 1) //test by passing column position
                        rs.updateShort(sqlType, rs1.getShort(updateXXXName));
                    else //test by passing column name
                        rs.updateShort(ColumnNames[sqlType-1],
                                rs1.getShort(updateXXXName));
                } else if (updateXXXName == 2) {
                    //update column with updateInt methods
View Full Code Here

Examples of java.sql.ResultSet.updateShort()

                if (updateXXXName == 1) {
                    //update column with updateShort methods
                    if (indexOrName == 1) //test by passing column position
                        rs.updateShort(sqlType, rs1.getShort(updateXXXName));
                    else //test by passing column name
                        rs.updateShort(ColumnNames[sqlType-1],
                                rs1.getShort(updateXXXName));
                } else if (updateXXXName == 2) {
                    //update column with updateInt methods
                    if (indexOrName == 1) //test by passing column position
                        rs.updateInt(sqlType, rs1.getInt(updateXXXName));
View Full Code Here

Examples of java.sql.ResultSet.updateShort()

                final short currentOwner = rs.getShort(1);
                if (currentOwner != oldNode) {
                    LOG.debug("CAS owner failed (UC).");
                    res = currentOwner;
                } else {
                    rs.updateShort(1, newNode);
                    LOG.debug("CAS owner succeeded (UC).");
                    res = newNode;
                }
                conn.commit();
                return res;
View Full Code Here

Examples of java.sql.ResultSet.updateShort()

                ResultSet.CONCUR_UPDATABLE);
        ResultSet rs = s.executeQuery(SELECT_STMT);
        rs.next();

        for (int i = 1; i <= COLUMNS; i++) {
            rs.updateShort(i, (short) 2);
            assertEquals("Expected rs.getShort(" + i +
                         ") to match updated value", 2, (int) rs.getShort(i));
        }
        rs.updateRow();
        rs.close();
View Full Code Here

Examples of java.sql.ResultSet.updateShort()

                ResultSet.CONCUR_UPDATABLE);
        ResultSet rs = s.executeQuery(SELECT_STMT);
        rs.next();

        for (int i = 1; i <= COLUMNS; i++) {
            rs.updateShort(i, (short) 2);
            assertEquals("Expected rs.getShort(" + i +
                         ") to match updated value", 2, (int) rs.getShort(i));
        }
        rs.updateRow();
        rs.close();
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.