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

db.sql.api.cmd.executor.method.IUpdateMethod Maven / Gradle / Ivy

There is a newer version: 1.7.9-RC2
Show newest version
package db.sql.api.cmd.executor.method;

import db.sql.api.Cmd;
import db.sql.api.Getter;

import java.util.function.Function;

public interface IUpdateMethod {

    SELF update(TABLE... tables);

    SELF update(Class... entities);

    SELF set(TABLE_FILED field, V value);

     SELF set(Getter field, V value);

     SELF set(Getter target, Getter source);

    default  SELF set(boolean when, Getter target, Getter source) {
        if (!when) {
            return (SELF) this;
        }
        return set(target, source);
    }

     SELF set(Getter field, Function f);

    /**
     * 实体类修改拦截
     *
     * @param entity
     */
    default void updateEntityIntercept(Class entity) {

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy