Java Code Examples for com.alibaba.druid.sql.ast.SQLOrderingSpecification#DESC
The following examples show how to use
com.alibaba.druid.sql.ast.SQLOrderingSpecification#DESC .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JoinParser.java From Mycat2 with GNU General Public License v3.0 | 5 votes |
private String getSQLExprToAsc(SQLOrderingSpecification ASC){ if (ASC==null ) { return " ASC "; } if (ASC==SQLOrderingSpecification.DESC){ return " DESC "; } else { return " ASC "; } }
Example 2
Source File: SequoiaSQLParser.java From Mycat2 with GNU General Public License v3.0 | 5 votes |
private int getSQLExprToAsc(SQLOrderingSpecification ASC){ if (ASC==null ) { return 1; } if (ASC==SQLOrderingSpecification.DESC){ return -1; } else { return 1; } }
Example 3
Source File: MongoSQLParser.java From Mycat2 with GNU General Public License v3.0 | 5 votes |
private int getSQLExprToAsc(SQLOrderingSpecification ASC){ if (ASC==null ) { return 1; } if (ASC==SQLOrderingSpecification.DESC){ return -1; } else { return 1; } }
Example 4
Source File: OrderbyColumn.java From baymax with Apache License 2.0 | 5 votes |
public static OrderbyType buildOrderbyType(SQLOrderingSpecification type){ if (SQLOrderingSpecification.ASC == type){ return OrderbyType.ASC; } if (SQLOrderingSpecification.DESC == type){ return OrderbyType.DESC; } return OrderbyType.ASC; }