Package com.github.pagehelper.parser
Class OrderByJSqlParser45
- java.lang.Object
-
- com.github.pagehelper.parser.OrderByJSqlParser45
-
- All Implemented Interfaces:
com.github.pagehelper.parser.OrderBySqlParser
public class OrderByJSqlParser45 extends Object implements com.github.pagehelper.parser.OrderBySqlParser
处理 Order by- Since:
- 2015-06-27
- Author:
- liuzh
-
-
Constructor Summary
Constructors Constructor Description OrderByJSqlParser45()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringconverToOrderBySql(String sql, String orderBy)convert to order by sqlprotected List<net.sf.jsqlparser.statement.select.OrderByElement>extraOrderBy(net.sf.jsqlparser.statement.select.SelectBody selectBody)extra order by and set default orderby to null
-
-
-
Method Detail
-
converToOrderBySql
public String converToOrderBySql(String sql, String orderBy)
convert to order by sql- Specified by:
converToOrderBySqlin interfacecom.github.pagehelper.parser.OrderBySqlParser- Parameters:
sql-orderBy-- Returns:
-
extraOrderBy
protected List<net.sf.jsqlparser.statement.select.OrderByElement> extraOrderBy(net.sf.jsqlparser.statement.select.SelectBody selectBody)
extra order by and set default orderby to null- Parameters:
selectBody-
-
-