
package com.jeelowcode.framework.plus.build.build.dql;


import com.jeelowcode.framework.plus.build.ISQLExpression;
import com.jeelowcode.framework.plus.build.buildmodel.SQLInterpretContext;
import com.jeelowcode.framework.plus.build.buildmodel.dql.SqlInfoWhereModel;
import com.jeelowcode.framework.plus.core.model.SqlFormatModel;
import net.sf.jsqlparser.JSQLParserException;

/**
 * 构建where语句相关
 */
public class BuildWhere extends BuildCondition implements ISQLExpression<SqlFormatModel> {




    public BuildWhere() {
    }

    public BuildWhere(SQLInterpretContext context){
        super.context = context;
    }

    @Override
    public SqlFormatModel interpret(SQLInterpretContext context) throws JSQLParserException {
        SqlInfoWhereModel whereModel = context.getWhereModel();
        SqlFormatModel sqlFormatModel = super.context2Condition(whereModel);
        return sqlFormatModel;
    }


}
