Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Spring Data Commons
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

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()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Spring Data Commons
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2011. All Rights Reserved.