Class SortProvider.Descending

    • 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 class SortProvider
        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 interface DBExpression
        Overrides:
        copy in class SortProvider
        Returns:
        a copy of this DBValue