Examples of find()


Examples of com.opengamma.engine.exec.DependencyNodeJobExecutionResultCache.find()

      for (final DependencyNode unchangedNode : deltaCalculator.getUnchangedNodes()) {
        if (unchangedNode.isMarketDataSourcingFunction()) {
          // Market data is already in the cache, so don't need to copy it across again
          continue;
        }
        final DependencyNodeJobExecutionResult previousExecutionResult = previousJobExecutionResultCache.find(unchangedNode.getOutputValues());
        if (getLogModeSource().getLogMode(unchangedNode) == ExecutionLogMode.FULL
            && (previousExecutionResult == null || previousExecutionResult.getJobResultItem().getExecutionLog().getEvents() == null)) {
          // Need to rerun calculation to collect logs, so cannot reuse
          continue;
        }
View Full Code Here

Examples of com.opensymphony.xwork2.util.finder.ResourceFinder.find()

     */
    protected Map<String, String> getRunLevelDirs(String dir) {
        Map<String, String> dirs = new HashMap<String, String>();
        try {
            ResourceFinder finder = new ResourceFinder();
            URL url = finder.find("bundles");
            if (url != null) {
                if ("file".equals(url.getProtocol())) {
                    File bundlesDir = new File(url.toURI());
                    String[] runLevelDirs = bundlesDir.list(new FilenameFilter() {
                        public boolean accept(File file, String name) {
View Full Code Here

Examples of com.rapleaf.jack.test_project.database_1.iface.IImagePersistence.find()

    User u1 = i1.createUser();
    assertEquals(Long.valueOf(u1.getId()), Long.valueOf(i1.getUserId()));
    IUserPersistence users = dbs.getDatabase1().users();
    User userInDb = users.find(i1.getUserId());
    assertEquals(u1, userInDb);
    Image imageInDb = images.find(i1.getId());
    assertEquals(i1, imageInDb);
  }

  public void testComparable() {
    Post post1 = new Post(50, "Post1", 20L, 100, 0l, dbs);
View Full Code Here

Examples of com.rapleaf.jack.test_project.database_1.iface.IPostPersistence.find()

    IPostPersistence posts = dbs.getDatabase1().posts();
    long postId = Integer.MAX_VALUE * 2l;
    assertTrue(posts.save(new Post(postId, "post title", System.currentTimeMillis(), 1, System.currentTimeMillis())));

    posts.clearCacheById(postId);
    Post foundPost = posts.find(postId);
    assertNotNull("Post should be found from db by bigint id", foundPost);

    foundPost = posts.find(postId);
    assertNotNull("Post should be found in cache by bigint id", foundPost);

View Full Code Here

Examples of com.rapleaf.jack.test_project.database_1.iface.IUserPersistence.find()

    long t1 = t0 + 10;
    long t2 = t0 + 20;
    byte[] someBinary = new byte[]{5, 4, 3, 2, 1};
    User bryand = users.create("bryand", t0, 5, t1, t2, "this is a relatively long string", someBinary, 1.2d, 3.4d, true);

    User bryand_again = users.find(bryand.getId());
    assertEquals(bryand.getId(), bryand_again.getId());
    assertEquals("bryand", bryand_again.getHandle());
    assertEquals(Long.valueOf(t0), bryand_again.getCreatedAtMillis());
    assertEquals(5, bryand_again.getNumPosts());
    // need to figure out what the appropriate rounding is...
View Full Code Here

Examples of com.sertaogames.cactus2d.GameObject.find()

  @Override
  public void init() {
    objetos = gameObject.findAll("Objeto");
    GameObject gameObject = this.gameObject.find("Time");
    timeLabel = gameObject.getComponent(LabelComponent.class);
    gameObject = gameObject.find("Points");
    pointsLabel = gameObject.getComponent(LabelComponent.class);
    parent = this.parent;
  }
 
 
View Full Code Here

Examples of com.sleepycat.bdb.DataCursor.find()

    private int indexOf(Object value, boolean findFirst) {

        DataCursor cursor = null;
        try {
            cursor = new DataCursor(view, false);
            int err = cursor.find(value, findFirst);
            return (err == 0)
                    ? (cursor.getCurrentRecordNumber() - baseIndex)
                    : (-1);
        } catch (Exception e) {
            throw StoredContainer.convertException(e);
View Full Code Here

Examples of com.smartgwt.client.data.RecordList.find()

                            ListGrid grid = (ListGrid)event.getSource();
                            RecordList data = grid.getDataAsRecordList();
                            CanvasItem item = grid.getCanvasItem();
                            String value = (String)item.getValue();
                            String fieldName = item.getFieldName();
                            if (value != null) grid.selectRecord(data.find(fieldName, value));                           
                        }
                    });
                   
                    grid.addSelectionUpdatedHandler(new SelectionUpdatedHandler() {
                        @Override
View Full Code Here

Examples of com.smartgwt.client.widgets.tree.Tree.find()

            TreeGrid treeGrid = treeGrids.get(name);
            if (!name.equals(sectionName)) {
                treeGrid.deselectAllRecords();
            } else {
                Tree tree = treeGrid.getTree();
                TreeNode node = tree.find(sectionName + "/" + pageName);
                if (node != null) {
                    treeGrid.selectSingleRecord(node);
                } else {
                    CoreGUI.getErrorHandler().handleError(MSG.view_leftNav_unknownPage(pageName, sectionName));
                }
View Full Code Here

Examples of com.structis.fichesst.client.service.ClientFicheStServiceAsync.find()

    avancementsPanel = new AvancementsPanel(bus,role,user);
    avancementsPanel.setModel(model);
    add(avancementsPanel);
    if( ficheStId != null && ficheStId > 0 ) {
      ClientFicheStServiceAsync clientFicheStService = ClientFicheStServiceAsync.Util.getInstance();
      clientFicheStService.find(ficheStId, new AsyncCallbackWithErrorResolution<FicheStDto>() {
        @Override
        public void onSuccess(final FicheStDto result) {
          if(result == null) {
            return;
          }
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.