Examples of found()


Examples of com.mysql.clusterj.core.spi.ValueHandler.found()

        // defer execution of the key operation until the next find, flush, or query
        Runnable postExecuteOperation = new Runnable() {
            public void run() {
                if (rs.next()) {
                    // found row in database
                    instanceHandler.found(Boolean.TRUE);
                   // put the results into the instance
                    domainTypeHandler.objectSetValues(rs, instanceHandler);
                    // set the cache manager to track updates
                    domainTypeHandler.objectSetCacheManager(cacheManager, instanceHandler);
                    // reset modified bits in instance
View Full Code Here

Examples of com.mysql.clusterj.core.spi.ValueHandler.found()

                    domainTypeHandler.objectSetCacheManager(cacheManager, instanceHandler);
                    // reset modified bits in instance
                    domainTypeHandler.objectResetModified(instanceHandler);
                } else {
                    // mark instance as not found
                    instanceHandler.found(Boolean.FALSE);
                }
               
            }
        };
        postExecuteOperations.add(postExecuteOperation);
View Full Code Here

Examples of games.stendhal.common.parser.NameSearch.found()

      return new ItemParserResult(false, chosenName, amount, null);
    }

    NameSearch search = sentence.findMatchingName(itemNames);

    boolean found = search.found();

    // Store found name.
    String chosenName = search.getName();
    int amount = search.getAmount();
    Set<String> mayBeItems = null;
View Full Code Here

Examples of games.stendhal.common.parser.NameSearch.found()

    names.add("pestle");
    names.add("mortar");
    names.add("cow");
    names.add("horse");
    NameSearch found = sentence.findMatchingName(names);
    assertTrue(found.found());
    assertEquals(1, found.getAmount());
    assertEquals("horse", found.getName());
  }

  /**
 
View Full Code Here

Examples of games.stendhal.common.parser.NameSearch.found()

    assertEquals("i/SUB-PRO own/VER pig/OBJ-ANI-PLU, cow/OBJ-ANI, horse/SUB-ANI.", sentence.toString());

    Set<String> names = new HashSet<String>();
    names.add("horses");
    NameSearch found = sentence.findMatchingName(names);
    assertTrue(found.found());
    assertEquals(1, found.getAmount());
    assertEquals("horses", found.getName());

    names = new HashSet<String>();
    names.add("pig");
View Full Code Here

Examples of games.stendhal.common.parser.NameSearch.found()

    assertEquals("horses", found.getName());

    names = new HashSet<String>();
    names.add("pig");
    found = sentence.findMatchingName(names);
    assertTrue(found.found());
    assertEquals(2, found.getAmount());
    assertEquals("pig", found.getName());

    names = new HashSet<String>();
    names.add("pigs");
View Full Code Here

Examples of games.stendhal.common.parser.NameSearch.found()

    assertEquals("pig", found.getName());

    names = new HashSet<String>();
    names.add("pigs");
    found = sentence.findMatchingName(names);
    assertTrue(found.found());
    assertEquals(2, found.getAmount());
    assertEquals("pigs", found.getName());
  }
}
View Full Code Here

Examples of net.caprazzi.keez.Keez.Get.found()

   
    @Override
    public Object answer(InvocationOnMock invocation) throws Throwable {
      String key = (String)invocation.getArguments()[0];
      Get cb = (Get) invocation.getArguments()[1];
      cb.found(key, rev, data);
      return null;
    }
  }
 
  public static class ListFound implements Answer<Object> {
View Full Code Here

Examples of org.fest.swing.core.ComponentFoundCondition.found()

    try {
      pause(condition, EDITOR_LOOKUP_TIMEOUT);
    } catch (WaitTimedOutError e) {
      throw cannotFindOrActivateEditor(row, column);
    }
    return supportedType.cast(condition.found());
  }

  /**
   * Throws a {@link ActionFailedException} if this {@link JTableCellWriter} could not find or activate the cell editor
   * of the supported type.
View Full Code Here

Examples of org.fest.swing.core.ComponentFoundCondition.found()

  private @Nonnull DialogFixture findDialog(@Nonnull ComponentMatcher matcher, @Nonnull Timeout timeout) {
    String description = "dialog to be found using matcher " + matcher;
    ComponentFoundCondition condition = new ComponentFoundCondition(description, robot().finder(), matcher);
    pause(condition, timeout);
    Dialog dialog = (Dialog) condition.found();
    return new DialogFixture(robot(), checkNotNull(dialog));
  }

  /** {@inheritDoc} */
  @RunsInEDT
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.