![JAR search and dependency download from the Maven repository](/logo.png)
com.github.yooryan.advancequery.annotation.SqlKeyword Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mybatis-advance-query Show documentation
Show all versions of mybatis-advance-query Show documentation
This is a MyBaits plug-in that provides automatic build of advanced query.
package com.github.yooryan.advancequery.annotation;
import com.github.yooryan.advancequery.toolkit.StringPool;
/**
* SQL 保留关键字枚举
*
* @author linyunrui
*/
public enum SqlKeyword implements ISqlSegment {
AND("AND"),
OR("OR"),
IN("IN"),
NOT("NOT"),
LIKE("LIKE"),
EQ(StringPool.EQUALS),
NE("<>"),
GT(StringPool.RIGHT_CHEV),
GE(">="),
LT(StringPool.LEFT_CHEV),
LE("<="),
IS_NULL("IS NULL"),
IS_NOT_NULL("IS NOT NULL"),
GROUP_BY("GROUP BY"),
LIMIT("LIMIT"),
HAVING("HAVING"),
ORDER_BY("ORDER BY"),
EXISTS("EXISTS"),
BETWEEN("BETWEEN"),
ASC("ASC"),
DESC("DESC");
private final String keyword;
SqlKeyword(final String keyword) {
this.keyword = keyword;
}
@Override
public String getSqlSegment() {
return this.keyword;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy