Package com.google.cloud.datastore
Class StructuredQuery.OrderBy
- java.lang.Object
-
- com.google.cloud.datastore.StructuredQuery.OrderBy
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- StructuredQuery<V>
public static final class StructuredQuery.OrderBy extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStructuredQuery.OrderBy.Direction
-
Constructor Summary
Constructors Constructor Description OrderBy(String property, StructuredQuery.OrderBy.Direction direction)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StructuredQuery.OrderByasc(String property)static StructuredQuery.OrderBydesc(String property)booleanequals(Object obj)StructuredQuery.OrderBy.DirectiongetDirection()Returns the order's direction.StringgetProperty()Returns the property according to which the query result should be ordered.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
OrderBy
public OrderBy(String property, StructuredQuery.OrderBy.Direction direction)
-
-
Method Detail
-
getProperty
public String getProperty()
Returns the property according to which the query result should be ordered.
-
getDirection
public StructuredQuery.OrderBy.Direction getDirection()
Returns the order's direction.
-
asc
public static StructuredQuery.OrderBy asc(String property)
-
desc
public static StructuredQuery.OrderBy desc(String property)
-
-