com.easy.query.api4j.sql.impl.SQLOrderByColumnSelectorImpl Maven / Gradle / Ivy
package com.easy.query.api4j.sql.impl;
import com.easy.query.api4j.sql.SQLOrderBySelector;
import com.easy.query.core.expression.parser.core.base.ColumnOrderSelector;
import com.easy.query.core.expression.parser.core.base.core.SQLPropertyNative;
import com.easy.query.core.util.EasyObjectUtil;
/**
* create time 2023/6/16 22:26
* 文件说明
*
* @author xuejiaming
*/
public class SQLOrderByColumnSelectorImpl implements SQLOrderBySelector {
private final ColumnOrderSelector orderByColumnSelector;
public SQLOrderByColumnSelectorImpl(ColumnOrderSelector orderByColumnSelector){
this.orderByColumnSelector = orderByColumnSelector;
}
@Override
public ColumnOrderSelector getOrderBySelector() {
return orderByColumnSelector;
}
@Override
public SQLPropertyNative getSQLPropertyNative() {
return EasyObjectUtil.typeCastNullable(orderByColumnSelector);
}
@Override
public SQLOrderBySelector castChain() {
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy