Class ColumnSortSpecification

java.lang.Object
org.mybatis.dynamic.sql.select.ColumnSortSpecification
All Implemented Interfaces:
SortSpecification

public class ColumnSortSpecification extends Object implements SortSpecification
  • Constructor Details

    • ColumnSortSpecification

      public ColumnSortSpecification(String tableAlias, SqlColumn<?> column)
  • Method Details

    • descending

      public SortSpecification descending()
      Description copied from interface: SortSpecification
      Returns a new instance of the SortSpecification that should render as descending in an ORDER BY clause.
      Specified by:
      descending in interface SortSpecification
      Returns:
      new instance of SortSpecification
    • renderForOrderBy

      public FragmentAndParameters renderForOrderBy(RenderingContext renderingContext)
      Description copied from interface: SortSpecification
      Return a fragment rendered for use in an ORDER BY clause. The fragment should include "DESC" if a descending order is desired.
      Specified by:
      renderForOrderBy in interface SortSpecification
      Parameters:
      renderingContext - the current rendering context
      Returns:
      a rendered fragment and parameters if applicable