Package io.ebean
Class OrderBy.Property
- java.lang.Object
-
- io.ebean.OrderBy.Property
-
- All Implemented Interfaces:
Serializable
public static final class OrderBy.Property extends Object implements Serializable
A property and its ascending descending order.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Property(String property, boolean ascending)
Property(String property, boolean ascending, String collation)
Property(String property, boolean ascending, String nulls, String highLow)
Property(String property, boolean ascending, String collation, String nulls, String highLow)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrderBy.Property
copy()
Return a copy of this property.OrderBy.Property
copyWithTrim(String path)
Return a copy of this Property with the path trimmed.boolean
equals(Object obj)
String
getProperty()
Return the property name.int
hashCode()
boolean
isAscending()
Return true if the order is ascending.void
reverse()
Reverse the ascending/descending order for this property.void
setAscending(boolean ascending)
Set to true if the order is ascending.void
setProperty(String property)
Set the property name.String
toString()
String
toStringFormat()
void
trim(String pathPrefix)
Trim off the pathPrefix.
-
-
-
Method Detail
-
copyWithTrim
public OrderBy.Property copyWithTrim(String path)
Return a copy of this Property with the path trimmed.
-
toStringFormat
public String toStringFormat()
-
reverse
public void reverse()
Reverse the ascending/descending order for this property.
-
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.
-
-