com.avaje.ebean
Class OrderBy.Property
java.lang.Object
com.avaje.ebean.OrderBy.Property
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- OrderBy<T>
-
public static final class OrderBy.Property
- extends Object
-
- implements Serializable
-
A property and its ascending descending order.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OrderBy.Property
public OrderBy.Property(String property,
boolean ascending)
toString
public String toString()
-
- Overrides:
toString
in class Object
-
toStringFormat
public String toStringFormat()
-
-
reverse
public void reverse()
-
Reverse the ascending/descending order for this property.
-
-
trim
public void trim(String pathPrefix)
-
Trim off the pathPrefix.
-
-
copy
public OrderBy.Property copy()
-
Return a copy of this property.
-
-
getProperty
public String getProperty()
-
Return the property name.
-
-
setProperty
public void setProperty(String property)
-
Set the property name.
-
-
isAscending
public boolean isAscending()
-
Return true if the order is ascending.
-
-
setAscending
public void setAscending(boolean ascending)
-
Set to true if the order is ascending.
-
-
Copyright © 2010. All Rights Reserved.