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

com.github.alittlehuang.data.jdbc.sql.mysql57.Mysql57QuerySqlBuilderFactory Maven / Gradle / Ivy

The newest version!
package com.github.alittlehuang.data.jdbc.sql.mysql57;

import com.github.alittlehuang.data.jdbc.JdbcQueryStoredConfig;
import com.github.alittlehuang.data.jdbc.sql.AbstractSqlBuilder;
import com.github.alittlehuang.data.jdbc.sql.QuerySqlBuilderFactory;
import com.github.alittlehuang.data.query.page.Pageable;
import com.github.alittlehuang.data.query.specification.Criteria;

/**
 * @author ALittleHuang
 */
public class Mysql57QuerySqlBuilderFactory implements QuerySqlBuilderFactory {

    private JdbcQueryStoredConfig config;

    public Mysql57QuerySqlBuilderFactory(JdbcQueryStoredConfig config) {
        this.config = config;
    }

    @Override
    public  SqlBuilder createSqlBuild(Criteria criteria) {
        return new Builder<>(criteria);
    }

    @Override
    public  SqlBuilder createSqlBuild(Criteria criteria, Pageable pageable) {
        return new Builder<>(criteria);
    }

    class Builder extends AbstractSqlBuilder {
        Builder(Criteria criteria) {
            super(config, criteria);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy