protobuf4j.orm.sql.ISqlOperator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protobuf4j-sql Show documentation
Show all versions of protobuf4j-sql Show documentation
A Facility Framework to Develop with Google Protobuf
The newest version!
package protobuf4j.orm.sql;
import static com.google.common.base.Preconditions.*;
/**
* 访问者模式解耦具体表达式的sql语句构造逻辑
*
*
* author: yuanwq
* date: 2018/7/11
*/
public interface ISqlOperator {
/**
* 构造sql语句中的运算符形式,两边包括必要的空格
*/
String getOp();
/**
* 校验操作符两侧的表达式参数
*/
default void checkExpression(IExpression left, IExpression right) {
checkNotNull(left, "left expr is null");
checkNotNull(right, "right expr is null");
}
}