All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.cliveyuan.robin.base.condition.LambdaCriteria Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
/*
 * Copyright (c) 2020  Clive Yuan ([email protected]).
 */

package cn.cliveyuan.robin.base.condition;

import cn.cliveyuan.robin.base.support.SFunction;
import cn.cliveyuan.robin.base.util.LambdaUtils;

/**
 * Lambda条件
 *
 * @author Clive Yuan
 * @date 2020/10/29
 */
public class LambdaCriteria extends GeneratedCriteria, LambdaCriteria> {
    @Override
    protected String columnToString(SFunction column) {
        return LambdaUtils.getFieldName(column);
    }

    public LambdaCriteria eq(String column, String val) {
        this.addCriterion(column, val, SqlKeyword.EQ);
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy