Examples of last()


Examples of org.dmlite.model.component.model.Models.last()

      add(quoteListPanel);

      ModelContext conceptsModelContext = new ModelContext();
      conceptsModelContext.setDomainModel(app.getDomainModel());
      Models models = (Models) app.getEntry("Models");
      Model model = (Model) models.last();
      Concepts concepts = null;
      if (model != null) {
        concepts = model.getConcepts();
      }
      conceptsModelContext.setEntities(concepts);
View Full Code Here

Examples of org.dmlite.model.order.IOrderedEntities.last()

      Link lastLink = new Link("last") {
        static final long serialVersionUID = 200584L;

        public void onClick() {
          IEntity lastEntity = (IEntity) entities.last();

          ModelContext lastEntityModelContext = new ModelContext(
              modelContext);
          lastEntityModelContext.setEntity(lastEntity);
View Full Code Here

Examples of org.domain.model.component.blog.Blogs.last()

  private void test02() {
    Users users = getUsers();
    User dr = users.getUser("dr");
    if (dr != null) {
      Blogs drBlogs = dr.getBlogs();
      Blog lastBlog = (Blog) drBlogs.last();
      try {
        drBlogs.remove(lastBlog);
      } catch (DmException e) {
        log.error("Error in Blogs.createBlog: " + e.getMessage());
      }
View Full Code Here

Examples of org.hibernate.ScrollableResults.last()

    public int getRowCountByExample(User exampleUser, String... ignoreProperty) {

        Criteria crit = prepareExampleCriteria(exampleUser, null, false, ignoreProperty);
        ScrollableResults cursor = crit.scroll();
        cursor.last();
        int count = cursor.getRowNumber() + 1;
        cursor.close();
        return count;
    }
View Full Code Here

Examples of org.hibernate.ScrollableResults.last()

                // If it's a WikiNode, fetch the associated User instances, avoiding N+1 selects
                query = "select o from " + entityClass.getName() + " o inner join fetch o.createdBy left join fetch o.lastModifiedBy fetch all properties";
            }
            ScrollableResults cursor = ftSession.createQuery(query).scroll();

            cursor.last();
            int count = cursor.getRowNumber() + 1;
            log.debug("total documents in database: " + count);

            if (count > 0) {
                cursor.first(); // Reset to first result row
View Full Code Here

Examples of org.huihoo.workflow.impl.monitor.MonitorEventResult.last()

        workflowWork,
        andJoinWork,
        pathDispBatch,
        WorkflowActivityEvent.WORK_DISPATCH);

      if (eventResult.last())
      {
        return DispatchController.execute_dispatchIfNecessary(
          workflowService,
          workflowProcess,
          operator,
View Full Code Here

Examples of org.infinispan.config.FluentConfiguration.CustomInterceptorPosition.last()

         if (interceptor.before() != null)
            position.before(interceptor.before());
         if (interceptor.first())
            position.first();
         if (interceptor.last())
            position.last();
      }

      legacy.dataContainer()
         .dataContainer(config.dataContainer().dataContainer())
         .withProperties(config.dataContainer().properties());
View Full Code Here

Examples of org.jatha.dynatype.LispValue.last()

    LispValue fnArgs = args.cdr();

    // The last arg must be a list.
    if (!validArgumentList(args))
      throw new WrongArgumentTypeException("APPLY", "a CONS in the last argument",
             "a " + fnArgs.last().car().type_of().toString());
    machine.S.push(f_lisp.makeCons(fn, f_lisp.COMPILER.quoteList(constructArgList(fnArgs))));

    // (mh) 4 Sep 2004
    // This seems like a kludge, but I don't know how to get around it.
    // if the fn is a user-defined function, we have to move the arguments to the E register.
View Full Code Here

Examples of org.jquantlib.cashflow.Leg.last()

              new FixedRateLeg(schedule, new Actual360())
              .withNotionals(faceAmount)
              .withCouponRates(couponRates)
              .withPaymentAdjustment(BusinessDayConvention.ModifiedFollowing).Leg();
          // redemption
          cashflows.add(new SimpleCashFlow(faceAmount, cashflows.last().date()));

          final Bond bond = new Bond(settlementDays, new Brazil(Brazil.Market.SETTLEMENT),
                    faceAmount, cashflows.last().date(),
                    new Date(1,Month.January,2007), cashflows);
View Full Code Here

Examples of org.jquantlib.cashflow.Leg.last()

              .withPaymentAdjustment(BusinessDayConvention.ModifiedFollowing).Leg();
          // redemption
          cashflows.add(new SimpleCashFlow(faceAmount, cashflows.last().date()));

          final Bond bond = new Bond(settlementDays, new Brazil(Brazil.Market.SETTLEMENT),
                    faceAmount, cashflows.last().date(),
                    new Date(1,Month.January,2007), cashflows);

          final double cachedPrice = prices[bondIndex];

          final double price = faceAmount*bond.dirtyPrice(yield.rate(),
 
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.