org.springframework.data.repository.query.parser
Class OrderBySource
java.lang.Object
org.springframework.data.repository.query.parser.OrderBySource
public class OrderBySource
- extends Object
Simple helper class to create a Sort
instance from a method name end.
It expects the last part of the method name to be given and supports lining
up multiple properties ending with the sorting direction. So the following
method ends are valid: LastnameUsernameDesc
,
LastnameAscUsernameDesc
.
- Author:
- Oliver Gierke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrderBySource
public OrderBySource(String clause)
OrderBySource
public OrderBySource(String clause,
Class<?> domainClass)
toSort
public Sort toSort()
Copyright © 2011. All Rights Reserved.