Class SortProvider.Descending
- java.lang.Object
-
- nz.co.gregs.dbvolution.expressions.SortProvider
-
- nz.co.gregs.dbvolution.expressions.SortProvider.Descending
-
- All Implemented Interfaces:
Serializable
,DBExpression
,HasSQLString
- Enclosing class:
- SortProvider
public static class SortProvider.Descending extends SortProvider
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class nz.co.gregs.dbvolution.expressions.SortProvider
SortProvider.Ascending, SortProvider.Column, SortProvider.DefaultSort, SortProvider.Descending, SortProvider.NullsLast, SortProvider.NullsOrderer, SortProvider.Ordering, SortProvider.OrderOfNulls
-
-
Field Summary
-
Fields inherited from class nz.co.gregs.dbvolution.expressions.SortProvider
direction, nullsOrdering
-
-
Constructor Summary
Constructors Constructor Description Descending(AnyExpression<? extends Object,? extends AnyResult<?>,? extends QueryableDatatype<?>> exp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SortProvider.Descending
copy()
A Complete Copy Of This DBValue.String
getSortDirectionSQL(DBDefinition defn)
Returns the sort order set for the provider.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class nz.co.gregs.dbvolution.expressions.SortProvider
asExpressionColumn, createSQLForFromClause, createSQLForGroupByClause, getColumn, getExpressionSQL, getGroupByClauses, getInnerExpression, getOrdering, getQueryableDatatypeForExpressionValue, getQueryColumn, getSortProviders, getTablesInvolved, hasColumn, hasInnerExpression, hasQueryColumn, isAggregator, isComplexExpression, isPurelyFunctional, isWindowingFunction, nullsFirst, nullsHighest, nullsLast, nullsLowest, setQueryColumn, toSQLString, usesEmptyStringForNull
-
-
-
-
Constructor Detail
-
Descending
public Descending(AnyExpression<? extends Object,? extends AnyResult<?>,? extends QueryableDatatype<?>> exp)
-
-
Method Detail
-
getSortDirectionSQL
public String getSortDirectionSQL(DBDefinition defn)
Description copied from class:SortProvider
Returns the sort order set for the provider.defaults to ASCENDING
- Overrides:
getSortDirectionSQL
in classSortProvider
- Parameters:
defn
- the database definition- Returns:
- SQL for the sort direction.
-
copy
public SortProvider.Descending copy()
Description copied from interface:DBExpression
A Complete Copy Of This DBValue.Immutability in DBvolution is maintain by internally copying objects.
This method enables immutability by performing a deep copy of the object.
Singletons may return themselves but all other objects must return a new instance with copies of all mutable fields.
Support DBvolution at Patreon
- Specified by:
copy
in interfaceDBExpression
- Overrides:
copy
in classSortProvider
- Returns:
- a copy of this
DBValue
-
-