Examples of update()


Examples of cloudsync.model.Item.update()

            status.create++;
          }
          // check filesize and modify time
          else if (remoteChildItem.isMetadataChanged(localChildItem)) {
            final boolean isFiledataChanged = localChildItem.isFiledataChanged(remoteChildItem);
            remoteChildItem.update(localChildItem);
            List<String> types = new ArrayList<String>();
            if (isFiledataChanged)
              types.add("data,attributes");
            else if (!isFiledataChanged)
              types.add("attributes");
View Full Code Here

Examples of cn.edu.zju.acm.onlinejudge.util.RankListEntry.update()

                    }
                    long problemId = rs.getLong(2);
                    long judgeReplyId = rs.getLong(3);
                    int time = (int) ((rs.getTimestamp(4).getTime() - contestStartDate) / 1000 / 60);

                    entry.update(((Integer) problemIndexes.get(new Long(problemId))).intValue(), time,
                                 judgeReplyId == JudgeReply.ACCEPTED.getId());
                }
            } finally {
                Database.dispose(ps);
            }
View Full Code Here

Examples of co.cubicode.jdbcframework.DatabaseFactory.update()

  }
 
  public static User create(User user) throws ObjectUpdateException {
    DatabaseFactory instance = DatabaseFactory.getInstance("rbac");
    SQLQuery sql = SQL.getSQL(User.class, "create");
    Long id = (Long) instance.update(user, sql);
    if (id == null) {
      throw new DatabaseFactoryException("Ocurrio un error al obtener el id del objeto usuario");
    }
    user.setId(id);
    return user;
View Full Code Here

Examples of co.edu.eafit.ejemplopersistencia.dao.DaoInterface.update()

    if (clienteEsValido(cliente, cuentaDesde)) {
      System.out.println("va a actualizar");
      cuentaDesde.retirar(cantidad);
      cuentaHasta.consignar(cantidad);
      // invoca los servicios para actualizacion en la base de datos
      daoEntidad.update(cuentaDesde, null);
      daoEntidad.update(cuentaHasta, null);
      return "Transferencia Exitosa";
    } else {
      throw new ClienteInvalidoExcepcion(
          "El cliente que hace la transferencia  " + cliente
View Full Code Here

Examples of co.nubetech.crux.pool.HBaseConnectionPool.update()

        connection.setName(connectionName);
        hbaseRestServerProperty = connection.getProperties().get(
            CruxConstants.HBASE_ZOOKEEPER_PROPERTY);
        hbaseRestServerProperty.setValue(hbaseRestServerPropertyValue);

        pool.update(connectionToUpdate, connection);

        // Now checking whether this connection holds all the associated
        // childrens.
        String[] tables = hbaseFacade.getTableList(connection);
        ArrayList<String> tableList = new ArrayList<String>();
View Full Code Here

Examples of co.paralleluniverse.common.io.Checksum.update()

        if (compareBeforeWrite) {
            final Checksum chksm = getChecksum();
            if (line.data != null && object.size() == line.data.remaining()) {
                final int n = line.data.remaining();

                chksm.update(line.data);
                line.data.rewind();
                final byte[] hash = chksm.getChecksum();

                object.write(line.data);
                line.data.flip();
View Full Code Here

Examples of cofh.lib.gui.element.ElementBase.update()

  protected final void updateElements() {

    for (int i = elements.size(); i-- > 0;) {
      ElementBase c = elements.get(i);
      if (c.isVisible() && c.isEnabled()) {
        c.update(mouseX, mouseY);
      }
    }
  }

  protected void updateElementInformation() {
View Full Code Here

Examples of cofh.lib.gui.element.TabBase.update()

    int yPosRight = 4;
    int yPosLeft = 4;

    for (int i = 0; i < tabs.size(); i++) {
      TabBase tab = tabs.get(i);
      tab.update();
      if (!tab.isVisible()) {
        continue;
      }
      // TODO: convert these over to foreground/background (maybe logic for top/bottom tabs?)
      if (tab.side == TabBase.LEFT) {
View Full Code Here

Examples of com.ackgaming.entity.Bullet.update()

          }
        }
       
      for(int i=0; i<bullets.size(); i++) {
          Bullet b = (Bullet) bullets.get(i);
            b.update();
        }
     
      if(ball.y > paddle.y) {
        if(lives == 0) {
          sbg.enterState(BlockBreaker.LOSESCREENSTATE);
View Full Code Here

Examples of com.ackgaming.entity.items.BonusLifeItem.update()

     
      checkColision();
        for(int i=0; i<drops.size(); i++) {
          if(drops.get(i) instanceof BonusLifeItem) {
            BonusLifeItem t = (BonusLifeItem) drops.get(i);
            t.update();
          }
        }
       
      for(int i=0; i<bullets.size(); i++) {
          Bullet b = (Bullet) bullets.get(i);
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.