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

shz.orm.service.OrmQueryService Maven / Gradle / Ivy

The newest version!
package shz.orm.service;

import shz.core.function.ActionRunner;
import shz.core.structure.limiter.Limiter;
import shz.orm.param.OrmMapActionRunner;
import shz.orm.param.*;
import shz.orm.Tnp;
import shz.orm.sql.WhereSql;

import java.lang.reflect.Type;
import java.util.List;
import java.util.Set;
import java.util.concurrent.Executor;

interface OrmQueryService {
    void query(OrmMapping mapping, Type type, Limiter limiter, OrmMapFilter mapFilter, OrmMapConsumer mapConsumer, int fetchSize, String sql, Object... params);

    default OrmMapActionRunner runner(OrmMapping mapping, Type type, Limiter limiter, OrmMapFilter mapFilter, int fetchSize, String sql, Object... params) {
        return consumer -> query(mapping, type, limiter, mapFilter, consumer::accept, fetchSize, sql, params);
    }

     void query(OrmMapping mapping, Type type, Limiter limiter, OrmMapFilter mapFilter, OrmFilter filter, OrmConsumer consumer, int fetchSize, String sql, Object... params);

    default  ActionRunner runner(OrmMapping mapping, Type type, Limiter limiter, OrmMapFilter mapFilter, OrmFilter filter, int fetchSize, String sql, Object... params) {
        return consumer -> query(mapping, type, limiter, mapFilter, filter, consumer::accept, fetchSize, sql, params);
    }

    void query(Tnp tnp, Class entityClass, Limiter limiter, OrmMapFilter mapFilter, OrmMapConsumer mapConsumer, int fetchSize, List fieldNames, WhereSql whereSql);

    default OrmMapActionRunner runner(Tnp tnp, Class entityClass, Limiter limiter, OrmMapFilter mapFilter, int fetchSize, List fieldNames, WhereSql whereSql) {
        return consumer -> query(tnp, entityClass, limiter, mapFilter, consumer::accept, fetchSize, fieldNames, whereSql);
    }

     void query(Tnp tnp, Class entityClass, Limiter limiter, OrmMapFilter mapFilter, OrmFilter filter, OrmConsumer consumer, int fetchSize, List fieldNames, WhereSql whereSql);

    default  ActionRunner runner(Tnp tnp, Class entityClass, Limiter limiter, OrmMapFilter mapFilter, OrmFilter filter, int fetchSize, List fieldNames, WhereSql whereSql) {
        return consumer -> query(tnp, entityClass, limiter, mapFilter, filter, consumer::accept, fetchSize, fieldNames, whereSql);
    }

    void query(Set tnpSet, Class entityClass, Limiter limiter, OrmMapFilter mapFilter, OrmMapConsumer mapConsumer, int fetchSize, Executor executor, List fieldNames, WhereSql whereSql);

    default OrmMapActionRunner runner(Set tnpSet, Class entityClass, Limiter limiter, OrmMapFilter mapFilter, int fetchSize, Executor executor, List fieldNames, WhereSql whereSql) {
        return consumer -> query(tnpSet, entityClass, limiter, mapFilter, consumer::accept, fetchSize, executor, fieldNames, whereSql);
    }

     void query(Set tnpSet, Class entityClass, Limiter limiter, OrmMapFilter mapFilter, OrmFilter filter, OrmConsumer consumer, int fetchSize, Executor executor, List fieldNames, WhereSql whereSql);

    default  ActionRunner runner(Set tnpSet, Class entityClass, Limiter limiter, OrmMapFilter mapFilter, OrmFilter filter, int fetchSize, Executor executor, List fieldNames, WhereSql whereSql) {
        return consumer -> query(tnpSet, entityClass, limiter, mapFilter, filter, consumer::accept, fetchSize, executor, fieldNames, whereSql);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy