Examples of update()


Examples of com.scooterframework.orm.activerecord.ActiveRecord.update()

        ActiveRecord entry = null;
        try {
            entry = Entry.findById(p("id"));
            if (entry != null) {
                entry.setData(params());
                entry.update();
                flash("notice", "Entry was successfully updated.");

                return redirectTo(R.resourceRecordPath("entries", entry));
            }
            else {
View Full Code Here

Examples of com.senseidb.indexing.activity.CompositeActivityValues.update()

    int recordsCount = 1000000;
    int numOfEvents = 10;
    for (int i = 0; i < numOfEvents; i++) {
      Clock.setPredefinedTimeInMinutes(i);
      for (int j = 0; j < recordsCount; j ++) {
        activityValues.update((long)j, String.valueOf(i * recordsCount + j), jsonActivityUpdate);
        if (j % 100000 == 0) {
          System.out.println("Inserted next 100k events j = " + j);
        }
      }
      System.out.println("Updated event = " + i);
View Full Code Here

Examples of com.senseidb.indexing.activity.primitives.ActivityIntValues.update()

    ActivityIntValues intValues = (ActivityIntValues) ActivityPrimitiveValues.createActivityPrimitiveValues(ActivityPersistenceFactory.getInstance(getDirPath(), new ActivityConfig()), int.class, "likes", 0);

       
    long time = System.currentTimeMillis();
    for (int i = 0; i < 1000000; i++) {
      boolean update = intValues.update(i, "+1");
      if (update) {
        intValues.prepareFlush().run();
      }     
      if (i%1000000 == 0) {
        System.out.println(i);
View Full Code Here

Examples of com.serotonin.db.spring.ExtendedJdbcTemplate.update()

        final ExtendedJdbcTemplate ejt2 = ejt;
        if (se != null) {
            getTransactionTemplate().execute(new TransactionCallbackWithoutResult() {
                @Override
                protected void doInTransactionWithoutResult(TransactionStatus status) {
                    ejt2.update("delete from eventHandlers where eventTypeName=? and eventTypeRef1=?", new Object[] {
                            ScheduledEventType.TYPE_NAME, scheduledEventId });
                    ejt2.update("delete from scheduledEvents where id=?", new Object[] { scheduledEventId });
                }
            });
View Full Code Here

Examples of com.sk89q.craftbook.ChangedSign.update()

                    }
                }
                sign.setLine(i++, line);
            }

            sign.update(false);
        }
    }

    boolean defaultToGlobal;
    boolean consoleOverride;
View Full Code Here

Examples of com.skcraft.launcher.model.modpack.Manifest.update()

        log.info("Reading package manifest...");
        progress = new DefaultProgress(-1, _("instanceUpdater.readingManifest"));
        Manifest manifest = installPackage(installer, instance);

        // Update instance from manifest
        manifest.update(instance);

        // Read version manifest
        log.info("Reading version manifest...");
        progress = new DefaultProgress(-1, _("instanceUpdater.readingVersion"));
        VersionManifest version = readVersionManifest(manifest);
View Full Code Here

Examples of com.skyline.energy.dataaccess.jdbc.JdbcDataAccessor.update()

    if (isReturnId) {
      keyHolder = dataAccessor.getKeyHolder();
    }

    LOGGER.info("Normal Update SQL:" + actualSql);
    int rows = dataAccessor.update(actualSql, keyHolder, paramArray);

    if (keyHolder != null) {
      return keyHolder.getKey();
    } else {
      return rows;
View Full Code Here

Examples of com.sleepycat.je.utilint.Adler32.update()

     *
     * @return the checksum
     */
    public static int getXi(byte[] keyValue) {
        Adler32 adler32 = new Adler32();
        adler32.update(keyValue, 0, keyValue.length);
        return (int) adler32.getValue();
    }

    public static Block readBlock(int blockId, Cursor cursor, int numKeys)
        throws DatabaseException {
View Full Code Here

Examples of com.socrata.api.Soda2Producer.update()

        final Meta objectMetadata = producer.addObject(UPDATE_DATA_SET, nomination);
        final Nomination createdNomination = producer.getById(UPDATE_DATA_SET, objectMetadata.getId(), Nomination.class);
        TestCase.assertTrue(EqualsBuilder.reflectionEquals(nomination, createdNomination));

        final Meta updateMeta= producer.update(UPDATE_DATA_SET, objectMetadata.getId(), nominationUpdate);
        TestCase.assertEquals(objectMetadata.getId(), updateMeta.getId());

        TestCase.assertEquals(objectMetadata.getCreatedAt(), updateMeta.getCreatedAt());
        TestCase.assertEquals(objectMetadata.getCreatedMeta(), updateMeta.getCreatedMeta());
        TestCase.assertFalse(objectMetadata.getCreatedAt().after(updateMeta.getUpdatedAt()));
View Full Code Here

Examples of com.softwareag.tamino.db.api.accessor.TXMLObjectAccessor.update()

        TConnection conn = null;
        try {
            setJAXBContext(getManager().getFactory());
            conn = getTConnection();
            TXMLObjectAccessor accessor = conn.newXMLObjectAccessor(TAccessLocation.newInstance(collection), model);
            accessor.update(getTXMLObject((InoObject) pElement));
        } catch (TServerNotAvailableException e) {
            throw new PMException(e);
        } catch (NamingException e) {
            throw new PMException(e);
        } catch (TUpdateException e) {
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.