Spring Data Commons

org.springframework.data.repository.query.parser
Class OrderBySource

java.lang.Object
  extended by 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

Constructor Summary
OrderBySource(String clause)
           
OrderBySource(String clause, Class<?> domainClass)
           
 
Method Summary
 Sort toSort()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderBySource

public OrderBySource(String clause)

OrderBySource

public OrderBySource(String clause,
                     Class<?> domainClass)
Method Detail

toSort

public Sort toSort()

Spring Data Commons

Copyright © 2011. All Rights Reserved.