sk.baka.tools.jpa
Class Sorting
java.lang.Object
sk.baka.tools.jpa.Sorting
- All Implemented Interfaces:
- Serializable
@Immutable
public final class Sorting
- extends Object
- implements Serializable
Defines sorting.
- Author:
- Martin Vysny
- See Also:
- Serialized Form
|
Field Summary |
boolean |
ascending
use ascending order if true, descending order if false. |
String |
jpaField
sort using this column. |
|
Constructor Summary |
Sorting(String jpaField,
boolean ascending)
Creates new object instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jpaField
public final String jpaField
- sort using this column. A valid JPA field name, or a JPA expression.
ascending
public final boolean ascending
- use ascending order if true, descending order if false.
Sorting
public Sorting(String jpaField,
boolean ascending)
- Creates new object instance.
- Parameters:
jpaField - sort using this column. A valid JPA field name, or a JPA expression.ascending - use ascending order if true, descending order if false.
Copyright © 2009-2010. All Rights Reserved.