- 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 TypeMethodDescriptionconverToOrderBySql(String sql, String orderBy) Converts a SQL statement to include an ORDER BY clause.
-
Method Details
-
converToOrderBySql
Converts a SQL statement to include an ORDER BY clause.- Parameters:
sql- the original SQL statementorderBy- the ORDER BY clause to be added- Returns:
- the modified SQL statement with the ORDER BY clause
-