Examples of desc()


Examples of org.activiti.engine.identity.UserQuery.desc()

    }
   
    if (sortby == null || ascending) {
      query.asc();
    } else {
      query.desc();
    }
   
    List<User> users = query.listPage(start, count);
   
    List<Item> items = new ArrayList<Item>();
View Full Code Here

Examples of org.activiti.engine.runtime.ProcessInstanceQuery.desc()

        when(engine.getRuntimeService()).thenReturn(runtimeService);
        when(runtimeService.createProcessInstanceQuery()).thenReturn(processInstanceQuery);
        when(processInstanceQuery.variableValueEquals(CoreProcessVariables.POOL_BUSINESS_KEY, BUSINESS_KEY))
            .thenReturn(processInstanceQuery);
        when(processInstanceQuery.orderByProcessInstanceId()).thenReturn(processInstanceQuery);
        when(processInstanceQuery.desc()).thenReturn(processInstanceQuery);
        when(processInstanceQuery.list()).thenReturn(processes);

        return engine;
    }
View Full Code Here

Examples of org.apache.syncope.common.search.OrderByClauseBuilder.desc()

        }

        if (sort.isAscending()) {
            builder.asc(property);
        } else {
            builder.desc(property);
        }

        return builder.build();
    }
}
View Full Code Here

Examples of org.camunda.bpm.engine.identity.GroupQuery.desc()

    when(sampleGroupQuery.groupMember(anyString())).thenReturn(sampleGroupQuery);
    when(sampleGroupQuery.orderByGroupName()).thenReturn(sampleGroupQuery);
    when(sampleGroupQuery.orderByGroupId()).thenReturn(sampleGroupQuery);
    when(sampleGroupQuery.orderByGroupType()).thenReturn(sampleGroupQuery);
    when(sampleGroupQuery.asc()).thenReturn(sampleGroupQuery);
    when(sampleGroupQuery.desc()).thenReturn(sampleGroupQuery);
 
    when(processEngine.getIdentityService().createGroupQuery()).thenReturn(sampleGroupQuery);
    when(processEngine.getIdentityService().createUserQuery()).thenReturn(sampleUserQuery);
  }
 
View Full Code Here

Examples of org.camunda.bpm.engine.impl.TaskQueryImpl.desc()

      String sortOrder = json.getString(SORT_ORDER);
      if (Direction.ASCENDING.getName().equals(sortOrder)) {
        query.asc();
      }
      else if (Direction.DESCENDING.getName().equals(sortOrder)) {
        query.desc();
      }
      else {
        throw new NotValidException("Unknown sort ordering '" + sortOrder + "' in query");
      }
    }
View Full Code Here

Examples of org.dayatang.domain.OrderSettings.desc()

     */
    @Test
    public void testOrderSettings() {
        OrderSettings orderSettings = new OrderSettings();
        orderSettings.asc("id");
        orderSettings.desc("name");
        instance.asc("id").desc("name");
        assertEquals(orderSettings, instance.getOrderSettings());
    }

    /**
 
View Full Code Here

Examples of org.idevlab.rjc.SortingParams.desc()

      if (limit != null) {
        rjcSort.limit((int) limit.getStart(), (int) limit.getCount());
      }
      Order order = params.getOrder();
      if (order != null && order.equals(Order.DESC)) {
        rjcSort.desc();
      }
      Boolean isAlpha = params.isAlphabetic();
      if (isAlpha != null && isAlpha) {
        rjcSort.alpha();
      }
View Full Code Here

Examples of org.jruby.util.cli.Category.desc()

        StringBuilder sb = new StringBuilder("# JRuby configuration options with current values\n");
        Category category = null;
        for (Option option : _loadedOptions) {
            if (category != option.category) {
                category = option.category;
                sb.append('\n').append(category.desc()).append('\n');
            }
            sb
                    .append(option.name)
                    .append('=')
                    .append(option.load())
View Full Code Here

Examples of redis.clients.jedis.SortingParams.desc()

  jedis.lpush("foo", "3");
  jedis.lpush("foo", "2");
  jedis.lpush("foo", "1");

  SortingParams sp = new SortingParams();
  sp.desc();

  List<String> result = jedis.sort("foo", sp);

  List<String> expected = new ArrayList<String>();
  expected.add("3");
View Full Code Here

Examples of redis.clients.jedis.SortingParams.desc()

  jedis.lpush(bfoo, b3);
  jedis.lpush(bfoo, b2);
  jedis.lpush(bfoo, b1);

  SortingParams bsp = new SortingParams();
  bsp.desc();

  List<byte[]> bresult = jedis.sort(bfoo, bsp);

  List<byte[]> bexpected = new ArrayList<byte[]>();
  bexpected.add(b3);
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.