Examples of updateTimestamp()


Examples of java.sql.ResultSet.updateTimestamp()

        rs.updateBoolean(4, false);
        rs.updateByte(5, (byte) 0);
        rs.updateBytes(6, null);
        rs.updateDate(7, null);
        rs.updateTime(8, null);
        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);
View Full Code Here

Examples of java.sql.ResultSet.updateTimestamp()

        rs.updateBoolean("BOO", true);
        rs.updateByte("BYE", (byte) 0xff);
        rs.updateBytes("BIN", new byte[] { 0x00, (byte) 0xff });
        rs.updateDate("D", Date.valueOf("2005-09-21"));
        rs.updateTime("T", Time.valueOf("21:46:28"));
        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);
View Full Code Here

Examples of java.sql.ResultSet.updateTimestamp()

                        rs.updateTime(ColumnNames[sqlType-1],
                                rs1.getTime(updateXXXName));
                } else if (updateXXXName == 16) {
                    //update column with updateTimestamp methods
                    if (indexOrName == 1) //test by passing column position
                        rs.updateTimestamp(sqlType,
                                rs1.getTimestamp(updateXXXName));
                    else //test by passing column name
                        rs.updateTimestamp(ColumnNames[sqlType-1],
                                rs1.getTimestamp(updateXXXName));
                } else if (updateXXXName == 17) {
View Full Code Here

Examples of java.sql.ResultSet.updateTimestamp()

                    //update column with updateTimestamp methods
                    if (indexOrName == 1) //test by passing column position
                        rs.updateTimestamp(sqlType,
                                rs1.getTimestamp(updateXXXName));
                    else //test by passing column name
                        rs.updateTimestamp(ColumnNames[sqlType-1],
                                rs1.getTimestamp(updateXXXName));
                } else if (updateXXXName == 17) {
                    //update column with updateBlob methods
                    //Don't test this method because running JDK1.3 and this jvm
                    //does not support the method
View Full Code Here

Examples of java.sql.ResultSet.updateTimestamp()

      Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
      ResultSet rs = stmt.executeQuery("SELECT id, ts FROM updateable");
      rs.moveToInsertRow();
      rs.updateInt(1, 1);
      rs.updateTimestamp(2, ts);
      rs.insertRow();
      assertTrue(rs.first());
      assertEquals(ts, rs.getTimestamp(2));
    }
    finally {
View Full Code Here

Examples of java.sql.ResultSet.updateTimestamp()

                ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE);
        rs = updStmt.executeQuery("SELECT TS, T, D FROM DERBY4582");
        for (int i = 0; i < timestamps.length; i++) {
            assertTrue("found only " + i + " rows", rs.next());
            Timestamp ts1 = timestamps[i];
            rs.updateTimestamp(1, ts1);
            assertEquals("TS (default calendar)", ts1, rs.getTimestamp(1));
            Timestamp ts2 = rs.getTimestamp(1, cal);
            cal.clear();
            cal.setTime(ts2);
            localCal.clear();
View Full Code Here

Examples of java.sql.ResultSet.updateTimestamp()

    resultSet.first(); // Move cursor to the row to update
    resultSet.updateString("titre", note.getTitre());
    resultSet.updateString("texte", note.getTexte());
    Date date = new Date();
    Timestamp time = new Timestamp(date.getTime());
    resultSet.updateTimestamp("datemodif", time);
    resultSet.updateRow(); // Update the row;
    return;
  }

  // ****************************************************
 
View Full Code Here

Examples of javax.sql.rowset.spi.SyncResolver.updateTimestamp()

            fail("should throw UnsupportedOperationException");
        } catch (UnsupportedOperationException e) {
            // expected
        }
        try {
            resolver.updateTimestamp("not", null);
            fail("should throw UnsupportedOperationException");
        } catch (UnsupportedOperationException e) {
            // expected
        }
        try {
View Full Code Here

Examples of javax.sql.rowset.spi.SyncResolver.updateTimestamp()

            fail("should throw UnsupportedOperationException");
        } catch (UnsupportedOperationException e) {
            // expected
        }
        try {
            resolver.updateTimestamp(100, null);
            fail("should throw UnsupportedOperationException");
        } catch (UnsupportedOperationException e) {
            // expected
        }
View Full Code Here

Examples of org.apache.maven.artifact.repository.metadata.Versioning.updateTimestamp()

    @Override
    protected void merge( Metadata recessive )
    {
        Versioning versioning = metadata.getVersioning();
        versioning.updateTimestamp();

        if ( recessive.getVersioning() != null )
        {
            if ( versioning.getLatest() == null )
            {
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.