Examples of find()


Examples of com.alexnevsky.hotel.dao.OrderDAO.find()

      AbstractDAOFactory daoFactory = Controller.getDAOFactory();

      OrderDAO orderDAO = daoFactory.getOrderDAO();

      Order order = null;
      order = orderDAO.find(orderId);

      logger.info("Admin '" + request.getSession().getAttribute(AttributesManager.PARAM_NAME_LOGIN)
          + "'. Change order status to '" + OrderStatusEnum.CANCELLED.toString() + "' for '" + order + "'"
          + ". RemoteAddr: " + request.getRemoteAddr());
View Full Code Here

Examples of com.alexnevsky.hotel.dao.RoomDAO.find()

      Form form = null;
      form = formDAO.find(formId);

      Room room = null;
      room = roomDAO.find(roomId);

      Double amount = null;
      if (form != null && room != null) {
        amount = room.getNightPrice() * form.getNights();
        orderDAO.update(roomId, amount, order.getId());
View Full Code Here

Examples of com.alvazan.orm.api.base.NoSqlEntityManager.find()

  }

  @Override
  public PlayOrmCronJob getMonitor(String id) {
    NoSqlEntityManager mgr = factory.createEntityManager();
    MonitorDbo mon = mgr.find(MonitorDbo.class, id);
    return CopyUtil.copy(mon);
  }
 
  public List<PlayOrmCronJob> getMonitors(List<String> ids) {
    NoSqlEntityManager mgr = factory.createEntityManager();
View Full Code Here

Examples of com.alvazan.orm.api.z3api.NoSqlTypedSession.find()

    s.flush();
   
    NoSqlEntityManager mgr2 = factory.createEntityManager();
    NoSqlTypedSession s2 = mgr2.getTypedSession();
   
    TypedRow result = s2.find("Owner", row2.getRowKey());
    byte[] unknowResult = row2.getColumn("unknown").getValueRaw();
    Assert.assertEquals(temp[1], unknowResult[1]);
    BigDecimal dec1 = row2.getColumn("decimal").getValueAsBigDecimal();
    BigDecimal dec2 = result.getColumn("decimal").getValueAsBigDecimal();
    Assert.assertEquals(dec1, dec2);
View Full Code Here

Examples of com.aragost.javahg.internals.HgInputStream.find()

                            additionalConfig, String.class));

            HgInputStream in = new HgInputStream(process.getInputStream(),
                    repo.newDecoder());

            Assert.assertTrue(in.find("(bound to *:".getBytes()));
            final int port = in.readDecimal().intValue();
            in.close();

            return new ServeState() {

View Full Code Here

Examples of com.aspose.cells.Cells.find()

    FindOptions findOptions = new FindOptions();
   
    //Finding the cell containing a string value that starts with "Or"
    findOptions.setLookAtType(LookAtType.START_WITH);
   
    Cell cell = cells.find("SH",null,findOptions);
   
    //Printing the name of the cell found after searching worksheet
    System.out.println("Name of the cell containing String: " + cell.getName());
  }
}
View Full Code Here

Examples of com.atlassian.pageobjects.elements.PageElement.find()

  public GlobalConfigPage disableAchievement(int achievementId)
  {
    PageElement achievement = getAchievementElement(achievementId);

    if (achievement.find(By.className("active")) != null)
    {
      // Achievement is enable, else do nothing
      achievement.click();
    }
View Full Code Here

Examples of com.avaje.ebean.EbeanServer.find()

    Product prod2 = createProduct(101, "bananas");
    server.insert(prod2);
   
    server.beginTransaction();
    // effectively load these into the persistence context
    server.find(Product.class, prod1.getId());
    server.find(Product.class, prod2.getId());
   
    server.delete(Product.class, Arrays.asList(prod1.getId(), prod2.getId()));
   
    // are these found in the persistence context?
View Full Code Here

Examples of com.buschmais.jqassistant.core.store.api.Store.find()

        when(project.getBuild()).thenReturn(build);
        Map<String, Object> properties = new HashMap<>();
        properties.put(MavenProject.class.getName(), project);
        Store store = mock(Store.class);
        MavenProjectDirectoryDescriptor projectDescriptor = mock(MavenProjectDirectoryDescriptor.class);
        when(store.find(MavenProjectDirectoryDescriptor.class, "group:artifact:1.0.0")).thenReturn(null, projectDescriptor);
        when(store.create(MavenProjectDirectoryDescriptor.class, "group:artifact:1.0.0")).thenReturn(projectDescriptor);

        ArtifactDirectoryDescriptor mainArtifact = mock(ArtifactDirectoryDescriptor.class);
        when(store.find(ArtifactDescriptor.class, "group:artifact:jar:main:1.0.0")).thenReturn(null, mainArtifact);
        when(store.create(ArtifactDirectoryDescriptor.class, "group:artifact:jar:main:1.0.0")).thenReturn(mainArtifact);
View Full Code Here

Examples of com.citytechinc.cq.component.annotations.widgets.rte.FindReplace.find()

    if (rteAnnotation.findreplace().length > 0) {
      FindReplace findReplaceAnnotation = rteAnnotation.findreplace()[0];
      List<String> features = new ArrayList<String>();

      if (findReplaceAnnotation.find()) {
        features.add("find");
      }
      if (findReplaceAnnotation.replace()) {
        features.add("replace");
      }
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.