Examples of Sort

@author Robert "kebernet" Cooper
  • org.slim3.datastore.Sort
    The collection of constants of class. @author taedium @since 1.0.0
  • org.springframework.data.domain.Sort
    Sort option for queries. You have to provide at least a list of properties to sort for that must not include {@literal null} or empty strings. The direction defaults to {@link Sort#DEFAULT_DIRECTION}. @author Oliver Gierke @author Thomas Darimont
  • org.synyx.hades.domain.Sort
  • prefuse.data.util.Sort
    rg">jeffrey heer
  • wycs.solver.smt.Sort
    A sort is the term for a type in the SMT domain. This class provides a few default sorts as well as the ability to create generic sorts, such as {@link wycs.solver.smt.Sort.Set}s or {@link wycs.solver.smt.Sort.Tuple}s. In order to utilise these generic sorts, it is required that the initialisers (from {@link #generateInitialisers(Solver)} be added to the surrounding {@link wycs.solver.smt.Block} or {@link wycs.solver.smt.Smt2File}.

    This design pattern is required as it is not possible to easily write custom theorems to add to SMT solvers. @author Henry J. Wylde


  • Examples of org.fusesource.ide.camel.model.generated.Sort

            return "setExchangePattern";
          } else {
            return "set " + pattern;
          }
        } else if (this instanceof Sort) {
          Sort node = (Sort) this;
          return "sort " + Expressions.getExpressionOrElse(node.getExpression());
        } else if (this instanceof When) {
          When node = (When) this;
          return "when " + Expressions.getExpressionOrElse(node.getExpression());
        } else if (this instanceof Unmarshal) {
          return "unmarshal";
        } else if (this instanceof Try) {
          return "try";
        } else if (this instanceof LoadBalance) {
    View Full Code Here

    Examples of org.hibernate.annotations.Sort

          collectionBinder.setBatchSize( batchAnn );
          javax.persistence.OrderBy ejb3OrderByAnn = property.getAnnotation( javax.persistence.OrderBy.class );
          OrderBy orderByAnn = property.getAnnotation( OrderBy.class );
          collectionBinder.setEjb3OrderBy( ejb3OrderByAnn );
          collectionBinder.setSqlOrderBy( orderByAnn );
          Sort sortAnn = property.getAnnotation( Sort.class );
          collectionBinder.setSort( sortAnn );
          Cache cachAnn = property.getAnnotation( Cache.class );
          collectionBinder.setCache( cachAnn );
          collectionBinder.setPropertyHolder( propertyHolder );
          Cascade hibernateCascade = property.getAnnotation( Cascade.class );
    View Full Code Here

    Examples of org.internna.iwebmvc.model.ui.Sort

            filterList.add(new Filter());
            filterList.get(0).setType("COLLECTION");
            filterList.get(0).setPath("xxx");
            filterList.get(0).setFrom("00aa00aa00aa00aa00aa00aa00aa00aa");
            assertEquals("SELECT e FROM Link e WHERE ( :xxx IN ELEMENTS (e.xxx) )", impl.getQuery(Link.class, filterList, null).trim());
            Sort sort = new Sort();
            sort.setAttribute("xxx");
            assertEquals("SELECT e FROM Link e WHERE ( :xxx IN ELEMENTS (e.xxx) ) ORDER BY e.xxx", impl.getQuery(Link.class, filterList, sort).trim());
            sort.setDescending(true);
            filterList.get(0).setInvert(true);
            assertEquals("SELECT e FROM Link e WHERE ( :xxx NOT IN ELEMENTS (e.xxx) ) ORDER BY e.xxx DESC", impl.getQuery(Link.class, filterList, sort).trim());
            filterList.get(0).setNullValue(true);
            assertEquals("SELECT e FROM Link e WHERE ( e.xxx != NULL ) ORDER BY e.xxx DESC", impl.getQuery(Link.class, filterList, sort).trim());
        }
    View Full Code Here

    Examples of org.jredis.Sort

        return Collections.emptyList();
      }

      @Override
      public List<byte[]> sort(byte[] key, SortParameters params) {
        Sort sort = jredis.sort(JredisUtils.decode(key));
        JredisUtils.applySortingParams(sort, params, null);
        try {
          return sort.exec();
        } catch (Exception ex) {
          throw convertJredisAccessException(ex);
        }
      }
    View Full Code Here

    Examples of org.neo4j.gis.spatial.pipes.processing.Sort

       
        /**
         * @see Sort
         */
        public GeoPipeline sort(String property) {
          return addPipe(new Sort(property, true));
        }
    View Full Code Here

    Examples of org.opencustomer.framework.db.util.Sort

            UserConfiguration conf = (UserConfiguration)request.getSession().getAttribute(Globals.CONFIGURATION_KEY);

            List list = null;
            long count = 0;

            Sort sort = null;
            if (form.getSort() == null)
                sort = new Sort(ContactDAO.SORT_CONTACTTIMESTAMP, false);
            else
                sort = Sort.parseParam(form.getSort());

            Page page = new Page(conf.getIntValue(UserConfiguration.Key.LIST_NUMBER_ROWS), form.getPage());
    View Full Code Here

    Examples of org.rometools.feed.module.sle.types.Sort

                Namespace ns = (se.getAttributeValue("ns") == null) ? element.getNamespace() : Namespace.getNamespace(se.getAttributeValue("ns"));
                String elementName = se.getAttributeValue("element");
                String label = se.getAttributeValue("label");
                String dataType = se.getAttributeValue("data-type");
                boolean defaultOrder = (se.getAttributeValue("default") == null) ? false : new Boolean(se.getAttributeValue("default")).booleanValue();
                values.add(new Sort(ns, elementName, dataType, label, defaultOrder));
            }

            sle.setSortFields((Sort[]) values.toArray(new Sort[values.size()]));
            insertValues(sle, element.getChildren());
    View Full Code Here

    Examples of org.slim3.datastore.Sort

            ModelRefAttributeMeta<DateModel, ModelRef<UserModel>, UserModel> refMeta = meta.userModelRef;

            // 月初めの日のキー値以上のDateModelを取得
            List<DateModel> list = Datastore.query(meta)
                    .filter(refMeta.equal(userModel.getKey()))
                    .sort(new Sort(DateModelMeta.get().key.getName(), SortDirection.DESCENDING))
                    .asList();

            return list;
        }
    View Full Code Here

    Examples of org.springframework.data.domain.Sort

      }

      @Test
      public void hasSortIfOrderByIsGiven() throws Exception {
        PartTree partTree = partTree("firstnameOrderByLastnameDesc");
        assertThat(partTree.getSort(), is(new Sort(Direction.DESC, "lastname")));
      }
    View Full Code Here

    Examples of org.springframework.data.domain.Sort

        hasSortIfOrderByIsGivenWithAllIgnoreCase("firstnameAllIgnoreCaseOrderByLastnameDesc");
      }

      private void hasSortIfOrderByIsGivenWithAllIgnoreCase(String source) throws Exception {
        PartTree partTree = partTree(source);
        assertThat(partTree.getSort(), is(new Sort(Direction.DESC, "lastname")));
      }
    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.