sk.baka.tools.jpa
Class Sorting

java.lang.Object
  extended by 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.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

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.