Examples of update()


Examples of org.fjank.jcache.persistence.DiskCache.update()

                //no disk, and memory is full.
                this.lastException = CacheFullException.class;
                this.lastMessage = "The maximum number of objects in the cache has been reached.";
                return false;
            }
            boolean updated = diskCache.update(o);
            if (!updated) {
                this.lastException = CacheFullException.class;
                this.lastMessage = "The maximum size for the diskCache has been reached.";
            }
            return updated;
View Full Code Here

Examples of org.focusns.dao.photo.AlbumDao.update()

        AlbumDao albumDao = eventContext.getApplicationContext().getBean(AlbumDao.class);
        //
        Photo photo = (Photo) eventContext.getArguments()[0];
        Album album = albumDao.select(photo.getAlbumId());
        album.setPhotoId(photo.getId());
        albumDao.update(album);
    }

}
View Full Code Here

Examples of org.freeplane.view.swing.features.time.mindmapmode.TimeManagement.JTimePanel.update()

    final TimeManagement timeManagement = new TimeManagement(this);
    final int axis = BoxLayout.Y_AXIS;
    final JTimePanel timePanel = timeManagement.createTimePanel(null, false, 1);
    modeController.getMapController().addNodeSelectionListener(new INodeSelectionListener() {
      public void onSelect(NodeModel node) {
        timePanel.update(node);
      }
     
      public void onDeselect(NodeModel node) {
      }
    });
View Full Code Here

Examples of org.g4studio.core.orm.xibatis.sqlmap.engine.cache.CacheKey.update()

  }

  public Object executeQueryForObject(StatementScope statementScope, Transaction trans, Object parameterObject,
      Object resultObject) throws SQLException {
    CacheKey cacheKey = getCacheKey(statementScope, parameterObject);
    cacheKey.update("executeQueryForObject");
    Object object = cacheModel.getObject(cacheKey);
    if (object == CacheModel.NULL_OBJECT) {
      // This was cached, but null
      object = null;
    } else if (object == null) {
View Full Code Here

Examples of org.geotools.coverage.io.CoverageStore.update()

                              null);
                        final CoverageStore gridStore = (CoverageStore) storeAccess
                                .create(name, null, null, null);

                        // write it down
                        gridStore.update(request, null);

                        // getting access to the file
                        access = factory.process(DriverOperation.CONNECT,writeFile.toURI().toURL(),null, null, null);
                        if (access == null)
                            throw new IOException("");
View Full Code Here

Examples of org.geotools.data.wfs.v1_0_0.Action.UpdateAction.update()

        } else {
            if ((a.getType() == Action.UPDATE)
                    && a.getFilter().evaluate(feature)) {
                // update the feature
                UpdateAction ua = (UpdateAction) a;
                ua.update(feature);
            }
        }
        return feature;
    }
View Full Code Here

Examples of org.geowebcache.filter.request.RequestFilter.update()

        List<RequestFilter> reqFilters = tl.getRequestFilters();
        if (reqFilters != null && !reqFilters.isEmpty()) {
            Iterator<RequestFilter> iter = reqFilters.iterator();
            while (iter.hasNext()) {
                RequestFilter reqFilter = iter.next();
                if (reqFilter.update(tl, gridSetId)) {
                    log.info("Updated request filter " + reqFilter.getName());
                } else {
                    log.debug("Request filter " + reqFilter.getName()
                            + " returned false on update.");
                }
View Full Code Here

Examples of org.geowebcache.filter.request.WMSRasterFilter.update()

                    + gridSetId, Status.CLIENT_ERROR_BAD_REQUEST);
        }

        // Run the actual update
        try {
            wmsFilter.update(tl, gridSetId, zoomStart, zoomStop);
        } catch (GeoWebCacheException e) {
            throw new RestletException("Error updating " + wmsFilter.getName()
                    + ": " + e.getMessage(), Status.SERVER_ERROR_INTERNAL);
        }
    }
View Full Code Here

Examples of org.gradle.api.internal.changedetection.TaskArtifactState.update()

        task.getOutputs().setHistory(taskArtifactState);
        try {
            executer.execute(task, state);
            if (state.getFailure() == null) {
                taskArtifactState.update();
            }
        } finally {
            task.getOutputs().setHistory(null);
        }
    }
View Full Code Here

Examples of org.grails.web.util.BoundedCharsAsEncodedBytesCounter.update()

    private static final String TEST_STRING = "Hello \u00f6\u00e4\u00e5\u00d6\u00c4\u00c5!";

    public void testCalculation() throws Exception {
        BoundedCharsAsEncodedBytesCounter counter = new BoundedCharsAsEncodedBytesCounter(1024, "ISO-8859-1");
        counter.getCountingWriter();
        counter.update(TEST_STRING);
        assertEquals(13, counter.size());
        assertEquals(13, TEST_STRING.getBytes("ISO-8859-1").length);
        counter.update(TEST_STRING);
        assertEquals(26, counter.size());
    }
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.