com.easy.query.api4j.sql.SQLGroupBySelector Maven / Gradle / Ivy
package com.easy.query.api4j.sql;
import com.easy.query.core.expression.func.ColumnPropertyFunction;
import com.easy.query.core.expression.lambda.Property;
import com.easy.query.core.expression.parser.core.available.TableAvailable;
import com.easy.query.core.expression.parser.core.base.GroupBySelector;
import com.easy.query.core.util.EasyLambdaUtil;
/**
* create time 2023/4/30 21:49
* 文件说明
*
* @author xuejiaming
*/
public interface SQLGroupBySelector {
GroupBySelector getGroupBySelector();
default TableAvailable getTable() {
return getGroupBySelector().getTable();
}
default SQLGroupBySelector column(Property column) {
getGroupBySelector().column(EasyLambdaUtil.getPropertyName(column));
return this;
}
default SQLGroupBySelector columnConst(String columnConst) {
getGroupBySelector().columnConst(columnConst);
return this;
}
default SQLGroupBySelector columnFunc(ColumnPropertyFunction columnPropertyFunction) {
getGroupBySelector().columnFunc(columnPropertyFunction);
return this;
}
default SQLGroupBySelector then(SQLGroupBySelector sub) {
return sub;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy