本文整理汇总了Java中org.neo4j.ogm.cypher.query.SortOrder类的典型用法代码示例。如果您正苦于以下问题:Java SortOrder类的具体用法?Java SortOrder怎么用?Java SortOrder使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SortOrder类属于org.neo4j.ogm.cypher.query包,在下文中一共展示了SortOrder类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: convert
import org.neo4j.ogm.cypher.query.SortOrder; //导入依赖的package包/类
private SortOrder convert(Sort sort) {
SortOrder sortOrder = new SortOrder();
if (sort != null) {
for (Sort.Order order : sort) {
if (order.isAscending()) {
sortOrder.add(order.getProperty());
} else {
sortOrder.add(SortOrder.Direction.DESC, order.getProperty());
}
}
}
return sortOrder;
}
示例2: loadAll
import org.neo4j.ogm.cypher.query.SortOrder; //导入依赖的package包/类
public <T> Collection<T> loadAll(Class<T> targetClass, Collection<Long> ids, SortOrder sortOrder) {
final Session session = getSession();
try {
return session.loadAll(targetClass, ids, sortOrder);
} finally {
closeSession(session);
}
}
示例3: visitEntity
import org.neo4j.ogm.cypher.query.SortOrder; //导入依赖的package包/类
@Override
public void visitEntity(String entity) {
this.label = entity;
this.filters = new Filters();
this.sortOrder = new SortOrder();
}
示例4: Neo4JQueryParameters
import org.neo4j.ogm.cypher.query.SortOrder; //导入依赖的package包/类
public Neo4JQueryParameters(String label, Filters filters, SortOrder sortOrder) {
this.label = label;
this.filters = filters;
this.sortOrder = sortOrder;
}
示例5: getSortOrder
import org.neo4j.ogm.cypher.query.SortOrder; //导入依赖的package包/类
public SortOrder getSortOrder() {
return sortOrder;
}