Module bus.pager

Interface OrderBySqlParser

All Known Implementing Classes:
DefaultOrderBySqlParser

public interface OrderBySqlParser
Interface for handling Order by clauses in SQL statements.
Since:
Java 17+
Author:
Kimi Liu
  • Method Summary

    Modifier and Type
    Method
    Description
    Converts a SQL statement to include an ORDER BY clause.
  • Method Details

    • converToOrderBySql

      String converToOrderBySql(String sql, String orderBy)
      Converts a SQL statement to include an ORDER BY clause.
      Parameters:
      sql - the original SQL statement
      orderBy - the ORDER BY clause to be added
      Returns:
      the modified SQL statement with the ORDER BY clause