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

com.easy.query.api4j.internal.SQL4JOnDuplicateKeyUpdate Maven / Gradle / Ivy

There is a newer version: 2.3.3
Show newest version
package com.easy.query.api4j.internal;

import com.easy.query.api4j.sql.SQLColumnOnlySelector;
import com.easy.query.core.expression.lambda.Property;
import com.easy.query.core.expression.lambda.SQLExpression1;

/**
 * create time 2023/7/7 08:07
 * 文件说明
 *
 * @author xuejiaming
 */
public interface SQL4JOnDuplicateKeyUpdate {
    TChain onConflictDoUpdate();

    /**
     * set all columns without key and constraintProperty
     * @param constraintProperty ON CONFLICT (constraintProperty) DO UPDATE
     * @return
     */
    TChain onConflictDoUpdate(Property constraintProperty);

    /**
     * set setColumnSelector columns without key and constraintProperty
     * @param constraintProperty ON CONFLICT (constraintProperty) DO UPDATE
     * @param setColumnSelector selector columns
     * @return
     */
    TChain onConflictDoUpdate(Property constraintProperty, SQLExpression1> setColumnSelector);

    TChain onDuplicateKeyUpdate();

    /**
     * set setColumnSelector columns without key
     * @param setColumnSelector
     * @return
     */
    TChain onDuplicateKeyUpdate(SQLExpression1> setColumnSelector);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy