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

com.easy.query.api4j.sql.scec.SQLNativeLambdaExpressionChain Maven / Gradle / Ivy

package com.easy.query.api4j.sql.scec;

import com.easy.query.api4j.select.Queryable;
import com.easy.query.core.expression.lambda.Property;
import com.easy.query.core.expression.parser.core.EntitySQLTableOwner;

import java.text.MessageFormat;

/**
 * create time 2023/9/28 21:20
 * 文件说明
 *
 * @author xuejiaming
 */
public interface SQLNativeLambdaExpressionChain {
    TChain expression(Property property);
     TChain expression(EntitySQLTableOwner table, Property property);

     TChain expression(Queryable subQuery);

    TChain value(Object val);

    TChain format(Object formatVal);

    TChain setAlias(String alias);

    /**
     * 因为默认{@link MessageFormat#format(Object)}会将参数"ifnull(id,'')"改为"ifnull(id,')"
     * 会认为单引号是转义符所以这边需要将单引号全部改为双引号,所以采用和输入文本一样的风格
     * 如果需要参数化将文本单引号改成双引号
     * @return
     */
    TChain keepStyle();

    /**
     * 使用message format 格式化风格 单引号作为转义
     * @return
     */
    TChain messageFormat();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy