Examples of updateRow()


Examples of javax.sql.rowset.FilteredRowSet.updateRow()

         * Update the third row. Filter has no effect here.
         */
        assertTrue(filteredRowSet.last());
        assertEquals("test4", filteredRowSet.getString(2));
        filteredRowSet.updateString(2, "update4");
        filteredRowSet.updateRow();
        assertEquals("update4", filteredRowSet.getString(2));
        // the updated row becomes not visible through filter
        assertTrue(filteredRowSet.last());
        assertEquals("test3", filteredRowSet.getString(2));

View Full Code Here

Examples of javax.sql.rowset.JdbcRowSet.updateRow()

        }
        jrs.moveToCurrentRow();

        assertTrue(jrs.absolute(3));
        jrs.updateString(2, "update3");
        jrs.updateRow();
        assertTrue(jrs.rowUpdated());
        assertEquals("update3", jrs.getString(2));
        jrs.cancelRowUpdates();
        assertEquals("update3", jrs.getString(2));
View Full Code Here

Examples of javax.sql.rowset.WebRowSet.updateRow()

        // update a row
        assertTrue(webRs.absolute(4));
        webRs.updateInt(1, 44);
        webRs.updateString(2, "update44");
        webRs.updateRow();

        // update a row but not call updateRow()
        assertTrue(webRs.absolute(2));
        webRs.updateInt(1, 22);
View Full Code Here

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

        } catch (UnsupportedOperationException e) {
            // expected
        }

        try {
            resolver.updateRow();
            fail("Should throw UnsupportedOperationException");
        } catch (UnsupportedOperationException e) {
            // expected
        }
View Full Code Here

Examples of net.bnubot.bot.database.AccountResultSet.updateRow()

                AccountResultSet rsAccount = d.getAccount(answerUser);
                if(rsAccount.next()) {
                  long score = rsAccount.getTriviaCorrect();
                  score++;
                  rsAccount.setTriviaCorrect(score);
                  rsAccount.updateRow();
                  extra += " Your score is " + score + ".";
                }
                d.close(rsAccount);
              }
            } catch(Exception e) {
View Full Code Here

Examples of net.bnubot.db.Account.updateRow()

    String account = accountName[0].getText();
    Account a = Account.get(account);
    if(a == null)
      a = Account.create(account, Rank.getMax(), null);
    a.updateRow();
    for(String l : logins) {
      BNLogin bnl = BNLogin.getCreate(new BNetUser(l));
      bnl.setAccount(a);
      bnl.updateRow();
    }
View Full Code Here

Examples of net.bnubot.db.BNLogin.updateRow()

      BNLogin bnlUser = BNLogin.get(user);
      if((bnlUser != null) && (bnlUser.getAccount() == null)) {
        // The user has no account; shitlist him!
        Account account = Account.create(user.getFullAccountName(), Rank.getMin(), null);
        bnlUser.setAccount(account);
        bnlUser.updateRow();
      }
    } catch(Exception e) {
      Out.exception(e);
    }
  }
View Full Code Here

Examples of net.bnubot.db.Command.updateRow()

      c.setRank(max);
      c.setCmdgroup(null);
      c.setDescription(null);
      c.setName(name);
      try {
        c.updateRow();
      } catch (Exception e) {
        throw new IllegalStateException(e);
      }

      String message = "Created command " + name + " with access " + max.getAccess() + "; to change, use %trigger%setauth " + name + " <access>";
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.TabInfo.updateRow()

      aiValue += increment.getLong();
    }
    row.setColumn(SYSCOLUMNSRowFactory.SYSCOLUMNS_AUTOINCREMENTVALUE,
            dvf.getDataValue(aiValue));

    ti.updateRow(keyRow, row,
           SYSCOLUMNSRowFactory.SYSCOLUMNS_INDEX1_ID,
           bArray,
           colsToUpdate,
           tc);
    return;
View Full Code Here

Examples of org.apache.derby.iapi.sql.execute.RowChanger.updateRow()

                // it can not be possible for heap row to disappear while
                // holding scan cursor on index at ISOLATION_REPEATABLE_READ.
                SanityManager.ASSERT(base_row_exists, "base row not found");
            }
     
      rc.updateRow(baseRow, (rowNum == newRows.length - 1) ?
            newRows[rowNum] : newRows[rowNum++], baseRowLocation );
    }
    rc.finish();
    heapCC.close();
    drivingScan.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.