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

sf.dynamicsql.DynmicSQLModelInf Maven / Gradle / Ivy

The newest version!
package sf.dynamicsql;

import org.mybatis.dynamic.sql.delete.DeleteModel;
import org.mybatis.dynamic.sql.insert.GeneralInsertModel;
import org.mybatis.dynamic.sql.insert.InsertSelectModel;
import org.mybatis.dynamic.sql.select.SelectModel;
import org.mybatis.dynamic.sql.update.UpdateModel;
import sf.common.wrapper.Page;

import java.sql.Connection;
import java.util.List;
import java.util.Map;
import java.util.function.Consumer;
import java.util.stream.Stream;

public interface DynmicSQLModelInf {
    int insert(Connection conn, List pkeys, Map keyValues, GeneralInsertModel generalInsertModel);

    int insertSelect(Connection conn, List pkeys, Map keyValues, InsertSelectModel insertSelectModel);

    int update(Connection conn, UpdateModel updateModel);

    int delete(Connection conn, DeleteModel deleteModel);

     Page selectPage(Connection conn, long start, int limit, Class beanClass, SelectModel selectModel);

     Page selectPageRaw(Connection conn, long start, int limit, Class beanClass, SelectModel countSelectModel,
                              SelectModel listSelectModel);

    Object[] selectArray(Connection conn, SelectModel selectModel);

     List selectList(Connection conn, Class beanClass, SelectModel selectModel);

     List selectList(Connection conn, Class beanClass, SelectModel selectModel, long start, int limit);

     T selectOne(Connection conn, Class beanClass, SelectModel selectModel);

    List> select(Connection conn, SelectModel selectModel);

     void selectIterator(Connection conn, Consumer> ormIt, Class returnClass, SelectModel selectModel);

     void selectStream(Connection conn, Consumer> ormStream, Class returnClass, SelectModel selectModel);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy