Examples of find()


Examples of ch.entwine.weblounge.common.repository.ContentRepository.find()

      // Order by date and limit the result set
      query.sortByPublishingDate(SearchQuery.Order.Descending);
      query.withLimit(count);

      // Finally Load the pages
      pages = repository.find(query);
    }

    boolean found = false;
    PageSearchResultItem item = null;
    Page page = null;
View Full Code Here

Examples of ch.entwine.weblounge.common.repository.WritableContentRepository.find()

    SearchQuery q = new SearchQueryImpl(site);
    q.withTypes(MovieResource.TYPE);
    q.sortByPublishingDate(Order.Descending);
    q.withPublisher(harvesterUser);
    try {
      searchResult = contentRepository.find(q);
    } catch (ContentRepositoryException e) {
      logger.error("Error searching for resources with harvester publisher.");
      throw new RuntimeException(e);
    }
View Full Code Here

Examples of cirrus.hibernate.Session.find()

        Session s = getHibernateSession(  );
        try
        {
            String oql = "FROM p IN CLASS " + Product.class + " WHERE" + " ( p.productId LIKE '%" + _keyword + "%' ) OR" + " ( p.name LIKE '%" + _keyword + "%' ) OR" + " ( p.description LIKE '%" + _keyword + "%' )";
            _products = s.find( oql );

            return SUCCESS;
        }
        finally
        {
View Full Code Here

Examples of client.net.sf.saxon.ce.om.DocumentPool.find()

            DocumentURI documentKey = DocumentFn.computeDocumentKey(href, expressionBaseURI);
            DocumentPool pool = context.getController().getDocumentPool();
            if (pool.isMarkedUnavailable(documentKey)) {
                return false;
            }
            DocumentInfo doc = pool.find(documentKey);
            if (doc != null) {
                return true;
            }
            Item item = DocumentFn.makeDoc(href, expressionBaseURI, context, getSourceLocator());
            if (item != null) {
View Full Code Here

Examples of cn.org.zeronote.orm.extractor.IdentityFinder.find()

          List<Object> objs = sqlPojosMapping.get(sql);
          if (objs != null && !objs.isEmpty()) {
            // 自增主键配置
            IdentityFinder identityFinder = new IdentityFinder(conn, selectKey);
            try {
              identityFinder.find(objs.toArray());
            } catch (IllegalArgumentException e) {
              logger.error("find identity!", e);
              throw new DataAccessException("find identity error!", e);
            } catch (IllegalAccessException e) {
              logger.error("find identity!", e);
View Full Code Here

Examples of co.edu.eafit.ejemplopersistencia.dao.DaoInterface.find()

  public String transfer(int cliente, int idCuentaDesde, int idCuentaHasta,
      int cantidad) throws Exception {
    // try{
    DaoInterface daoEntidad = factoriaDao.getDaoCliente();
    Cliente clienteEnt = (Cliente) daoEntidad.find(cliente);
    if (clienteEnt == null) {
      throw new NonExistentClientException("El cliente " + cliente
          + " no existe");
    }
    daoEntidad = factoriaDao.getDaoCuenta();
View Full Code Here

Examples of collage.utils.NearestNeighbour.find()

        NearestNeighbour nn = new NearestNeighbour();
        FeatureSet nearest;
        List<Cell> newCells = new ArrayList<Cell>();
       
        for (Cell srcCell : srcCells) {
          nearest = nn.find(srcCell.getFeatures(), candidates);
          newCells.add(new Cell(srcCell.getBounds(),nearest));
        }
       
        //CollageImage ci = new CollageImage(newCells,img);
       
View Full Code Here

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

      form = formDAO.find(order.getFormId());

      freeRoomList = this.getFreeRooms(form);

      customer = customerDAO.find(order.getCustomerId());
      creditCard = creditCardDAO.find(customer.getCreditCardNumber());

      Long orderRoomId = order.getRoomId();

      Long formId = order.getFormId();
      form = formDAO.find(formId);
View Full Code Here

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

      order = orderDAO.find(this.orderId);
      form = formDAO.find(order.getFormId());

      freeRoomList = this.getFreeRooms(form);

      customer = customerDAO.find(order.getCustomerId());
      creditCard = creditCardDAO.find(customer.getCreditCardNumber());

      Long orderRoomId = order.getRoomId();

      Long formId = order.getFormId();
View Full Code Here

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

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

      Form form = null;
      form = formDAO.find(order.getFormId());

      logger.info("Admin '" + request.getSession().getAttribute(AttributesManager.PARAM_NAME_LOGIN)
          + "'. Delete '" + order + "'" + " and '" + form + "'" + ". RemoteAddr: " + request.getRemoteAddr());

      orderDAO.delete(order);
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.